Plugin Directory

Changeset 3218931


Ignore:
Timestamp:
01/08/2025 11:07:31 AM (11 months ago)
Author:
flippercode
Message:

quick shortcode copy feature added

Location:
wp-google-map-plugin
Files:
859 added
9 edited

Legend:

Unmodified
Added
Removed
  • wp-google-map-plugin/trunk/assets/css/flippercode-ui.css

    r3103512 r3218931  
    21992199    left: 50%;
    22002200}
     2201
     2202.shortcodes .copy_to_clipboard:focus,
     2203.shortcodes .copy_to_clipboard {
     2204    outline: none;
     2205    box-shadow: none;
     2206}
     2207
     2208.shortcodes .fc-tooltip {
     2209    padding:  0px;
     2210}
     2211.shortcodes .fc-tooltip .fc-tooltiptext {
     2212    background: #25B75F;
     2213/*    width:  218px;*/
     2214    padding:  10px 12px;
     2215    border-radius:  25px;
     2216    margin-bottom:6px;
     2217}
     2218
     2219.shortcodes .fc-tooltip .fc-tooltiptext: :after  {
     2220    border-color:  #25B75F transparent transparent transparent;
     2221}
     2222.shortcodes .fc-tooltip:hover .fc-tooltiptext  {
     2223    visibility:  hidden;
     2224    opacity: 0;
     2225}
     2226.shortcodes .fc-tooltip.active .fc-tooltiptext, .wpdf_shortcode .fc-tooltip.active:hover .fc-tooltiptext  {
     2227    visibility:  visible;
     2228    opacity:  1;
     2229}
     2230.column-shortcodes .fc-tooltip .fc-tooltiptext::after {
     2231    border-color: #25B75F transparent transparent transparent;
     2232}
     2233
     2234@media(max-width: 780px) {
     2235
     2236    .shortcodes .fc-tooltip .fc-tooltiptext {
     2237        top:  0px;
     2238        right:  105%;
     2239        bottom:  inherit;
     2240        left:  inherit;
     2241        transform:  translateX(0);
     2242        font-size:  10px;
     2243            width:  227px;
     2244        padding:  3px 8px;
     2245    }
     2246    .shortcodes .fc-tooltip {
     2247        float:  right;
     2248    }
     2249}
     2250
     2251
    22012252/*
    22022253===================================================
  • wp-google-map-plugin/trunk/assets/js/minified/wpgmp_backend.min.js

    r3114825 r3218931  
    1 function ClusterIcon(e,t){e.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.cluster_=e,this.className_=e.getMarkerClusterer().getClusterClass(),this.styles_=t,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(e.getMap())}function Cluster(e){this.markerClusterer_=e,this.map_=e.getMap(),this.gridSize_=e.getGridSize(),this.minClusterSize_=e.getMinimumClusterSize(),this.averageCenter_=e.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,e.getStyles())}function MarkerClusterer(e,t,n){this.extend(MarkerClusterer,google.maps.OverlayView),t=t||[],n=n||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=n.gridSize||60,this.minClusterSize_=n.minimumClusterSize||2,this.maxZoom_=n.maxZoom||null,this.styles_=n.styles||[],this.title_=n.title||"",this.zoomOnClick_=!0,void 0!==n.zoomOnClick&&(this.zoomOnClick_=n.zoomOnClick),this.averageCenter_=!1,void 0!==n.averageCenter&&(this.averageCenter_=n.averageCenter),this.ignoreHidden_=!1,void 0!==n.ignoreHidden&&(this.ignoreHidden_=n.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==n.enableRetinaIcons&&(this.enableRetinaIcons_=n.enableRetinaIcons),this.imagePath_=n.imagePath||MarkerClusterer.IMAGE_PATH,this.imageExtension_=n.imageExtension||MarkerClusterer.IMAGE_EXTENSION,this.imageSizes_=n.imageSizes||MarkerClusterer.IMAGE_SIZES,this.calculator_=n.calculator||MarkerClusterer.CALCULATOR,this.batchSize_=n.batchSize||MarkerClusterer.BATCH_SIZE,this.batchSizeIE_=n.batchSizeIE||MarkerClusterer.BATCH_SIZE_IE,this.clusterClass_=n.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(t,!0),this.setMap(e)}function send_icon_to_map(e,t){jQuery("#remove_image"+t).show(),jQuery("#image_"+t).attr("src",e).show(),jQuery("#input_"+t).val(e),tb_remove()}function ClusterIcon(e,t){e.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.cluster_=e,this.className_=e.getMarkerClusterer().getClusterClass(),this.styles_=t,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(e.getMap())}function Cluster(e){this.markerClusterer_=e,this.map_=e.getMap(),this.gridSize_=e.getGridSize(),this.minClusterSize_=e.getMinimumClusterSize(),this.averageCenter_=e.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,e.getStyles())}function MarkerClusterer(e,t,n){this.extend(MarkerClusterer,google.maps.OverlayView),t=t||[],n=n||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=n.gridSize||60,this.minClusterSize_=n.minimumClusterSize||2,this.maxZoom_=n.maxZoom||null,this.styles_=n.styles||[],this.title_=n.title||"",this.zoomOnClick_=!0,void 0!==n.zoomOnClick&&(this.zoomOnClick_=n.zoomOnClick),this.averageCenter_=!1,void 0!==n.averageCenter&&(this.averageCenter_=n.averageCenter),this.ignoreHidden_=!1,void 0!==n.ignoreHidden&&(this.ignoreHidden_=n.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==n.enableRetinaIcons&&(this.enableRetinaIcons_=n.enableRetinaIcons),this.imagePath_=n.imagePath||MarkerClusterer.IMAGE_PATH,this.imageExtension_=n.imageExtension||MarkerClusterer.IMAGE_EXTENSION,this.imageSizes_=n.imageSizes||MarkerClusterer.IMAGE_SIZES,this.calculator_=n.calculator||MarkerClusterer.CALCULATOR,this.batchSize_=n.batchSize||MarkerClusterer.BATCH_SIZE,this.batchSizeIE_=n.batchSizeIE||MarkerClusterer.BATCH_SIZE_IE,this.clusterClass_=n.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(t,!0),this.setMap(e)}!function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t,e,e.document)}:n(jQuery,window,document)}(function(L,$,b,O){function d(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null}function l(e,t,n){var i="string"==typeof e;return!!s(e)||(t&&i&&(e=G(e,t)),n&&i&&(e=e.replace(q,"")),!isNaN(parseFloat(e))&&isFinite(e))}function n(e,t,n){var i;return!!s(e)||(s(i=e)||"string"==typeof i)&&!!l(e.replace(B,""),t,n)||null}function v(e,t,n,i){var s=[],o=0,a=t.length;if(i!==O)for(;o<a;o++)e[t[o]][n]&&s.push(e[t[o]][n][i]);else for(;o<a;o++)s.push(e[t[o]][n]);return s}function u(e,t){var n,i=[];t===O?(t=0,n=e):(n=t,t=e);for(var s=t;s<n;s++)i.push(s);return i}function _(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&t.push(e[n]);return t}var f,t,e,C=function(y){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new W(e?ut(this[f.iApiIndex]):this)},this.fnAddData=function(e,t){var n=this.api(!0),e=(L.isArray(e)&&(L.isArray(e[0])||L.isPlainObject(e[0]))?n.rows:n.row).add(e);return t!==O&&!t||n.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],i=n.oScroll;e===O||e?t.draw(!1):""===i.sX&&""===i.sY||Je(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();e!==O&&!e||t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var i=this.api(!0),e=i.rows(e),s=e.settings()[0],o=s.aoData[e[0][0]];return e.remove(),t&&t.call(this,s,o),n!==O&&!n||i.draw(),o},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,i,s,o){var a=this.api(!0);(null===t||t===O?a:a.column(t)).search(e,n,i,o),a.draw()},this.fnGetData=function(e,t){var n,i=this.api(!0);return e!==O?(n=e.nodeName?e.nodeName.toLowerCase():"",t!==O||"td"==n||"th"==n?i.cell(e,t).data():i.row(e).data()||null):i.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==O?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(n=t.cell(e).index()).row,n.columnVisible,n.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){e=this.api(!0).page(e);t!==O&&!t||e.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t);n!==O&&!n||e.columns.adjust().draw()},this.fnSettings=function(){return ut(this[f.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,i,s){var o=this.api(!0);return(n===O||null===n?o.row(t):o.cell(t,n)).data(e),s!==O&&!s||o.columns.adjust(),i!==O&&!i||o.draw(),0},this.fnVersionCheck=f.fnVersionCheck;var e,S=this,_=y===O,w=this.length;for(e in _&&(y={}),this.oApi=this.internal=f.internal,C.ext.internal)e&&(this[e]=Ot(e));return this.each(function(){var i=1<w?dt({},y,!0):y,s=0,e=this.getAttribute("id"),o=!1,t=C.defaults,a=L(this);if("table"!=this.nodeName.toLowerCase())z(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{Y(t),K(t.column),x(t,t,!0),x(t.column,t.column,!0),x(t,L.extend(i,a.data()));for(var n=C.settings,s=0,r=n.length;s<r;s++){var l=n[s];if(l.nTable==this||l.nTHead&&l.nTHead.parentNode==this||l.nTFoot&&l.nTFoot.parentNode==this){var c=(i.bRetrieve!==O?i:t).bRetrieve,h=(i.bDestroy!==O?i:t).bDestroy;if(_||c)return l.oInstance;if(h){l.oInstance.fnDestroy();break}return void z(l,0,"Cannot reinitialise DataTable",3)}if(l.sTableId==this.id){n.splice(s,1);break}}null!==e&&""!==e||(e="DataTables_Table_"+C.ext._unique++,this.id=e);var u,d,p=L.extend(!0,{},C.models.oSettings,{sDestroyWidth:a[0].style.width,sInstance:e,sTableId:e}),f=(p.nTable=this,p.oApi=S.internal,p.oInit=i,n.push(p),p.oInstance=1===S.length?S:a.dataTable(),Y(i),J(i.oLanguage),i.aLengthMenu&&!i.iDisplayLength&&(i.iDisplayLength=(L.isArray(i.aLengthMenu[0])?i.aLengthMenu[0]:i.aLengthMenu)[0]),i=dt(L.extend(!0,{},t),i),A(p.oFeatures,i,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),A(p,i,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),A(p.oScroll,i,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),A(p.oLanguage,i,"fnInfoCallback"),M(p,"aoDrawCallback",i.fnDrawCallback,"user"),M(p,"aoServerParams",i.fnServerParams,"user"),M(p,"aoStateSaveParams",i.fnStateSaveParams,"user"),M(p,"aoStateLoadParams",i.fnStateLoadParams,"user"),M(p,"aoStateLoaded",i.fnStateLoaded,"user"),M(p,"aoRowCallback",i.fnRowCallback,"user"),M(p,"aoRowCreatedCallback",i.fnCreatedRow,"user"),M(p,"aoHeaderCallback",i.fnHeaderCallback,"user"),M(p,"aoFooterCallback",i.fnFooterCallback,"user"),M(p,"aoInitComplete",i.fnInitComplete,"user"),M(p,"aoPreDrawCallback",i.fnPreDrawCallback,"user"),p.rowIdFn=D(i.rowId),Q(p),p.oClasses),g=(L.extend(f,C.ext.classes,i.oClasses),a.addClass(f.sTable),p.iInitDisplayStart===O&&(p.iInitDisplayStart=i.iDisplayStart,p._iDisplayStart=i.iDisplayStart),null!==i.iDeferLoading&&(p.bDeferLoading=!0,e=L.isArray(i.iDeferLoading),p._iRecordsDisplay=e?i.iDeferLoading[0]:i.iDeferLoading,p._iRecordsTotal=e?i.iDeferLoading[1]:i.iDeferLoading),p.oLanguage),e=(L.extend(!0,g,i.oLanguage),g.sUrl&&(L.ajax({dataType:"json",url:g.sUrl,success:function(e){J(e),x(t.oLanguage,e),L.extend(!0,g,e),$e(p)},error:function(){$e(p)}}),o=!0),null===i.asStripeClasses&&(p.asStripeClasses=[f.sStripeOdd,f.sStripeEven]),p.asStripeClasses),m=a.children("tbody").find("tr").eq(0),v=(-1!==L.inArray(!0,L.map(e,function(e,t){return m.hasClass(e)}))&&(L("tbody tr",this).removeClass(e.join(" ")),p.asDestroyStripes=e.slice()),[]),e=this.getElementsByTagName("thead");if(0!==e.length&&(Se(p.aoHeader,e[0]),v=_e(p)),null===i.aoColumns)for(u=[],s=0,r=v.length;s<r;s++)u.push(null);else u=i.aoColumns;for(s=0,r=u.length;s<r;s++)te(p,v?v[s]:null);oe(p,i.aoColumnDefs,u,function(e,t){ne(p,e,t)}),m.length&&(d=function(e,t){return null!==e.getAttribute("data-"+t)?t:null},L(m[0]).children("th, td").each(function(e,t){var n,i=p.aoColumns[e];i.mData===e&&(n=d(t,"sort")||d(t,"order"),t=d(t,"filter")||d(t,"search"),null===n&&null===t||(i.mData={_:e+".display",sort:null!==n?e+".@data-"+n:O,type:null!==n?e+".@data-"+n:O,filter:null!==t?e+".@data-"+t:O},ne(p,e)))}));var b=p.oFeatures,e=function(){if(i.aaSorting===O){var e=p.aaSorting;for(s=0,r=e.length;s<r;s++)e[s][1]=p.aoColumns[s].asSorting[0]}rt(p),b.bSort&&M(p,"aoDrawCallback",function(){var e,n;p.bSorted&&(e=I(p),n={},L.each(e,function(e,t){n[t.src]=t.dir}),P(p,null,"order",[p,e,n]),st(p))}),M(p,"aoDrawCallback",function(){(p.bSorted||"ssp"===E(p)||b.bDeferRender)&&rt(p)},"sc");var t=a.children("caption").each(function(){this._captionSide=L(this).css("caption-side")}),n=a.children("thead"),n=(0===n.length&&(n=L("<thead/>").appendTo(a)),p.nTHead=n[0],a.children("tbody")),n=(0===n.length&&(n=L("<tbody/>").appendTo(a)),p.nTBody=n[0],a.children("tfoot"));if(0===(n=0===n.length&&0<t.length&&(""!==p.oScroll.sX||""!==p.oScroll.sY)?L("<tfoot/>").appendTo(a):n).length||0===n.children().length?a.addClass(f.sNoFooter):0<n.length&&(p.nTFoot=n[0],Se(p.aoFooter,p.nTFoot)),i.aaData)for(s=0;s<i.aaData.length;s++)k(p,i.aaData[s]);else!p.bDeferLoading&&"dom"!=E(p)||ae(p,L(p.nTBody).children("tr"));p.aiDisplay=p.aiDisplayMaster.slice(),!(p.bInitialised=!0)===o&&$e(p)};i.bStateSave?(b.bStateSave=!0,M(p,"aoDrawCallback",ct,"state_save"),ht(p,0,e)):e()}}),S=null,this},i={},w=/[\r\n]/g,B=/<.*?>/g,U=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,V=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),q=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,s=function(e){return!e||!0===e||"-"===e},G=function(e,t){return i[t]||(i[t]=new RegExp(Le(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(i[t],"."):e},R=function(e,t,n){var i=[],s=0,o=e.length;if(n!==O)for(;s<o;s++)e[s]&&e[s][t]&&i.push(e[s][t][n]);else for(;s<o;s++)e[s]&&i.push(e[s][t]);return i},X=function(e){if(!(e.length<2))for(var t=e.slice().sort(),n=t[0],i=1,s=t.length;i<s;i++){if(t[i]===n)return!1;n=t[i]}return!0},Z=function(e){if(X(e))return e.slice();var t,n,i,s=[],o=e.length,a=0;e:for(n=0;n<o;n++){for(t=e[n],i=0;i<a;i++)if(s[i]===t)continue e;s.push(t),a++}return s};function a(n){var i,s,o={};L.each(n,function(e,t){(i=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(i[1]+" ")&&(s=e.replace(i[0],i[2].toLowerCase()),o[s]=e,"o"===i[1])&&a(n[e])}),n._hungarianMap=o}function x(n,i,s){var o;n._hungarianMap||a(n),L.each(i,function(e,t){(o=n._hungarianMap[e])===O||!s&&i[o]!==O||("o"===o.charAt(0)?(i[o]||(i[o]={}),L.extend(!0,i[o],i[e]),x(n[o],i[o],s)):i[o]=i[e])})}function J(e){var t,n=C.defaults.oLanguage,i=n.sDecimal;i&&Et(i),e&&(t=e.sZeroRecords,!e.sEmptyTable&&t&&"No data available in table"===n.sEmptyTable&&A(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&t&&"Loading..."===n.sLoadingRecords&&A(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),t=e.sDecimal)&&i!==t&&Et(t)}C.util={throttle:function(i,e){var s,o,a=e!==O?e:200;return function(){var e=this,t=+new Date,n=arguments;s&&t<s+a?(clearTimeout(o),o=setTimeout(function(){s=O,i.apply(e,n)},a)):(s=t,i.apply(e,n))}},escapeRegex:function(e){return e.replace(V,"\\$1")}};var o=function(e,t,n){e[t]!==O&&(e[n]=e[t])};function Y(e){o(e,"ordering","bSort"),o(e,"orderMulti","bSortMulti"),o(e,"orderClasses","bSortClasses"),o(e,"orderCellsTop","bSortCellsTop"),o(e,"order","aaSorting"),o(e,"orderFixed","aaSortingFixed"),o(e,"paging","bPaginate"),o(e,"pagingType","sPaginationType"),o(e,"pageLength","iDisplayLength"),o(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":"");var t=e.aoSearchCols;if(t)for(var n=0,i=t.length;n<i;n++)t[n]&&x(C.models.oSearch,t[n])}function K(e){o(e,"orderable","bSortable"),o(e,"orderData","aDataSort"),o(e,"orderSequence","asSorting"),o(e,"orderDataType","sortDataType");var t=e.aDataSort;"number"!=typeof t||L.isArray(t)||(e.aDataSort=[t])}function Q(e){var t,n,i,s;C.__browser||(C.__browser=t={},s=(i=(n=L("<div/>").css({position:"fixed",top:0,left:-1*L($).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(L("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(L("<div/>").css({width:"100%",height:10}))).appendTo("body")).children()).children(),t.barWidth=i[0].offsetWidth-i[0].clientWidth,t.bScrollOversize=100===s[0].offsetWidth&&100!==i[0].clientWidth,t.bScrollbarLeft=1!==Math.round(s.offset().left),t.bBounding=!!n[0].getBoundingClientRect().width,n.remove()),L.extend(e.oBrowser,C.__browser),e.oScroll.iBarWidth=C.__browser.barWidth}function ee(e,t,n,i,s,o){var a,r=i,l=!1;for(n!==O&&(a=n,l=!0);r!==s;)e.hasOwnProperty(r)&&(a=l?t(a,e[r],r,e):e[r],l=!0,r+=o);return a}function te(e,t){var n=C.defaults.column,i=e.aoColumns.length,n=L.extend({},C.models.oColumn,n,{nTh:t||b.createElement("th"),sTitle:n.sTitle||(t?t.innerHTML:""),aDataSort:n.aDataSort||[i],mData:n.mData||i,idx:i}),n=(e.aoColumns.push(n),e.aoPreSearchCols);n[i]=L.extend({},C.models.oSearch,n[i]),ne(e,i,L(t).data())}function ne(e,t,n){function i(e){return"string"==typeof e&&-1!==e.indexOf("@")}var t=e.aoColumns[t],s=e.oClasses,o=L(t.nTh),a=(!t.sWidthOrig&&(t.sWidthOrig=o.attr("width")||null,c=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(t.sWidthOrig=c[1]),n!==O&&null!==n&&(K(n),x(C.defaults.column,n),n.mDataProp===O||n.mData||(n.mData=n.mDataProp),n.sType&&(t._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&o.addClass(n.sClass),L.extend(t,n),A(t,n,"sWidth","sWidthOrig"),n.iDataSort!==O&&(t.aDataSort=[n.iDataSort]),A(t,n,"aDataSort")),t.mData),r=D(a),l=t.mRender?D(t.mRender):null,c=(t._bAttrSrc=L.isPlainObject(a)&&(i(a.sort)||i(a.type)||i(a.filter)),t._setter=null,t.fnGetData=function(e,t,n){var i=r(e,t,O,n);return l&&t?l(i,t,e,n):i},t.fnSetData=function(e,t,n){return m(a)(e,t,n)},"number"!=typeof a&&(e._rowReadObject=!0),e.oFeatures.bSort||(t.bSortable=!1,o.addClass(s.sSortableNone)),-1!==L.inArray("asc",t.asSorting)),n=-1!==L.inArray("desc",t.asSorting);t.bSortable&&(c||n)?c&&!n?(t.sSortingClass=s.sSortableAsc,t.sSortingClassJUI=s.sSortJUIAscAllowed):!c&&n?(t.sSortingClass=s.sSortableDesc,t.sSortingClassJUI=s.sSortJUIDescAllowed):(t.sSortingClass=s.sSortable,t.sSortingClassJUI=s.sSortJUI):(t.sSortingClass=s.sSortableNone,t.sSortingClassJUI="")}function F(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;Ke(e);for(var n=0,i=t.length;n<i;n++)t[n].nTh.style.width=t[n].sWidth}var s=e.oScroll;""===s.sY&&""===s.sX||Je(e),P(e,null,"column-sizing",[e])}function j(e,t){e=ie(e,"bVisible");return"number"==typeof e[t]?e[t]:null}function h(e,t){e=ie(e,"bVisible"),t=L.inArray(t,e);return-1!==t?t:null}function T(e){var n=0;return L.each(e.aoColumns,function(e,t){t.bVisible&&"none"!==L(t.nTh).css("display")&&n++}),n}function ie(e,n){var i=[];return L.map(e.aoColumns,function(e,t){e[n]&&i.push(t)}),i}function se(e){for(var t,n,i,s,o,a,r,l=e.aoColumns,c=e.aoData,h=C.ext.type.detect,u=0,d=l.length;u<d;u++)if(r=[],!(o=l[u]).sType&&o._sManualType)o.sType=o._sManualType;else if(!o.sType){for(t=0,n=h.length;t<n;t++){for(i=0,s=c.length;i<s&&(r[i]===O&&(r[i]=y(e,i,u,"type")),(a=h[t](r[i],e))||t===h.length-1)&&"html"!==a;i++);if(a){o.sType=a;break}}o.sType||(o.sType="string")}}function oe(e,t,n,i){var s,o,a,r,l=e.aoColumns;if(t)for(s=t.length-1;0<=s;s--)for(var c,h=(c=t[s]).targets!==O?c.targets:c.aTargets,u=0,d=(h=L.isArray(h)?h:[h]).length;u<d;u++)if("number"==typeof h[u]&&0<=h[u]){for(;l.length<=h[u];)te(e);i(h[u],c)}else if("number"==typeof h[u]&&h[u]<0)i(l.length+h[u],c);else if("string"==typeof h[u])for(a=0,r=l.length;a<r;a++)"_all"!=h[u]&&!L(l[a].nTh).hasClass(h[u])||i(a,c);if(n)for(s=0,o=n.length;s<o;s++)i(s,n[s])}function k(e,t,n,i){for(var s=e.aoData.length,o=L.extend(!0,{},C.models.oRow,{src:n?"dom":"data",idx:s}),a=(o._aData=t,e.aoData.push(o),e.aoColumns),r=0,l=a.length;r<l;r++)a[r].sType=null;e.aiDisplayMaster.push(s);t=e.rowIdFn(t);return t!==O&&(e.aIds[t]=o),!n&&e.oFeatures.bDeferRender||ge(e,s,n,i),s}function ae(n,e){var i;return(e=e instanceof L?e:L(e)).map(function(e,t){return i=fe(n,t),k(n,i.data,t,i.cells)})}function y(e,t,n,i){var s=e.iDraw,o=e.aoColumns[n],a=e.aoData[t]._aData,r=o.sDefaultContent,l=o.fnGetData(a,i,{settings:e,row:t,col:n});if(l===O)return e.iDrawError!=s&&null===r&&(z(e,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+t+", column "+n,4),e.iDrawError=s),r;if(l!==a&&null!==l||null===r||i===O){if("function"==typeof l)return l.call(a)}else l=r;return null===l&&"display"==i?"":l}function re(e,t,n,i){var s=e.aoColumns[n],o=e.aoData[t]._aData;s.fnSetData(o,i,{settings:e,row:t,col:n})}var le=/\[.*?\]$/,p=/\(\)$/;function ce(e){return L.map(e.match(/(\\.|[^\.])+/g)||[""],function(e){return e.replace(/\\\./g,".")})}function D(s){var o,d;return L.isPlainObject(s)?(o={},L.each(s,function(e,t){t&&(o[e]=D(t))}),function(e,t,n,i){var s=o[t]||o._;return s!==O?s(e,t,n,i):e}):null===s?function(e){return e}:"function"==typeof s?function(e,t,n,i){return s(e,t,n,i)}:"string"!=typeof s||-1===s.indexOf(".")&&-1===s.indexOf("[")&&-1===s.indexOf("(")?function(e,t){return e[s]}:(d=function(e,t,n){var i,s,o;if(""!==n)for(var a=ce(n),r=0,l=a.length;r<l;r++){if(u=a[r].match(le),i=a[r].match(p),u){if(a[r]=a[r].replace(le,""),""!==a[r]&&(e=e[a[r]]),s=[],a.splice(0,r+1),o=a.join("."),L.isArray(e))for(var c=0,h=e.length;c<h;c++)s.push(d(e[c],t,o));var u=u[0].substring(1,u[0].length-1);e=""===u?s:s.join(u);break}if(i)a[r]=a[r].replace(p,""),e=e[a[r]]();else{if(null===e||e[a[r]]===O)return O;e=e[a[r]]}}return e},function(e,t){return d(e,t,s)})}function m(i){var d;return L.isPlainObject(i)?m(i._):null===i?function(){}:"function"==typeof i?function(e,t,n){i(e,"set",t,n)}:"string"!=typeof i||-1===i.indexOf(".")&&-1===i.indexOf("[")&&-1===i.indexOf("(")?function(e,t){e[i]=t}:(d=function(e,t,n){for(var i,s,o,a,r=ce(n),n=r[r.length-1],l=0,c=r.length-1;l<c;l++){if(i=r[l].match(le),s=r[l].match(p),i){if(r[l]=r[l].replace(le,""),e[r[l]]=[],(i=r.slice()).splice(0,l+1),a=i.join("."),L.isArray(t))for(var h=0,u=t.length;h<u;h++)d(o={},t[h],a),e[r[l]].push(o);else e[r[l]]=t;return}s&&(r[l]=r[l].replace(p,""),e=e[r[l]](t)),null!==e[r[l]]&&e[r[l]]!==O||(e[r[l]]={}),e=e[r[l]]}n.match(p)?e[n.replace(p,"")](t):e[n.replace(le,"")]=t},function(e,t){return d(e,t,i)})}function he(e){return R(e.aoData,"_aData")}function ue(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function de(e,t,n){for(var i=-1,s=0,o=e.length;s<o;s++)e[s]==t?i=s:e[s]>t&&e[s]--;-1!=i&&n===O&&e.splice(i,1)}function pe(n,i,e,t){function s(e,t){for(;e.childNodes.length;)e.removeChild(e.firstChild);e.innerHTML=y(n,i,t,"display")}var o,a,r=n.aoData[i];if("dom"!==e&&(e&&"auto"!==e||"dom"!==r.src)){var l=r.anCells;if(l)if(t!==O)s(l[t],t);else for(o=0,a=l.length;o<a;o++)s(l[o],o)}else r._aData=fe(n,r,t,t===O?O:r._aData).data;r._aSortData=null,r._aFilterData=null;var c=n.aoColumns;if(t!==O)c[t].sType=null;else{for(o=0,a=c.length;o<a;o++)c[o].sType=null;me(n,r)}}function fe(e,t,n,i){function s(e,t){var n;"string"==typeof e&&-1!==(n=e.indexOf("@"))&&(n=e.substring(n+1),m(e)(i,t.getAttribute(n)))}function o(e){n!==O&&n!==u||(r=d[u],l=L.trim(e.innerHTML),r&&r._bAttrSrc?(m(r.mData._)(i,l),s(r.mData.sort,e),s(r.mData.type,e),s(r.mData.filter,e)):p?(r._setter||(r._setter=m(r.mData)),r._setter(i,l)):i[u]=l),u++}var a,r,l,c=[],h=t.firstChild,u=0,d=e.aoColumns,p=e._rowReadObject;i=i!==O?i:p?{}:[];if(h)for(;h;)"TD"!=(a=h.nodeName.toUpperCase())&&"TH"!=a||(o(h),c.push(h)),h=h.nextSibling;else for(var f=0,g=(c=t.anCells).length;f<g;f++)o(c[f]);var t=t.firstChild?t:t.nTr;return t&&(t=t.getAttribute("id"))&&m(e.rowId)(i,t),{data:i,cells:c}}function ge(e,t,n,i){var s,o,a,r,l,c=e.aoData[t],h=c._aData,u=[];if(null===c.nTr){for(s=n||b.createElement("tr"),c.nTr=s,c.anCells=u,s._DT_RowIndex=t,me(e,c),r=0,l=e.aoColumns.length;r<l;r++)a=e.aoColumns[r],(o=n?i[r]:b.createElement(a.sCellType))._DT_CellIndex={row:t,column:r},u.push(o),n&&!a.mRender&&a.mData===r||L.isPlainObject(a.mData)&&a.mData._===r+".display"||(o.innerHTML=y(e,t,r,"display")),a.sClass&&(o.className+=" "+a.sClass),a.bVisible&&!n?s.appendChild(o):!a.bVisible&&n&&o.parentNode.removeChild(o),a.fnCreatedCell&&a.fnCreatedCell.call(e.oInstance,o,y(e,t,r),h,t,r);P(e,"aoRowCreatedCallback",null,[s,h,t,u])}c.nTr.setAttribute("role","row")}function me(e,t){var n=t.nTr,i=t._aData;n&&((e=e.rowIdFn(i))&&(n.id=e),i.DT_RowClass&&(e=i.DT_RowClass.split(" "),t.__rowc=t.__rowc?Z(t.__rowc.concat(e)):e,L(n).removeClass(t.__rowc.join(" ")).addClass(i.DT_RowClass)),i.DT_RowAttr&&L(n).attr(i.DT_RowAttr),i.DT_RowData)&&L(n).data(i.DT_RowData)}function ve(e){var t,n,i,s=e.nTHead,o=e.nTFoot,a=0===L("th, td",s).length,r=e.oClasses,l=e.aoColumns;for(a&&(n=L("<tr/>").appendTo(s)),h=0,u=l.length;h<u;h++)i=l[h],t=L(i.nTh).addClass(i.sClass),a&&t.appendTo(n),e.oFeatures.bSort&&(t.addClass(i.sSortingClass),!1!==i.bSortable)&&(t.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),at(e,i.nTh,h)),i.sTitle!=t[0].innerHTML&&t.html(i.sTitle),gt(e,"header")(e,t,i,r);if(a&&Se(e.aoHeader,s),L(s).find(">tr").attr("role","row"),L(s).find(">tr>th, >tr>td").addClass(r.sHeaderTH),L(o).find(">tr>th, >tr>td").addClass(r.sFooterTH),null!==o)for(var c=e.aoFooter[0],h=0,u=c.length;h<u;h++)(i=l[h]).nTf=c[h].cell,i.sClass&&L(i.nTf).addClass(i.sClass)}function be(e,t,n){var i,s,o,a,r,l,c,h,u,d=[],p=[],f=e.aoColumns.length;if(t){for(n===O&&(n=!1),i=0,s=t.length;i<s;i++){for(d[i]=t[i].slice(),d[i].nTr=t[i].nTr,o=f-1;0<=o;o--)e.aoColumns[o].bVisible||n||d[i].splice(o,1);p.push([])}for(i=0,s=d.length;i<s;i++){if(c=d[i].nTr)for(;l=c.firstChild;)c.removeChild(l);for(o=0,a=d[i].length;o<a;o++)if(u=h=1,p[i][o]===O){for(c.appendChild(d[i][o].cell),p[i][o]=1;d[i+h]!==O&&d[i][o].cell==d[i+h][o].cell;)p[i+h][o]=1,h++;for(;d[i][o+u]!==O&&d[i][o].cell==d[i][o+u].cell;){for(r=0;r<h;r++)p[i+r][o+u]=1;u++}L(d[i][o].cell).attr("rowspan",h).attr("colspan",u)}}}}function g(e){var t=P(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==L.inArray(!1,t))S(e,!1);else{var n=[],i=0,s=e.asStripeClasses,o=s.length,t=(e.aoOpenRows.length,e.oLanguage),a=e.iInitDisplayStart,r="ssp"==E(e),l=e.aiDisplay,a=(e.bDrawing=!0,a!==O&&-1!==a&&(e._iDisplayStart=!r&&a>=e.fnRecordsDisplay()?0:a,e.iInitDisplayStart=-1),e._iDisplayStart),c=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,S(e,!1);else if(r){if(!e.bDestroying&&!Ce(e))return}else e.iDraw++;if(0!==l.length)for(var h=r?e.aoData.length:c,u=r?0:a;u<h;u++){var d,p=l[u],f=e.aoData[p],g=(null===f.nTr&&ge(e,p),f.nTr);0!==o&&(d=s[i%o],f._sRowStripe!=d)&&(L(g).removeClass(f._sRowStripe).addClass(d),f._sRowStripe=d),P(e,"aoRowCallback",null,[g,f._aData,i,u,p]),n.push(g),i++}else{r=t.sZeroRecords;1==e.iDraw&&"ajax"==E(e)?r=t.sLoadingRecords:t.sEmptyTable&&0===e.fnRecordsTotal()&&(r=t.sEmptyTable),n[0]=L("<tr/>",{class:o?s[0]:""}).append(L("<td />",{valign:"top",colSpan:T(e),class:e.oClasses.sRowEmpty}).html(r))[0]}P(e,"aoHeaderCallback","header",[L(e.nTHead).children("tr")[0],he(e),a,c,l]),P(e,"aoFooterCallback","footer",[L(e.nTFoot).children("tr")[0],he(e),a,c,l]);t=L(e.nTBody);t.children().detach(),t.append(L(n)),P(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function c(e,t){var n=e.oFeatures,i=n.bSort,n=n.bFilter;i&&it(e),n?Ie(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,g(e),e._drawHold=!1}function ye(e){for(var t,n,i,s,o,a,r,l=e.oClasses,c=L(e.nTable),c=L("<div/>").insertBefore(c),h=e.oFeatures,u=L("<div/>",{id:e.sTableId+"_wrapper",class:l.sWrapper+(e.nTFoot?"":" "+l.sNoFooter)}),d=(e.nHolding=c[0],e.nTableWrapper=u[0],e.nTableReinsertBefore=e.nTable.nextSibling,e.sDom.split("")),p=0;p<d.length;p++){if(t=null,"<"==(n=d[p])){if(i=L("<div/>")[0],"'"==(s=d[p+1])||'"'==s){for(o="",a=2;d[p+a]!=s;)o+=d[p+a],a++;"H"==o?o=l.sJUIHeader:"F"==o&&(o=l.sJUIFooter),-1!=o.indexOf(".")?(r=o.split("."),i.id=r[0].substr(1,r[0].length-1),i.className=r[1]):"#"==o.charAt(0)?i.id=o.substr(1,o.length-1):i.className=o,p+=a}u.append(i),u=L(i)}else if(">"==n)u=u.parent();else if("l"==n&&h.bPaginate&&h.bLengthChange)t=Ve(e);else if("f"==n&&h.bFilter)t=De(e);else if("r"==n&&h.bProcessing)t=Xe(e);else if("t"==n)t=Ze(e);else if("i"==n&&h.bInfo)t=Ne(e);else if("p"==n&&h.bPaginate)t=qe(e);else if(0!==C.ext.feature.length)for(var f=C.ext.feature,g=0,m=f.length;g<m;g++)if(n==f[g].cFeature){t=f[g].fnInit(e);break}t&&((r=e.aanFeatures)[n]||(r[n]=[]),r[n].push(t),u.append(t))}c.replaceWith(u),e.nHolding=null}function Se(e,t){var n,i,s,o,a,r,l,c,h,u,d=L(t).children("tr");for(e.splice(0,e.length),s=0,r=d.length;s<r;s++)e.push([]);for(s=0,r=d.length;s<r;s++)for(i=(n=d[s]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase())for(c=(c=+i.getAttribute("colspan"))&&0!=c&&1!=c?c:1,h=(h=+i.getAttribute("rowspan"))&&0!=h&&1!=h?h:1,l=function(e,t,n){for(var i=e[t];i[n];)n++;return n}(e,s,0),u=1==c,a=0;a<c;a++)for(o=0;o<h;o++)e[s+o][l+a]={cell:i,unique:u},e[s+o].nTr=n;i=i.nextSibling}}function _e(e,t,n){var i=[];n||(n=e.aoHeader,t&&Se(n=[],t));for(var s=0,o=n.length;s<o;s++)for(var a=0,r=n[s].length;a<r;a++)!n[s][a].unique||i[a]&&e.bSortCellsTop||(i[a]=n[s][a].cell);return i}function we(s,e,t){function n(e){P(s,null,"xhr",[s,e,s.jqXHR]),t(e)}P(s,"aoServerParams","serverParams",[e]),e&&L.isArray(e)&&(i={},o=/(.*?)\[\]$/,L.each(e,function(e,t){var n=t.name.match(o);n?(n=n[0],i[n]||(i[n]=[]),i[n].push(t.value)):i[t.name]=t.value}),e=i);var i,o,a,r=s.ajax,l=s.oInstance,c=(L.isPlainObject(r)&&r.data&&(c="function"==typeof(a=r.data)?a(e,s):a,e="function"==typeof a&&c?c:L.extend(!0,e,c),delete r.data),{data:e,success:function(e){var t=e.error||e.sError;t&&z(s,0,t),s.json=e,n(e)},dataType:"json",cache:!1,type:s.sServerMethod,error:function(e,t,n){var i=P(s,null,"xhr",[s,null,s.jqXHR]);-1===L.inArray(!0,i)&&("parsererror"==t?z(s,0,"Invalid JSON response",1):4===e.readyState&&z(s,0,"Ajax error",7)),S(s,!1)}});s.oAjaxData=e,P(s,null,"preXhr",[s,e]),s.fnServerData?s.fnServerData.call(l,s.sAjaxSource,L.map(e,function(e,t){return{name:t,value:e}}),n,s):s.sAjaxSource||"string"==typeof r?s.jqXHR=L.ajax(L.extend(c,{url:r||s.sAjaxSource})):"function"==typeof r?s.jqXHR=r.call(l,e,n,s):(s.jqXHR=L.ajax(L.extend(c,r)),r.data=a)}function Ce(t){return!t.bAjaxDataGet||(t.iDraw++,S(t,!0),we(t,xe(t),function(e){Te(t,e)}),!1)}function xe(e){for(var t,n,i,s=e.aoColumns,o=s.length,a=e.oFeatures,r=e.oPreviousSearch,l=e.aoPreSearchCols,c=[],h=I(e),u=e._iDisplayStart,d=!1!==a.bPaginate?e._iDisplayLength:-1,p=function(e,t){c.push({name:e,value:t})},f=(p("sEcho",e.iDraw),p("iColumns",o),p("sColumns",R(s,"sName").join(",")),p("iDisplayStart",u),p("iDisplayLength",d),{draw:e.iDraw,columns:[],order:[],start:u,length:d,search:{value:r.sSearch,regex:r.bRegex}}),g=0;g<o;g++)n=s[g],i=l[g],t="function"==typeof n.mData?"function":n.mData,f.columns.push({data:t,name:n.sName,searchable:n.bSearchable,orderable:n.bSortable,search:{value:i.sSearch,regex:i.bRegex}}),p("mDataProp_"+g,t),a.bFilter&&(p("sSearch_"+g,i.sSearch),p("bRegex_"+g,i.bRegex),p("bSearchable_"+g,n.bSearchable)),a.bSort&&p("bSortable_"+g,n.bSortable);a.bFilter&&(p("sSearch",r.sSearch),p("bRegex",r.bRegex)),a.bSort&&(L.each(h,function(e,t){f.order.push({column:t.col,dir:t.dir}),p("iSortCol_"+e,t.col),p("sSortDir_"+e,t.dir)}),p("iSortingCols",h.length));u=C.ext.legacy.ajax;return null===u?e.sAjaxSource?c:f:u?c:f}function Te(e,n){function t(e,t){return n[e]!==O?n[e]:n[t]}var i=ke(e,n),s=t("sEcho","draw"),o=t("iTotalRecords","recordsTotal"),a=t("iTotalDisplayRecords","recordsFiltered");if(s){if(+s<e.iDraw)return;e.iDraw=+s}ue(e),e._iRecordsTotal=parseInt(o,10),e._iRecordsDisplay=parseInt(a,10);for(var r=0,l=i.length;r<l;r++)k(e,i[r]);e.aiDisplay=e.aiDisplayMaster.slice(),e.bAjaxDataGet=!1,g(e),e._bInitComplete||Be(e,n),e.bAjaxDataGet=!0,S(e,!1)}function ke(e,t){e=L.isPlainObject(e.ajax)&&e.ajax.dataSrc!==O?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===e?t.aaData||t[e]:""!==e?D(e)(t):t}function De(n){function e(){a.f;var e=this.value||"";e!=o.sSearch&&(Ie(n,{sSearch:e,bRegex:o.bRegex,bSmart:o.bSmart,bCaseInsensitive:o.bCaseInsensitive}),n._iDisplayStart=0,g(n))}var t=n.oClasses,i=n.sTableId,s=n.oLanguage,o=n.oPreviousSearch,a=n.aanFeatures,r='<input type="search" class="'+t.sFilterInput+'"/>',l=(l=s.sSearch).match(/_INPUT_/)?l.replace("_INPUT_",r):l+r,r=L("<div/>",{id:a.f?null:i+"_filter",class:t.sFilter}).append(L("<label/>").append(l)),t=null!==n.searchDelay?n.searchDelay:"ssp"===E(n)?400:0,c=L("input",r).val(o.sSearch).attr("placeholder",s.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",t?Qe(e,t):e).on("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",i);return L(n.nTable).on("search.dt.DT",function(e,t){if(n===t)try{c[0]!==b.activeElement&&c.val(o.sSearch)}catch(e){}}),r[0]}function Ie(e,t,n){function i(e){o.sSearch=e.sSearch,o.bRegex=e.bRegex,o.bSmart=e.bSmart,o.bCaseInsensitive=e.bCaseInsensitive}function s(e){return e.bEscapeRegex!==O?!e.bEscapeRegex:e.bRegex}var o=e.oPreviousSearch,a=e.aoPreSearchCols;if(se(e),"ssp"!=E(e)){Pe(e,t.sSearch,n,s(t),t.bSmart,t.bCaseInsensitive),i(t);for(var r=0;r<a.length;r++)Me(e,a[r].sSearch,r,s(a[r]),a[r].bSmart,a[r].bCaseInsensitive);Ae(e)}else i(t);e.bFiltered=!0,P(e,null,"search",[e])}function Ae(e){for(var t,n,i=C.ext.search,s=e.aiDisplay,o=0,a=i.length;o<a;o++){for(var r=[],l=0,c=s.length;l<c;l++)n=s[l],t=e.aoData[n],i[o](e,t._aFilterData,n,t._aData,l)&&r.push(n);s.length=0,L.merge(s,r)}}function Me(e,t,n,i,s,o){if(""!==t){for(var a,r=[],l=e.aiDisplay,c=Ee(t,i,s,o),h=0;h<l.length;h++)a=e.aoData[l[h]]._aFilterData[n],c.test(a)&&r.push(l[h]);e.aiDisplay=r}}function Pe(e,t,n,i,s,o){var a,r,l=Ee(t,i,s,o),i=e.oPreviousSearch.sSearch,s=e.aiDisplayMaster,c=[];if(0!==C.ext.search.length&&(n=!0),o=Fe(e),t.length<=0)e.aiDisplay=s.slice();else{for((o||n||i.length>t.length||0!==t.indexOf(i)||e.bSorted)&&(e.aiDisplay=s.slice()),a=e.aiDisplay,r=0;r<a.length;r++)l.test(e.aoData[a[r]]._sFilterRow)&&c.push(a[r]);e.aiDisplay=c}}function Ee(e,t,n,i){return e=t?e:Le(e),n&&(e="^(?=.*?"+L.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(e){var t;return(e='"'===e.charAt(0)?(t=e.match(/^"(.*)"$/))?t[1]:e:e).replace('"',"")}).join(")(?=.*?")+").*$"),new RegExp(e,i?"i":"")}var Le=C.util.escapeRegex,Oe=L("<div>")[0],Re=Oe.textContent!==O;function Fe(e){for(var t,n,i,s,o,a,r=e.aoColumns,l=C.ext.type.search,c=!1,h=0,u=e.aoData.length;h<u;h++)if(!(a=e.aoData[h])._aFilterData){for(s=[],n=0,i=r.length;n<i;n++)(t=r[n]).bSearchable?(o=y(e,h,n,"filter"),"string"!=typeof(o=null===(o=l[t.sType]?l[t.sType](o):o)?"":o)&&o.toString&&(o=o.toString())):o="",o.indexOf&&-1!==o.indexOf("&")&&(Oe.innerHTML=o,o=Re?Oe.textContent:Oe.innerText),o.replace&&(o=o.replace(/[\r\n]/g,"")),s.push(o);a._aFilterData=s,a._sFilterRow=s.join("  "),c=!0}return c}function je(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function He(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function Ne(e){var t=e.sTableId,n=e.aanFeatures.i,i=L("<div/>",{class:e.oClasses.sInfo,id:n?null:t+"_info"});return n||(e.aoDrawCallback.push({fn:ze,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),L(e.nTable).attr("aria-describedby",t+"_info")),i[0]}function ze(e){var t,n,i,s,o,a,r=e.aanFeatures.i;0!==r.length&&(a=e.oLanguage,t=e._iDisplayStart+1,n=e.fnDisplayEnd(),i=e.fnRecordsTotal(),o=(s=e.fnRecordsDisplay())?a.sInfo:a.sInfoEmpty,s!==i&&(o+=" "+a.sInfoFiltered),o=We(e,o+=a.sInfoPostFix),null!==(a=a.fnInfoCallback)&&(o=a.call(e.oInstance,e,t,n,i,s,o)),L(r).html(o))}function We(e,t){var n=e.fnFormatNumber,i=e._iDisplayStart+1,s=e._iDisplayLength,o=e.fnRecordsDisplay(),a=-1===s;return t.replace(/_START_/g,n.call(e,i)).replace(/_END_/g,n.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,n.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(e,o)).replace(/_PAGE_/g,n.call(e,a?1:Math.ceil(i/s))).replace(/_PAGES_/g,n.call(e,a?1:Math.ceil(o/s)))}function $e(n){var i,e,t,s=n.iInitDisplayStart,o=n.aoColumns,a=n.oFeatures,r=n.bDeferLoading;if(n.bInitialised){for(ye(n),ve(n),be(n,n.aoHeader),be(n,n.aoFooter),S(n,!0),a.bAutoWidth&&Ke(n),i=0,e=o.length;i<e;i++)(t=o[i]).sWidth&&(t.nTh.style.width=N(t.sWidth));P(n,null,"preInit",[n]),c(n);a=E(n);"ssp"==a&&!r||("ajax"==a?we(n,[],function(e){var t=ke(n,e);for(i=0;i<t.length;i++)k(n,t[i]);n.iInitDisplayStart=s,c(n),S(n,!1),Be(n,e)}):(S(n,!1),Be(n)))}else setTimeout(function(){$e(n)},200)}function Be(e,t){e._bInitComplete=!0,(t||e.oInit.aaData)&&F(e),P(e,null,"plugin-init",[e,t]),P(e,"aoInitComplete","init",[e,t])}function Ue(e,t){t=parseInt(t,10);e._iDisplayLength=t,ft(e),P(e,null,"length",[e,t])}function Ve(i){for(var e=i.oClasses,t=i.sTableId,n=i.aLengthMenu,s=L.isArray(n[0]),o=s?n[0]:n,a=s?n[1]:n,r=L("<select/>",{name:t+"_length","aria-controls":t,class:e.sLengthSelect}),l=0,c=o.length;l<c;l++)r[0][l]=new Option("number"==typeof a[l]?i.fnFormatNumber(a[l]):a[l],o[l]);var h=L("<div><label/></div>").addClass(e.sLength);return i.aanFeatures.l||(h[0].id=t+"_length"),h.children().append(i.oLanguage.sLengthMenu.replace("_MENU_",r[0].outerHTML)),L("select",h).val(i._iDisplayLength).on("change.DT",function(e){Ue(i,L(this).val()),g(i)}),L(i.nTable).on("length.dt.DT",function(e,t,n){i===t&&L("select",h).val(n)}),h[0]}function qe(e){function h(e){g(e)}var t=e.sPaginationType,u=C.ext.pager[t],d="function"==typeof u,t=L("<div/>").addClass(e.oClasses.sPaging+t)[0],p=e.aanFeatures;return d||u.fnInit(e,t,h),p.p||(t.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(e){if(d)for(var t=e._iDisplayStart,n=e._iDisplayLength,i=e.fnRecordsDisplay(),s=-1===n,o=s?0:Math.ceil(t/n),a=s?1:Math.ceil(i/n),r=u(o,a),l=0,c=p.p.length;l<c;l++)gt(e,"pageButton")(e,p.p[l],l,r,o,a);else u.fnUpdate(e,h)},sName:"pagination"})),t}function Ge(e,t,n){var i=e._iDisplayStart,s=e._iDisplayLength,o=e.fnRecordsDisplay(),o=(0===o||-1===s?i=0:"number"==typeof t?o<(i=t*s)&&(i=0):"first"==t?i=0:"previous"==t?(i=0<=s?i-s:0)<0&&(i=0):"next"==t?i+s<o&&(i+=s):"last"==t?i=Math.floor((o-1)/s)*s:z(e,0,"Unknown paging action: "+t,5),e._iDisplayStart!==i);return e._iDisplayStart=i,o&&(P(e,null,"page",[e]),n)&&g(e),o}function Xe(e){return L("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function S(e,t){e.oFeatures.bProcessing&&L(e.aanFeatures.r).css("display",t?"block":"none"),P(e,null,"processing",[e,t])}function Ze(e){var t,n,i,s,o,a,r,l,c,h,u,d,p=L(e.nTable),f=(p.attr("role","grid"),e.oScroll);return""===f.sX&&""===f.sY?e.nTable:(t=f.sX,n=f.sY,i=e.oClasses,o=(s=p.children("caption")).length?s[0]._captionSide:null,l=L(p[0].cloneNode(!1)),a=L(p[0].cloneNode(!1)),c=function(e){return e?N(e):null},(r=p.children("tfoot")).length||(r=null),l=L(u="<div/>",{class:i.sScrollWrapper}).append(L(u,{class:i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:t?c(t):"100%"}).append(L(u,{class:i.sScrollHeadInner}).css({"box-sizing":"content-box",width:f.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===o?s:null).append(p.children("thead"))))).append(L(u,{class:i.sScrollBody}).css({position:"relative",overflow:"auto",width:c(t)}).append(p)),r&&l.append(L(u,{class:i.sScrollFoot}).css({overflow:"hidden",border:0,width:t?c(t):"100%"}).append(L(u,{class:i.sScrollFootInner}).append(a.removeAttr("id").css("margin-left",0).append("bottom"===o?s:null).append(p.children("tfoot"))))),c=l.children(),h=c[0],u=c[1],d=r?c[2]:null,t&&L(u).on("scroll.DT",function(e){var t=this.scrollLeft;h.scrollLeft=t,r&&(d.scrollLeft=t)}),L(u).css(n&&f.bCollapse?"max-height":"height",n),e.nScrollHead=h,e.nScrollBody=u,e.nScrollFoot=d,e.aoDrawCallback.push({fn:Je,sName:"scrolling"}),l[0])}function Je(n){function e(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0}var t,i,s,o,a,r=n.oScroll,l=r.sX,c=r.sXInner,h=r.sY,r=r.iBarWidth,u=L(n.nScrollHead),d=u[0].style,p=u.children("div"),f=p[0].style,p=p.children("table"),g=n.nScrollBody,m=L(g),v=g.style,b=L(n.nScrollFoot).children("div"),y=b.children("table"),S=L(n.nTHead),_=L(n.nTable),w=_[0],C=w.style,x=n.nTFoot?L(n.nTFoot):null,T=n.oBrowser,k=T.bScrollOversize,D=R(n.aoColumns,"nTh"),I=[],A=[],M=[],P=[],E=g.scrollHeight>g.clientHeight;n.scrollBarVis!==E&&n.scrollBarVis!==O?(n.scrollBarVis=E,F(n)):(n.scrollBarVis=E,_.children("thead, tfoot").remove(),x&&(E=x.clone().prependTo(_),a=x.find("tr"),i=E.find("tr")),E=S.clone().prependTo(_),S=S.find("tr"),t=E.find("tr"),E.find("th, td").removeAttr("tabindex"),l||(v.width="100%",u[0].style.width="100%"),L.each(_e(n,E),function(e,t){s=j(n,e),t.style.width=n.aoColumns[s].sWidth}),x&&H(function(e){e.style.width=""},i),u=_.outerWidth(),""===l?(C.width="100%",k&&(_.find("tbody").height()>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=N(_.outerWidth()-r)),u=_.outerWidth()):""!==c&&(C.width=N(c),u=_.outerWidth()),H(e,t),H(function(e){M.push(e.innerHTML),I.push(N(L(e).css("width")))},t),H(function(e,t){-1!==L.inArray(e,D)&&(e.style.width=I[t])},S),L(t).height(0),x&&(H(e,i),H(function(e){P.push(e.innerHTML),A.push(N(L(e).css("width")))},i),H(function(e,t){e.style.width=A[t]},a),L(i).height(0)),H(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+M[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=I[t]},t),x&&H(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+P[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=A[t]},i),_.outerWidth()<u?(o=g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y")?u+r:u,k&&(g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=N(o-r)),""!==l&&""===c||z(n,1,"Possible column misalignment",6)):o="100%",v.width=N(o),d.width=N(o),x&&(n.nScrollFoot.style.width=N(o)),h||k&&(v.height=N(w.offsetHeight+r)),E=_.outerWidth(),p[0].style.width=N(E),f.width=N(E),S=_.height()>g.clientHeight||"scroll"==m.css("overflow-y"),f[a="padding"+(T.bScrollbarLeft?"Left":"Right")]=S?r+"px":"0px",x&&(y[0].style.width=N(E),b[0].style.width=N(E),b[0].style[a]=S?r+"px":"0px"),_.children("colgroup").insertBefore(_.children("thead")),m.scroll(),!n.bSorted&&!n.bFiltered||n._drawHold||(g.scrollTop=0))}function H(e,t,n){for(var i,s,o=0,a=0,r=t.length;a<r;){for(i=t[a].firstChild,s=n?n[a].firstChild:null;i;)1===i.nodeType&&(n?e(i,s,o):e(i,o),o++),i=i.nextSibling,s=n?s.nextSibling:null;a++}}var Ye=/<.*?>/g;function Ke(e){var t,n,i=e.nTable,s=e.aoColumns,o=e.oScroll,a=o.sY,r=o.sX,o=o.sXInner,l=s.length,c=ie(e,"bVisible"),h=L("th",e.nTHead),u=i.getAttribute("width"),d=i.parentNode,p=!1,f=e.oBrowser,g=f.bScrollOversize,m=i.style.width;for(m&&-1!==m.indexOf("%")&&(u=m),_=0;_<c.length;_++)null!==(t=s[c[_]]).sWidth&&(t.sWidth=et(t.sWidthOrig,d),p=!0);if(g||!p&&!r&&!a&&l==T(e)&&l==h.length)for(_=0;_<l;_++){var v=j(e,_);null!==v&&(s[v].sWidth=N(h.eq(_).width()))}else{var m=L(i).clone().css("visibility","hidden").removeAttr("id"),b=(m.find("tbody tr").remove(),L("<tr/>").appendTo(m.find("tbody")));for(m.find("thead, tfoot").remove(),m.append(L(e.nTHead).clone()).append(L(e.nTFoot).clone()),m.find("tfoot th, tfoot td").css("width",""),h=_e(e,m.find("thead")[0]),_=0;_<c.length;_++)t=s[c[_]],h[_].style.width=null!==t.sWidthOrig&&""!==t.sWidthOrig?N(t.sWidthOrig):"",t.sWidthOrig&&r&&L(h[_]).append(L("<div/>").css({width:t.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(e.aoData.length)for(_=0;_<c.length;_++)t=s[n=c[_]],L(tt(e,n)).clone(!1).append(t.sContentPadding).appendTo(b);L("[name]",m).removeAttr("name");for(var y=L("<div/>").css(r||a?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(m).appendTo(d),S=(r&&o?m.width(o):r?(m.css("width","auto"),m.removeAttr("width"),m.width()<d.clientWidth&&u&&m.width(d.clientWidth)):a?m.width(d.clientWidth):u&&m.width(u),0),_=0;_<c.length;_++){var w=L(h[_]),C=w.outerWidth()-w.width(),w=f.bBounding?Math.ceil(h[_].getBoundingClientRect().width):w.outerWidth();S+=w,s[c[_]].sWidth=N(w-C)}i.style.width=N(S),y.remove()}u&&(i.style.width=N(u)),!u&&!r||e._reszEvt||(o=function(){L($).on("resize.DT-"+e.sInstance,Qe(function(){F(e)}))},g?setTimeout(o,1e3):o(),e._reszEvt=!0)}var Qe=C.util.throttle;function et(e,t){return e?(t=(e=L("<div/>").css("width",N(e)).appendTo(t||b.body))[0].offsetWidth,e.remove(),t):0}function tt(e,t){var n,i=nt(e,t);return i<0?null:(n=e.aoData[i]).nTr?n.anCells[t]:L("<td/>").html(y(e,i,t,"display"))[0]}function nt(e,t){for(var n,i=-1,s=-1,o=0,a=e.aoData.length;o<a;o++)(n=(n=(n=y(e,o,t,"display")+"").replace(Ye,"")).replace(/&nbsp;/g," ")).length>i&&(i=n.length,s=o);return s}function N(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function I(e){function t(e){e.length&&!L.isArray(e[0])?p.push(e):L.merge(p,e)}var n,i,s,o,a,r,l,c=[],h=e.aoColumns,u=e.aaSortingFixed,d=L.isPlainObject(u),p=[];for(L.isArray(u)&&t(u),d&&u.pre&&t(u.pre),t(e.aaSorting),d&&u.post&&t(u.post),n=0;n<p.length;n++)for(s=(o=h[l=p[n][i=0]].aDataSort).length;i<s;i++)r=h[a=o[i]].sType||"string",p[n]._idx===O&&(p[n]._idx=L.inArray(p[n][1],h[a].asSorting)),c.push({src:l,col:a,dir:p[n][1],index:p[n]._idx,type:r,formatter:C.ext.type.order[r+"-pre"]});return c}function it(e){var t,n,i,s,h,u=[],c=C.ext.type.order,d=e.aoData,o=(e.aoColumns,0),a=e.aiDisplayMaster;for(se(e),t=0,n=(h=I(e)).length;t<n;t++)(s=h[t]).formatter&&o++,lt(e,s.col);if("ssp"!=E(e)&&0!==h.length){for(t=0,i=a.length;t<i;t++)u[a[t]]=t;o===h.length?a.sort(function(e,t){for(var n,i,s,o,a=h.length,r=d[e]._aSortData,l=d[t]._aSortData,c=0;c<a;c++)if(0!=(s=(n=r[(o=h[c]).col])<(i=l[o.col])?-1:i<n?1:0))return"asc"===o.dir?s:-s;return(n=u[e])<(i=u[t])?-1:i<n?1:0}):a.sort(function(e,t){for(var n,i,s,o=h.length,a=d[e]._aSortData,r=d[t]._aSortData,l=0;l<o;l++)if(n=a[(s=h[l]).col],i=r[s.col],0!==(s=(c[s.type+"-"+s.dir]||c["string-"+s.dir])(n,i)))return s;return(n=u[e])<(i=u[t])?-1:i<n?1:0})}e.bSorted=!0}function st(e){for(var t=e.aoColumns,n=I(e),i=e.oLanguage.oAria,s=0,o=t.length;s<o;s++){var a=t[s],r=a.asSorting,l=a.sTitle.replace(/<.*?>/g,""),c=a.nTh;c.removeAttribute("aria-sort"),a=a.bSortable?l+("asc"===(0<n.length&&n[0].col==s&&(c.setAttribute("aria-sort","asc"==n[0].dir?"ascending":"descending"),r[n[0].index+1])||r[0])?i.sSortAscending:i.sSortDescending):l,c.setAttribute("aria-label",a)}}function ot(e,t,n,i){function s(e,t){var n=e._idx;return(n=n===O?L.inArray(e[1],l):n)+1<l.length?n+1:t?null:0}var o,a=e.aoColumns[t],r=e.aaSorting,l=a.asSorting;"number"==typeof r[0]&&(r=e.aaSorting=[r]),n&&e.oFeatures.bSortMulti?-1!==(a=L.inArray(t,R(r,"0")))?null===(o=null===(o=s(r[a],!0))&&1===r.length?0:o)?r.splice(a,1):(r[a][1]=l[o],r[a]._idx=o):(r.push([t,l[0],0]),r[r.length-1]._idx=0):r.length&&r[0][0]==t?(o=s(r[0]),r.length=1,r[0][1]=l[o],r[0]._idx=o):(r.length=0,r.push([t,l[0]]),r[0]._idx=0),c(e),"function"==typeof i&&i(e)}function at(t,e,n,i){var s=t.aoColumns[n];pt(e,{},function(e){!1!==s.bSortable&&(t.oFeatures.bProcessing?(S(t,!0),setTimeout(function(){ot(t,n,e.shiftKey,i),"ssp"!==E(t)&&S(t,!1)},0)):ot(t,n,e.shiftKey,i))})}function rt(e){var t,n,i,s=e.aLastSort,o=e.oClasses.sSortColumn,a=I(e),r=e.oFeatures;if(r.bSort&&r.bSortClasses){for(t=0,n=s.length;t<n;t++)i=s[t].src,L(R(e.aoData,"anCells",i)).removeClass(o+(t<2?t+1:3));for(t=0,n=a.length;t<n;t++)i=a[t].src,L(R(e.aoData,"anCells",i)).addClass(o+(t<2?t+1:3))}e.aLastSort=a}function lt(e,t){for(var n,i,s,o=e.aoColumns[t],a=C.ext.order[o.sSortDataType],r=(a&&(n=a.call(e.oInstance,e,t,h(e,t))),C.ext.type.order[o.sType+"-pre"]),l=0,c=e.aoData.length;l<c;l++)(i=e.aoData[l])._aSortData||(i._aSortData=[]),i._aSortData[t]&&!a||(s=a?n[l]:y(e,l,t,"sort"),i._aSortData[t]=r?r(s):s)}function ct(n){var e;n.oFeatures.bStateSave&&!n.bDestroying&&(e={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:L.extend(!0,[],n.aaSorting),search:je(n.oPreviousSearch),columns:L.map(n.aoColumns,function(e,t){return{visible:e.bVisible,search:je(n.aoPreSearchCols[t])}})},P(n,"aoStateSaveParams","stateSaveParams",[n,e]),n.oSavedState=e,n.fnStateSaveCallback.call(n.oInstance,n,e))}function ht(i,e,s){function t(e){if(e&&e.time){var t=P(i,"aoStateLoadParams","stateLoadParams",[i,e]);if(-1===L.inArray(!1,t)){t=i.iStateDuration;if(!(0<t&&e.time<+new Date-1e3*t||e.columns&&r.length!==e.columns.length)){if(i.oLoadedState=L.extend(!0,{},e),e.start!==O&&(i._iDisplayStart=e.start,i.iInitDisplayStart=e.start),e.length!==O&&(i._iDisplayLength=e.length),e.order!==O&&(i.aaSorting=[],L.each(e.order,function(e,t){i.aaSorting.push(t[0]>=r.length?[0,t[1]]:t)})),e.search!==O&&L.extend(i.oPreviousSearch,He(e.search)),e.columns)for(o=0,a=e.columns.length;o<a;o++){var n=e.columns[o];n.visible!==O&&(r[o].bVisible=n.visible),n.search!==O&&L.extend(i.aoPreSearchCols[o],He(n.search))}P(i,"aoStateLoaded","stateLoaded",[i,e])}}}s()}var o,a,n,r=i.aoColumns;i.oFeatures.bStateSave?(n=i.fnStateLoadCallback.call(i.oInstance,i,t))!==O&&t(n):s()}function ut(e){var t=C.settings,e=L.inArray(e,R(t,"nTable"));return-1!==e?t[e]:null}function z(e,t,n,i){if(n="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+n,i&&(n+=". For more information about this error, please see http://datatables.net/tn/"+i),t)$.console&&console.log&&console.log(n);else{t=C.ext,t=t.sErrMode||t.errMode;if(e&&P(e,null,"error",[e,i,n]),"alert"==t)alert(n);else{if("throw"==t)throw new Error(n);"function"==typeof t&&t(e,i,n)}}}function A(n,i,e,t){L.isArray(e)?L.each(e,function(e,t){L.isArray(t)?A(n,i,t[0],t[1]):A(n,i,t)}):(t===O&&(t=e),i[e]!==O&&(n[t]=i[e]))}function dt(e,t,n){var i,s;for(s in t)t.hasOwnProperty(s)&&(i=t[s],L.isPlainObject(i)?(L.isPlainObject(e[s])||(e[s]={}),L.extend(!0,e[s],i)):n&&"data"!==s&&"aaData"!==s&&L.isArray(i)?e[s]=i.slice():e[s]=i);return e}function pt(t,e,n){L(t).on("click.DT",e,function(e){L(t).blur(),n(e)}).on("keypress.DT",e,function(e){13===e.which&&(e.preventDefault(),n(e))}).on("selectstart.DT",function(){return!1})}function M(e,t,n,i){n&&e[t].push({fn:n,sName:i})}function P(n,e,t,i){var s=[];return e&&(s=L.map(n[e].slice().reverse(),function(e,t){return e.fn.apply(n.oInstance,i)})),null!==t&&(e=L.Event(t+".dt"),L(n.nTable).trigger(e,i),s.push(e.result)),s}function ft(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),i=e._iDisplayLength;n<=t&&(t=n-i),t-=t%i,e._iDisplayStart=t=-1===i||t<0?0:t}function gt(e,t){var e=e.renderer,n=C.ext.renderer[t];return L.isPlainObject(e)&&e[t]?n[e[t]]||n._:"string"==typeof e&&n[e]||n._}function E(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function mt(s,o,e){var t,n;e&&(t=new W(s)).one("draw",function(){e(t.ajax.json())}),"ssp"==E(s)?c(s,o):(S(s,!0),(n=s.jqXHR)&&4!==n.readyState&&n.abort(),we(s,[],function(e){ue(s);for(var t=ke(s,e),n=0,i=t.length;n<i;n++)k(s,t[n]);c(s,o),S(s,!1)}))}function vt(e,t,n,i,s){for(var o,a,r,l,c=[],h=typeof t,u=0,d=(t=t&&"string"!=h&&"function"!=h&&t.length!==O?t:[t]).length;u<d;u++)for(r=0,l=(a=t[u]&&t[u].split&&!t[u].match(/[\[\(:]/)?t[u].split(","):[t[u]]).length;r<l;r++)(o=n("string"==typeof a[r]?L.trim(a[r]):a[r]))&&o.length&&(c=c.concat(o));var p=f.selector[e];if(p.length)for(u=0,d=p.length;u<d;u++)c=p[u](i,s,c);return Z(c)}function bt(e){return(e=e||{}).filter&&e.search===O&&(e.search=e.filter),L.extend({search:"none",order:"current",page:"all"},e)}function yt(e){for(var t=0,n=e.length;t<n;t++)if(0<e[t].length)return e[0]=e[t],e[0].length=1,e.length=1,e.context=[e.context[t]],e;return e.length=0,e}function St(o,e,t,n){function a(e,t){var n;if(L.isArray(e)||e instanceof L)for(var i=0,s=e.length;i<s;i++)a(e[i],t);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?r.push(e):(n=L("<tr><td/></tr>").addClass(t),L("td",n).addClass(t).html(e)[0].colSpan=T(o),r.push(n[0]))}var r=[];a(t,n),e._details&&e._details.detach(),e._details=L(r),e._detailsShow&&e._details.insertAfter(e.nTr)}function _t(e,t){if((n=e.context).length&&e.length){e=n[0].aoData[e[0]];if(e._details){(e._detailsShow=t)?e._details.insertAfter(e.nTr):e._details.detach();var l=n[0],s=new W(l),t=".dt.DT_details",e="draw"+t,n="column-visibility"+t,t="destroy"+t,c=l.aoData;if(s.off(e+" "+n+" "+t),R(c,"_details").length>0){s.on(e,function(e,t){if(l!==t)return;s.rows({page:"current"}).eq(0).each(function(e){var t=c[e];if(t._detailsShow)t._details.insertAfter(t.nTr)})});s.on(n,function(e,t,n,i){if(l!==t)return;var s,o=T(t);for(var a=0,r=c.length;a<r;a++){s=c[a];if(s._details)s._details.children("td[colspan]").attr("colspan",o)}});s.on(t,function(e,t){if(l!==t)return;for(var n=0,i=c.length;n<i;n++)if(c[n]._details)Tt(s,n)})}}}}function wt(e,t,n,i,s){for(var o=[],a=0,r=s.length;a<r;a++)o.push(y(e,s[a],t));return o}var Ct=[],r=Array.prototype,W=function(e,t){if(!(this instanceof W))return new W(e,t);function n(e){var t,n,i,s;e=e,i=C.settings,s=L.map(i,function(e,t){return e.nTable}),(e=e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(t=L.inArray(e,s))?[i[t]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=L(e):e instanceof L&&(n=e),n?n.map(function(e){return-1!==(t=L.inArray(this,s))?i[t]:null}).toArray():void 0):[])&&(o=o.concat(e))}var o=[];if(L.isArray(e))for(var i=0,s=e.length;i<s;i++)n(e[i]);else n(e);this.context=Z(o),t&&L.merge(this,t),this.selector={rows:null,cols:null,opts:null},W.extend(this,this,Ct)},xt=(C.Api=W,L.extend(W.prototype,{any:function(){return 0!==this.count()},concat:r.concat,context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new W(t[e],this[e]):null},filter:function(e){var t=[];if(r.filter)t=r.filter.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)e.call(this,this[n],n,this)&&t.push(this[n]);return new W(this.context,t)},flatten:function(){var e=[];return new W(this.context,e.concat.apply(e,this.toArray()))},join:r.join,indexOf:r.indexOf||function(e,t){for(var n=t||0,i=this.length;n<i;n++)if(this[n]===e)return n;return-1},iterator:function(e,t,n,i){var s,o,a,r,l,c,h,u,d=[],p=this.context,f=this.selector;for("string"==typeof e&&(i=n,n=t,t=e,e=!1),o=0,a=p.length;o<a;o++){var g=new W(p[o]);if("table"===t)(s=n.call(g,p[o],o))!==O&&d.push(s);else if("columns"===t||"rows"===t)(s=n.call(g,p[o],this[o],o))!==O&&d.push(s);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t)for(h=this[o],"column-rows"===t&&(c=xt(p[o],f.opts)),r=0,l=h.length;r<l;r++)u=h[r],(s="cell"===t?n.call(g,p[o],u.row,u.column,o,r):n.call(g,p[o],u,o,r,c))!==O&&d.push(s)}return d.length||i?((e=(i=new W(p,e?d.concat.apply([],d):d)).selector).rows=f.rows,e.cols=f.cols,e.opts=f.opts,i):this},lastIndexOf:r.lastIndexOf||function(e,t){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(r.map)t=r.map.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)t.push(e.call(this,this[n],n));return new W(this.context,t)},pluck:function(t){return this.map(function(e){return e[t]})},pop:r.pop,push:r.push,reduce:r.reduce||function(e,t){return ee(this,e,t,0,this.length,1)},reduceRight:r.reduceRight||function(e,t){return ee(this,e,t,this.length-1,-1,-1)},reverse:r.reverse,selector:null,shift:r.shift,slice:function(){return new W(this.context,this)},sort:r.sort,splice:r.splice,toArray:function(){return r.slice.call(this)},to$:function(){return L(this)},toJQuery:function(){return L(this)},unique:function(){return new W(this.context,Z(this))},unshift:r.unshift}),W.extend=function(e,t,n){if(n.length&&t&&(t instanceof W||t.__dt_wrapper))for(var i,s=0,o=n.length;s<o;s++)t[(i=n[s]).name]="function"==typeof i.val?function(t,n,i){return function(){var e=n.apply(t,arguments);return W.extend(e,e,i.methodExt),e}}(e,i.val,i):L.isPlainObject(i.val)?{}:i.val,t[i.name].__dt_wrapper=!0,W.extend(e,t[i.name],i.propExt)},W.register=t=function(e,t){if(L.isArray(e))for(var n=0,i=e.length;n<i;n++)W.register(e[n],t);else for(var s=e.split("."),o=Ct,a=0,r=s.length;a<r;a++){var l,c,h=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n].name===t)return e[n];return null}(o,c=(l=-1!==s[a].indexOf("()"))?s[a].replace("()",""):s[a]);h||o.push(h={name:c,val:{},methodExt:[],propExt:[]}),a===r-1?h.val=t:o=l?h.methodExt:h.propExt}},W.registerPlural=e=function(e,t,n){W.register(e,n),W.register(t,function(){var e=n.apply(this,arguments);return e===this?this:e instanceof W?e.length?L.isArray(e[0])?new W(e.context,e[0]):e[0]:O:e})},t("tables()",function(e){return e?new W((e=e,n=this.context,"number"==typeof e?[n[e]]:(i=L.map(n,function(e,t){return e.nTable}),L(i).filter(e).map(function(e){var t=L.inArray(this,i);return n[t]}).toArray()))):this;var n,i}),t("table()",function(e){var e=this.tables(e),t=e.context;return t.length?new W(t[0]):e}),e("tables().nodes()","table().node()",function(){return this.iterator("table",function(e){return e.nTable},1)}),e("tables().body()","table().body()",function(){return this.iterator("table",function(e){return e.nTBody},1)}),e("tables().header()","table().header()",function(){return this.iterator("table",function(e){return e.nTHead},1)}),e("tables().footer()","table().footer()",function(){return this.iterator("table",function(e){return e.nTFoot},1)}),e("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)}),t("draw()",function(t){return this.iterator("table",function(e){"page"===t?g(e):c(e,!1===(t="string"==typeof t?"full-hold"!==t:t))})}),t("page()",function(t){return t===O?this.page.info().page:this.iterator("table",function(e){Ge(e,t)})}),t("page.info()",function(e){var t,n,i,s,o;return 0===this.context.length?O:(n=(t=this.context[0])._iDisplayStart,i=t.oFeatures.bPaginate?t._iDisplayLength:-1,s=t.fnRecordsDisplay(),{page:(o=-1===i)?0:Math.floor(n/i),pages:o?1:Math.ceil(s/i),start:n,end:t.fnDisplayEnd(),length:i,recordsTotal:t.fnRecordsTotal(),recordsDisplay:s,serverSide:"ssp"===E(t)})}),t("page.len()",function(t){return t===O?0!==this.context.length?this.context[0]._iDisplayLength:O:this.iterator("table",function(e){Ue(e,t)})}),t("ajax.json()",function(){var e=this.context;if(0<e.length)return e[0].json}),t("ajax.params()",function(){var e=this.context;if(0<e.length)return e[0].oAjaxData}),t("ajax.reload()",function(t,n){return this.iterator("table",function(e){mt(e,!1===n,t)})}),t("ajax.url()",function(t){var e=this.context;return t===O?0===e.length?O:(e=e[0]).ajax?L.isPlainObject(e.ajax)?e.ajax.url:e.ajax:e.sAjaxSource:this.iterator("table",function(e){L.isPlainObject(e.ajax)?e.ajax.url=t:e.ajax=t})}),t("ajax.url().load()",function(t,n){return this.iterator("table",function(e){mt(e,!1===n,t)})}),function(e,t){var n,i=[],s=e.aiDisplay,o=e.aiDisplayMaster,a=t.search,r=t.order,t=t.page;if("ssp"==E(e))return"removed"===a?[]:u(0,o.length);if("current"==t)for(c=e._iDisplayStart,h=e.fnDisplayEnd();c<h;c++)i.push(s[c]);else if("current"==r||"applied"==r){if("none"==a)i=o.slice();else if("applied"==a)i=s.slice();else if("removed"==a){for(var l={},c=0,h=s.length;c<h;c++)l[s[c]]=null;i=L.map(o,function(e){return l.hasOwnProperty(e)?null:e})}}else if("index"==r||"original"==r)for(c=0,h=e.aoData.length;c<h;c++)("none"==a||-1===(n=L.inArray(c,s))&&"removed"==a||0<=n&&"applied"==a)&&i.push(c);return i}),Tt=(t("rows()",function(t,n){t===O?t="":L.isPlainObject(t)&&(n=t,t=""),n=bt(n);var e=this.iterator("table",function(e){return vt("row",t,function(n){var e=d(n),i=s.aoData;if(null!==e&&!o)return[e];if(a=a||xt(s,o),null!==e&&-1!==L.inArray(e,a))return[e];if(null===n||n===O||""===n)return a;if("function"==typeof n)return L.map(a,function(e){var t=i[e];return n(e,t._aData,t.nTr)?e:null});if(n.nodeName)return e=n._DT_RowIndex,t=n._DT_CellIndex,e!==O?i[e]&&i[e].nTr===n?[e]:[]:t?i[t.row]&&i[t.row].nTr===n?[t.row]:[]:(e=L(n).closest("*[data-dt-row]")).length?[e.data("dt-row")]:[];if("string"==typeof n&&"#"===n.charAt(0)){var t=s.aIds[n.replace(/^#/,"")];if(t!==O)return[t.idx]}e=_(v(s.aoData,a,"nTr"));return L(e).filter(n).map(function(){return this._DT_RowIndex}).toArray()},s=e,o=n);var s,o,a},1);return e.selector.rows=t,e.selector.opts=n,e}),t("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||O},1)}),t("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return v(e.aoData,t,"_aData")},1)}),e("rows().cache()","row().cache()",function(n){return this.iterator("row",function(e,t){e=e.aoData[t];return"search"===n?e._aFilterData:e._aSortData},1)}),e("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(e,t){pe(e,t,n)})}),e("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)}),e("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,i=0,s=n.length;i<s;i++)for(var o=0,a=this[i].length;o<a;o++){var r=n[i].rowIdFn(n[i].aoData[this[i][o]]._aData);t.push((!0===e?"#":"")+r)}return new W(n,t)}),e("rows().remove()","row().remove()",function(){var u=this;return this.iterator("row",function(e,t,n){var i,s,o,a,r,l,c=e.aoData,h=c[t];for(c.splice(t,1),i=0,s=c.length;i<s;i++)if(l=(r=c[i]).anCells,null!==r.nTr&&(r.nTr._DT_RowIndex=i),null!==l)for(o=0,a=l.length;o<a;o++)l[o]._DT_CellIndex.row=i;de(e.aiDisplayMaster,t),de(e.aiDisplay,t),de(u[n],t,!1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,ft(e);n=e.rowIdFn(h._aData);n!==O&&delete e.aIds[n]}),this.iterator("table",function(e){for(var t=0,n=e.aoData.length;t<n;t++)e.aoData[t].idx=t}),this}),t("rows.add()",function(o){var e=this.iterator("table",function(e){for(var t,n=[],i=0,s=o.length;i<s;i++)(t=o[i]).nodeName&&"TR"===t.nodeName.toUpperCase()?n.push(ae(e,t)[0]):n.push(k(e,t));return n},1),t=this.rows(-1);return t.pop(),L.merge(t,e),t}),t("row()",function(e,t){return yt(this.rows(e,t))}),t("row().data()",function(e){var t,n=this.context;return e===O?n.length&&this.length?n[0].aoData[this[0]]._aData:O:((t=n[0].aoData[this[0]])._aData=e,L.isArray(e)&&t.nTr.id&&m(n[0].rowId)(e,t.nTr.id),pe(n[0],this[0],"data"),this)}),t("row().node()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]].nTr||null}),t("row.add()",function(t){t instanceof L&&t.length&&(t=t[0]);var e=this.iterator("table",function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?ae(e,t)[0]:k(e,t)});return this.row(e[0])}),function(e,t){var n=e.context;n.length&&(n=n[0].aoData[t!==O?t:e[0]])&&n._details&&(n._details.remove(),n._detailsShow=O,n._details=O)}),kt="row().child",Dt=kt+"()",It=(t(Dt,function(e,t){var n=this.context;return e===O?n.length&&this.length?n[0].aoData[this[0]]._details:O:(!0===e?this.child.show():!1===e?Tt(this):n.length&&this.length&&St(n[0],n[0].aoData[this[0]],e,t),this)}),t([kt+".show()",Dt+".show()"],function(e){return _t(this,!0),this}),t([kt+".hide()",Dt+".hide()"],function(){return _t(this,!1),this}),t([kt+".remove()",Dt+".remove()"],function(){return Tt(this),this}),t(kt+".isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}),/^([^:]+):(name|visIdx|visible)$/),At=(t("columns()",function(n,i){n===O?n="":L.isPlainObject(n)&&(i=n,n=""),i=bt(i);var e=this.iterator("table",function(e){return t=n,r=i,l=(a=e).aoColumns,c=R(l,"sName"),h=R(l,"nTh"),vt("column",t,function(n){var i,e=d(n);if(""===n)return u(l.length);if(null!==e)return[0<=e?e:l.length+e];if("function"==typeof n)return i=xt(a,r),L.map(l,function(e,t){return n(t,wt(a,t,0,0,i),h[t])?t:null});var s="string"==typeof n?n.match(It):"";if(s)switch(s[2]){case"visIdx":case"visible":var t,o=parseInt(s[1],10);return o<0?[(t=L.map(l,function(e,t){return e.bVisible?t:null}))[t.length+o]]:[j(a,o)];case"name":return L.map(c,function(e,t){return e===s[1]?t:null});default:return[]}return n.nodeName&&n._DT_CellIndex?[n._DT_CellIndex.column]:(e=L(h).filter(n).map(function(){return L.inArray(this,h)}).toArray()).length||!n.nodeName?e:(e=L(n).closest("*[data-dt-column]")).length?[e.data("dt-column")]:[]},a,r);var a,t,r,l,c,h},1);return e.selector.cols=n,e.selector.opts=i,e}),e("columns().header()","column().header()",function(e,t){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),e("columns().footer()","column().footer()",function(e,t){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),e("columns().data()","column().data()",function(){return this.iterator("column-rows",wt,1)}),e("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),e("columns().cache()","column().cache()",function(o){return this.iterator("column-rows",function(e,t,n,i,s){return v(e.aoData,s,"search"===o?"_aFilterData":"_aSortData",t)},1)}),e("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,i,s){return v(e.aoData,s,"anCells",t)},1)}),e("columns().visible()","column().visible()",function(u,n){var e=this.iterator("column",function(e,t){if(u===O)return e.aoColumns[t].bVisible;var n,i,s=t,t=u,o=e.aoColumns,a=o[s],r=e.aoData;if(t===O)a.bVisible;else if(a.bVisible!==t){if(t)for(var l=L.inArray(!0,R(o,"bVisible"),s+1),c=0,h=r.length;c<h;c++)i=r[c].nTr,n=r[c].anCells,i&&i.insertBefore(n[s],n[l]||null);else L(R(e.aoData,"anCells",s)).detach();a.bVisible=t,be(e,e.aoHeader),be(e,e.aoFooter),e.aiDisplay.length||L(e.nTBody).find("td[colspan]").attr("colspan",T(e)),ct(e)}});return u!==O&&(this.iterator("column",function(e,t){P(e,null,"column-visibility",[e,t,u,n])}),n!==O&&!n||this.columns.adjust()),e}),e("columns().indexes()","column().index()",function(n){return this.iterator("column",function(e,t){return"visible"===n?h(e,t):t},1)}),t("columns.adjust()",function(){return this.iterator("table",function(e){F(e)},1)}),t("column.index()",function(e,t){var n;if(0!==this.context.length)return n=this.context[0],"fromVisible"===e||"toData"===e?j(n,t):"fromData"===e||"toVisible"===e?h(n,t):void 0}),t("column()",function(e,t){return yt(this.columns(e,t))}),t("cells()",function(g,e,m){var n,i,s,o,a,r,l,t;return L.isPlainObject(g)&&(g.row===O?(m=g,g=null):(m=e,e=null)),L.isPlainObject(e)&&(m=e,e=null),null===e||e===O?this.iterator("table",function(e){return i=e,e=g,t=bt(m),u=i.aoData,d=xt(i,t),n=_(v(u,d,"anCells")),p=L([].concat.apply([],n)),f=i.aoColumns.length,vt("cell",e,function(e){var t,n="function"==typeof e;if(null===e||e===O||n){for(o=[],a=0,r=d.length;a<r;a++)for(s=d[a],l=0;l<f;l++)c={row:s,column:l},(!n||(h=u[s],e(c,y(i,s,l),h.anCells?h.anCells[l]:null)))&&o.push(c);return o}return L.isPlainObject(e)?e.column!==O&&e.row!==O&&-1!==L.inArray(e.row,d)?[e]:[]:(t=p.filter(e).map(function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}}).toArray()).length||!e.nodeName?t:(h=L(e).closest("*[data-dt-row]")).length?[{row:h.data("dt-row"),column:h.data("dt-column")}]:[]},i,t);var i,t,s,o,a,r,l,c,h,u,d,n,p,f}):(n=this.columns(e),i=this.rows(g),this.iterator("table",function(e,t){for(s=[],o=0,a=i[t].length;o<a;o++)for(r=0,l=n[t].length;r<l;r++)s.push({row:i[t][o],column:n[t][r]})},1),t=this.cells(s,m),L.extend(t.selector,{cols:e,rows:g,opts:m}),t)}),e("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){e=e.aoData[t];return e&&e.anCells?e.anCells[n]:O},1)}),t("cells().data()",function(){return this.iterator("cell",function(e,t,n){return y(e,t,n)},1)}),e("cells().cache()","cell().cache()",function(i){return i="search"===i?"_aFilterData":"_aSortData",this.iterator("cell",function(e,t,n){return e.aoData[t][i][n]},1)}),e("cells().render()","cell().render()",function(i){return this.iterator("cell",function(e,t,n){return y(e,t,n,i)},1)}),e("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:h(e,n)}},1)}),e("cells().invalidate()","cell().invalidate()",function(i){return this.iterator("cell",function(e,t,n){pe(e,t,i,n)})}),t("cell()",function(e,t,n){return yt(this.cells(e,t,n))}),t("cell().data()",function(e){var t=this.context,n=this[0];return e===O?t.length&&n.length?y(t[0],n[0].row,n[0].column):O:(re(t[0],n[0].row,n[0].column,e),pe(t[0],n[0].row,"data",n[0].column),this)}),t("order()",function(t,e){var n=this.context;return t===O?0!==n.length?n[0].aaSorting:O:("number"==typeof t?t=[[t,e]]:t.length&&!L.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",function(e){e.aaSorting=t.slice()}))}),t("order.listener()",function(t,n,i){return this.iterator("table",function(e){at(e,t,n,i)})}),t("order.fixed()",function(t){var e;return t?this.iterator("table",function(e){e.aaSortingFixed=L.extend(!0,{},t)}):(e=(e=this.context).length?e[0].aaSortingFixed:O,L.isArray(e)?{pre:e}:e)}),t(["columns().order()","column().order()"],function(i){var s=this;return this.iterator("table",function(e,t){var n=[];L.each(s[t],function(e,t){n.push([t,i])}),e.aaSorting=n})}),t("search()",function(t,n,i,s){var e=this.context;return t===O?0!==e.length?e[0].oPreviousSearch.sSearch:O:this.iterator("table",function(e){e.oFeatures.bFilter&&Ie(e,L.extend({},e.oPreviousSearch,{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===s||s}),1)})}),e("columns().search()","column().search()",function(i,s,o,a){return this.iterator("column",function(e,t){var n=e.aoPreSearchCols;if(i===O)return n[t].sSearch;e.oFeatures.bFilter&&(L.extend(n[t],{sSearch:i+"",bRegex:null!==s&&s,bSmart:null===o||o,bCaseInsensitive:null===a||a}),Ie(e,e.oPreviousSearch,1))})}),t("state()",function(){return this.context.length?this.context[0].oSavedState:null}),t("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})}),t("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),t("state.save()",function(){return this.iterator("table",function(e){ct(e)})}),C.versionCheck=C.fnVersionCheck=function(e){for(var t,n,i=C.version.split("."),s=e.split("."),o=0,a=s.length;o<a;o++)if((t=parseInt(i[o],10)||0)!==(n=parseInt(s[o],10)||0))return n<t;return!0},C.isDataTable=C.fnIsDataTable=function(e){var s=L(e).get(0),o=!1;return e instanceof C.Api||(L.each(C.settings,function(e,t){var n=t.nScrollHead?L("table",t.nScrollHead)[0]:null,i=t.nScrollFoot?L("table",t.nScrollFoot)[0]:null;t.nTable!==s&&n!==s&&i!==s||(o=!0)}),o)},C.tables=C.fnTables=function(t){var e=!1,n=(L.isPlainObject(t)&&(e=t.api,t=t.visible),L.map(C.settings,function(e){if(!t||L(e.nTable).is(":visible"))return e.nTable}));return e?new W(n):n},C.camelToHungarian=x,t("$()",function(e,t){t=this.rows(t).nodes(),t=L(t);return L([].concat(t.filter(e).toArray(),t.find(e).toArray()))}),L.each(["on","one","off"],function(e,n){t(n+"()",function(){var e=Array.prototype.slice.call(arguments),t=(e[0]=L.map(e[0].split(/\s/),function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" "),L(this.tables().nodes()));return t[n].apply(t,e),this})}),t("clear()",function(){return this.iterator("table",function(e){ue(e)})}),t("settings()",function(){return new W(this.context,this.context)}),t("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),t("data()",function(){return this.iterator("table",function(e){return R(e.aoData,"_aData")}).flatten()}),t("destroy()",function(u){return u=u||!1,this.iterator("table",function(t){var n,e=t.nTableWrapper.parentNode,i=t.oClasses,s=t.nTable,o=t.nTBody,a=t.nTHead,r=t.nTFoot,l=L(s),o=L(o),c=L(t.nTableWrapper),h=L.map(t.aoData,function(e){return e.nTr}),r=(t.bDestroying=!0,P(t,"aoDestroyCallback","destroy",[t]),u||new W(t).columns().visible(!0),c.off(".DT").find(":not(tbody *)").off(".DT"),L($).off(".DT-"+t.sInstance),s!=a.parentNode&&(l.children("thead").detach(),l.append(a)),r&&s!=r.parentNode&&(l.children("tfoot").detach(),l.append(r)),t.aaSorting=[],t.aaSortingFixed=[],rt(t),L(h).removeClass(t.asStripeClasses.join(" ")),L("th, td",a).removeClass(i.sSortable+" "+i.sSortableAsc+" "+i.sSortableDesc+" "+i.sSortableNone),o.children().detach(),o.append(h),u?"remove":"detach"),a=(l[r](),c[r](),!u&&e&&(e.insertBefore(s,t.nTableReinsertBefore),l.css("width",t.sDestroyWidth).removeClass(i.sTable),n=t.asDestroyStripes.length)&&o.children().each(function(e){L(this).addClass(t.asDestroyStripes[e%n])}),L.inArray(t,C.settings));-1!==a&&C.settings.splice(a,1)})}),L.each(["column","row","cell"],function(e,l){t(l+"s().every()",function(o){var a=this.selector.opts,r=this;return this.iterator(l,function(e,t,n,i,s){o.call(r[l](t,"cell"===l?n:a,"cell"===l?a:O),t,n,i,s)})})}),t("i18n()",function(e,t,n){var i=this.context[0],e=D(e)(i.oLanguage);return e===O&&(e=t),(e=n!==O&&L.isPlainObject(e)?e[n]!==O?e[n]:e._:e).replace("%d",n)}),C.version="1.10.18",C.settings=[],C.models={},C.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},C.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},C.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},C.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:L.extend({},C.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},a(C.defaults),C.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},a(C.defaults.column),C.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:O,oAjaxData:O,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==E(this)?+this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==E(this)?+this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,i=this.aiDisplay.length,s=this.oFeatures,o=s.bPaginate;return s.bServerSide?!1===o||-1===e?t+i:Math.min(t+e,this._iRecordsDisplay):!o||i<n||-1===e?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},C.ext=f={buttons:{},classes:{},build:"dt/dt-1.10.18",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:C.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:C.version},L.extend(f,{afnFiltering:f.search,aTypes:f.type.detect,ofnSearch:f.type.search,oSort:f.type.order,afnSortData:f.order,aoFeatures:f.feature,oApi:f.internal,oStdClasses:f.classes,oPagination:f.pager}),L.extend(C.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),C.ext.pager);function Mt(e,t){var n=[],i=At.numbers_length,s=Math.floor(i/2);return t<=i?n=u(0,t):e<=s?((n=u(0,i-2)).push("ellipsis"),n.push(t-1)):((t-1-s<=e?n=u(t-(i-2),t):((n=u(e-s+2,e+s-1)).push("ellipsis"),n.push(t-1),n)).splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}L.extend(At,{simple:function(e,t){return["previous","next"]},full:function(e,t){return["first","previous","next","last"]},numbers:function(e,t){return[Mt(e,t)]},simple_numbers:function(e,t){return["previous",Mt(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Mt(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Mt(e,t),"last"]},_numbers:Mt,numbers_length:7}),L.extend(!0,C.ext.renderer,{pageButton:{_:function(r,e,l,t,c,h){function u(e,t){for(var n,i=function(e){Ge(r,e.data.action,!0)},s=0,o=t.length;s<o;s++)if(n=t[s],L.isArray(n)){var a=L("<"+(n.DT_el||"div")+"/>").appendTo(e);u(a,n)}else{switch(d=null,p="",n){case"ellipsis":e.append('<span class="ellipsis">&#x2026;</span>');break;case"first":d=g.sFirst,p=n+(0<c?"":" "+f.sPageButtonDisabled);break;case"previous":d=g.sPrevious,p=n+(0<c?"":" "+f.sPageButtonDisabled);break;case"next":d=g.sNext,p=n+(c<h-1?"":" "+f.sPageButtonDisabled);break;case"last":d=g.sLast,p=n+(c<h-1?"":" "+f.sPageButtonDisabled);break;default:d=n+1,p=c===n?f.sPageButtonActive:""}null!==d&&(pt(L("<a>",{class:f.sPageButton+" "+p,"aria-controls":r.sTableId,"aria-label":m[n],"data-dt-idx":v,tabindex:r.iTabIndex,id:0===l&&"string"==typeof n?r.sTableId+"_"+n:null}).html(d).appendTo(e),{action:n},i),v++)}}var d,p,n,f=r.oClasses,g=r.oLanguage.oPaginate,m=r.oLanguage.oAria.paginate||{},v=0;try{n=L(e).find(b.activeElement).data("dt-idx")}catch(e){}u(L(e).empty(),t),n!==O&&L(e).find("[data-dt-idx="+n+"]").focus()}}}),L.extend(C.ext.type.detect,[function(e,t){t=t.oLanguage.sDecimal;return l(e,t)?"num"+t:null},function(e,t){var n;return(!e||e instanceof Date||U.test(e))&&(null!==(n=Date.parse(e))&&!isNaN(n)||s(e))?"date":null},function(e,t){t=t.oLanguage.sDecimal;return l(e,t,!0)?"num-fmt"+t:null},function(e,t){t=t.oLanguage.sDecimal;return n(e,t)?"html-num"+t:null},function(e,t){t=t.oLanguage.sDecimal;return n(e,t,!0)?"html-num-fmt"+t:null},function(e,t){return s(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),L.extend(C.ext.type.search,{html:function(e){return s(e)?e:"string"==typeof e?e.replace(w," ").replace(B,""):""},string:function(e){return!s(e)&&"string"==typeof e?e.replace(w," "):e}});function Pt(e,t,n,i){return 0===e||e&&"-"!==e?+(e=(e=t?G(e,t):e).replace&&(n&&(e=e.replace(n,"")),i)?e.replace(i,""):e):-1/0}function Et(n){L.each({num:function(e){return Pt(e,n)},"num-fmt":function(e){return Pt(e,n,q)},"html-num":function(e){return Pt(e,n,B)},"html-num-fmt":function(e){return Pt(e,n,B,q)}},function(e,t){f.type.order[e+n+"-pre"]=t,e.match(/^html\-/)&&(f.type.search[e+n]=f.type.search.html)})}L.extend(f.type.order,{"date-pre":function(e){e=Date.parse(e);return isNaN(e)?-1/0:e},"html-pre":function(e){return s(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return s(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e<t?-1:t<e?1:0},"string-desc":function(e,t){return e<t?1:t<e?-1:0}}),Et(""),L.extend(!0,C.ext.renderer,{header:{_:function(s,o,a,r){L(s.nTable).on("order.dt.DT",function(e,t,n,i){s===t&&(t=a.idx,o.removeClass(a.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[t]?r.sSortAsc:"desc"==i[t]?r.sSortDesc:a.sSortingClass))})},jqueryui:function(s,o,a,r){L("<div/>").addClass(r.sSortJUIWrapper).append(o.contents()).append(L("<span/>").addClass(r.sSortIcon+" "+a.sSortingClassJUI)).appendTo(o),L(s.nTable).on("order.dt.DT",function(e,t,n,i){s===t&&(t=a.idx,o.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[t]?r.sSortAsc:"desc"==i[t]?r.sSortDesc:a.sSortingClass),o.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==i[t]?r.sSortJUIAsc:"desc"==i[t]?r.sSortJUIDesc:a.sSortingClassJUI))})}}});function Lt(e){return"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e}function Ot(t){return function(){var e=[ut(this[C.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return C.ext.internal[t].apply(this,e)}}return C.render={number:function(i,s,o,a,r){return{display:function(e){if("number"!=typeof e&&"string"!=typeof e)return e;var t=e<0?"-":"",n=parseFloat(e);if(isNaN(n))return Lt(e);n=n.toFixed(o),e=Math.abs(n);n=parseInt(e,10),e=o?s+(e-n).toFixed(o).substring(2):"";return t+(a||"")+n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,i)+e+(r||"")}}},text:function(){return{display:Lt}}},L.extend(C.ext.internal,{_fnExternApiFunc:Ot,_fnBuildAjax:we,_fnAjaxUpdate:Ce,_fnAjaxParameters:xe,_fnAjaxUpdateDraw:Te,_fnAjaxDataSrc:ke,_fnAddColumn:te,_fnColumnOptions:ne,_fnAdjustColumnSizing:F,_fnVisibleToColumnIndex:j,_fnColumnIndexToVisible:h,_fnVisbleColumns:T,_fnGetColumns:ie,_fnColumnTypes:se,_fnApplyColumnDefs:oe,_fnHungarianMap:a,_fnCamelToHungarian:x,_fnLanguageCompat:J,_fnBrowserDetect:Q,_fnAddData:k,_fnAddTr:ae,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==O?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,t,n){return L.inArray(n,e.aoData[t].anCells)},_fnGetCellData:y,_fnSetCellData:re,_fnSplitObjNotation:ce,_fnGetObjectDataFn:D,_fnSetObjectDataFn:m,_fnGetDataMaster:he,_fnClearTable:ue,_fnDeleteIndex:de,_fnInvalidate:pe,_fnGetRowElements:fe,_fnCreateTr:ge,_fnBuildHead:ve,_fnDrawHead:be,_fnDraw:g,_fnReDraw:c,_fnAddOptionsHtml:ye,_fnDetectHeader:Se,_fnGetUniqueThs:_e,_fnFeatureHtmlFilter:De,_fnFilterComplete:Ie,_fnFilterCustom:Ae,_fnFilterColumn:Me,_fnFilter:Pe,_fnFilterCreateSearch:Ee,_fnEscapeRegex:Le,_fnFilterData:Fe,_fnFeatureHtmlInfo:Ne,_fnUpdateInfo:ze,_fnInfoMacros:We,_fnInitialise:$e,_fnInitComplete:Be,_fnLengthChange:Ue,_fnFeatureHtmlLength:Ve,_fnFeatureHtmlPaginate:qe,_fnPageChange:Ge,_fnFeatureHtmlProcessing:Xe,_fnProcessingDisplay:S,_fnFeatureHtmlTable:Ze,_fnScrollDraw:Je,_fnApplyToChildren:H,_fnCalculateColumnWidths:Ke,_fnThrottle:Qe,_fnConvertToWidth:et,_fnGetWidestNode:tt,_fnGetMaxLenString:nt,_fnStringToCss:N,_fnSortFlatten:I,_fnSort:it,_fnSortAria:st,_fnSortListener:ot,_fnSortAttachListener:at,_fnSortingClasses:rt,_fnSortData:lt,_fnSaveState:ct,_fnLoadState:ht,_fnSettingsFromNode:ut,_fnLog:z,_fnMap:A,_fnBindAction:pt,_fnCallbackReg:M,_fnCallbackFire:P,_fnLengthOverflow:ft,_fnRenderer:gt,_fnDataSource:E,_fnRowAttributes:me,_fnExtend:dt,_fnCalculateEnd:function(){}}),((L.fn.dataTable=C).$=L).fn.dataTableSettings=C.settings,L.fn.dataTableExt=C.ext,L.fn.DataTable=function(e){return L(this).dataTable(e).api()},L.each(C,function(e,t){L.fn.DataTable[e]=t}),L.fn.dataTable}),function(){function F(e,t,n){return e.call.apply(e.bind,arguments)}function j(t,n,e){var i;if(t)return 2<arguments.length?(i=Array.prototype.slice.call(arguments,2),function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(e,i),t.apply(n,e)}):function(){return t.apply(n,arguments)};throw Error()}function p(e,t,n){return(p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?F:j).apply(null,arguments)}var r=Date.now||function(){return+new Date};function H(e,t){this.a=e,this.m=t||e,this.c=this.m.document}var N=!!window.FontFace;function l(e,t,n,i){if(t=e.c.createElement(t),n)for(var s in n)n.hasOwnProperty(s)&&("style"==s?t.style.cssText=n[s]:t.setAttribute(s,n[s]));return i&&t.appendChild(e.c.createTextNode(i)),t}function c(e,t,n){(e=(e=e.c.getElementsByTagName(t)[0])||document.documentElement).insertBefore(n,e.lastChild)}function n(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t,n){t=t||[],n=n||[];for(var i=e.className.split(/\s+/),s=0;s<t.length;s+=1){for(var o=!1,a=0;a<i.length;a+=1)if(t[s]===i[a]){o=!0;break}o||i.push(t[s])}for(t=[],s=0;s<i.length;s+=1){for(o=!1,a=0;a<n.length;a+=1)if(i[s]===n[a]){o=!0;break}o||t.push(i[s])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function o(e,t){for(var n=e.className.split(/\s+/),i=0,s=n.length;i<s;i++)if(n[i]==t)return!0;return!1}function x(e){var t;return"string"==typeof e.f?e.f:"https:"==(t="about:"==(t=e.m.location.protocol)?e.a.location.protocol:t)?"https:":"http:"}function T(e,t,n){function i(){a&&s&&(a(o),a=null)}t=l(e,"link",{rel:"stylesheet",href:t,media:"all"});var s=!1,o=null,a=n||null;N?(t.onload=function(){s=!0,i()},t.onerror=function(){s=!0,o=Error("Stylesheet failed to load"),i()}):setTimeout(function(){s=!0,i()},0),c(e,"head",t)}function i(e,t,n,i){var s,o,a=e.c.getElementsByTagName("head")[0];return a?(s=l(e,"script",{src:t}),o=!1,s.onload=s.onreadystatechange=function(){o||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(o=!0,n&&n(null),s.onload=s.onreadystatechange=null,"HEAD"==s.parentNode.tagName&&a.removeChild(s))},a.appendChild(s),setTimeout(function(){o||(o=!0,n&&n(Error("Script load timeout")))},i||5e3),s):null}function k(){this.a=0,this.c=null}function D(e){return e.a++,function(){e.a--,s(e)}}function I(e,t){e.c=t,s(e)}function s(e){0==e.a&&e.c&&(e.c(),e.c=null)}function a(e){this.a=e||"-"}function A(e,t){this.c=e,this.f=4,this.a="n";e=(t||"n4").match(/^([nio])([1-9])$/i);e&&(this.a=e[1],this.f=parseInt(e[2],10))}function h(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var i=e[n].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?t.push("'"+i+"'"):t.push(i)}return t.join(",")}function g(e){return e.a+e.f}function u(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function z(e,t){this.c=e,this.f=e.m.document.documentElement,this.h=t,this.a=new a("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function m(e){var t,n,i;e.g&&(t=o(e.f,e.a.c("wf","active")),n=[],i=[e.a.c("wf","loading")],t||n.push(e.a.c("wf","inactive")),f(e.f,n,i)),v(e,"inactive")}function v(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,g(n)):e.h[t]())}function W(){this.c={}}function d(e,t){this.c=e,this.f=t,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function b(e){c(e.c,"body",e.a)}function y(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+h(e.c)+";font-style:"+u(e)+";font-weight:"+e.f+"00;"}function S(e,t,n,i,s,o){this.g=e,this.j=t,this.a=i,this.c=n,this.f=s||3e3,this.h=o||void 0}function _(e,t,n,i,s,o,a){this.v=e,this.B=t,this.c=n,this.a=i,this.s=a||"BESbswy",this.f={},this.w=s||3e3,this.u=o||null,this.o=this.j=this.h=this.g=null,this.g=new d(this.c,this.s),this.h=new d(this.c,this.s),this.j=new d(this.c,this.s),this.o=new d(this.c,this.s),e=y(e=new A(this.a.c+",serif",g(this.a))),this.g.a.style.cssText=e,e=y(e=new A(this.a.c+",sans-serif",g(this.a))),this.h.a.style.cssText=e,e=y(e=new A("serif",g(this.a))),this.j.a.style.cssText=e,e=y(e=new A("sans-serif",g(this.a))),this.o.a.style.cssText=e,b(this.g),b(this.h),b(this.j),b(this.o)}a.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},S.prototype.start=function(){var s=this.c.m.document,o=this,a=r(),e=new Promise(function(n,i){!function t(){var e;r()-a>=o.f?i():s.fonts.load(u(e=o.a)+" "+e.f+"00 300px "+h(e.c),o.h).then(function(e){1<=e.length?n():setTimeout(t,25)},function(){i()})}()}),t=new Promise(function(e,t){setTimeout(t,o.f)});Promise.race([t,e]).then(function(){o.g(o.a)},function(){o.j(o.a)})};var w={D:"serif",C:"sans-serif"},t=null;function C(){var e;return null===t&&(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),t=!!e&&(parseInt(e[1],10)<536||536===parseInt(e[1],10)&&parseInt(e[2],10)<=11)),t}function M(e,t,n){for(var i in w)if(w.hasOwnProperty(i)&&t===e.f[w[i]]&&n===e.f[w[i]])return!0;return!1}function P(e){var t=e.g.a.offsetWidth,n=e.h.a.offsetWidth;t===e.f.serif&&n===e.f["sans-serif"]||C()&&M(e,t,n)?r()-e.A>=e.w?C()&&M(e,t,n)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?E(e,e.v):E(e,e.B):setTimeout(p(function(){P(this)},e),50):E(e,e.v)}function E(e,t){setTimeout(p(function(){n(this.g.a),n(this.h.a),n(this.j.a),n(this.o.a),t(this.a)},e),0)}function L(e,t,n){this.c=e,this.a=t,this.f=0,this.o=this.j=!1,this.s=n}_.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.o.a.offsetWidth,this.A=r(),P(this)};var O=null;function $(e){0==--e.f&&e.j&&(e.o?((e=e.a).g&&f(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),v(e,"active")):m(e.a))}function B(e){this.j=e,this.a=new W,this.h=0,this.f=this.g=!0}function U(e,t){this.c=e,this.a=t}function V(e,t){this.c=e,this.a=t}function q(e,t,n){this.c=e||t+"//fonts.googleapis.com/css",this.a=[],this.f=[],this.g=n||""}L.prototype.g=function(e){var t=this.a;t.g&&f(t.f,[t.a.c("wf",e.c,g(e).toString(),"active")],[t.a.c("wf",e.c,g(e).toString(),"loading"),t.a.c("wf",e.c,g(e).toString(),"inactive")]),v(t,"fontactive",e),this.o=!0,$(this)},L.prototype.h=function(e){var t,n,i,s=this.a;s.g&&(t=o(s.f,s.a.c("wf",e.c,g(e).toString(),"active")),n=[],i=[s.a.c("wf",e.c,g(e).toString(),"loading")],t||n.push(s.a.c("wf",e.c,g(e).toString(),"inactive")),f(s.f,n,i)),v(s,"fontinactive",e),$(this)},B.prototype.load=function(e){this.c=new H(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes;var i=this,t=new z(this.c,e),n=e,s=[],e=n.timeout,s=(function(e){e.g&&f(e.f,[e.a.c("wf","loading")]),v(e,"loading")}(t),function(e,t,n){var i,s,o=[];for(i in t)t.hasOwnProperty(i)&&(s=e.c[i])&&o.push(s(t[i],n));return o}(i.a,n,i.c)),o=new L(i.c,t,e);for(i.h=s.length,t=0,n=s.length;t<n;t++)s[t].load(function(e,t,n){var l,c,h,u,d;l=o,c=e,h=t,u=n,d=0==--(e=i).h,(e.f||e.g)&&setTimeout(function(){var e=u||null,t=h||{};if(0===c.length&&d)m(l.a);else{l.f+=c.length,d&&(l.j=d);for(var n=[],i=0;i<c.length;i++){var s=c[i],o=t[s.c],a=l.a,r=s;a.g&&f(a.f,[a.a.c("wf",r.c,g(r).toString(),"loading")]),v(a,"fontloading",r),a=(O=(a=null)===O?!!window.FontFace&&(!(r=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))||42<parseInt(r[1],10)):O)?new S(p(l.g,l),p(l.h,l),l.c,s,l.s,o):new _(p(l.g,l),p(l.h,l),l.c,s,l.s,e,o),n.push(a)}for(i=0;i<n.length;i++)n[i].start()}},0)})},U.prototype.load=function(a){var r,e,t=this,l=t.a.projectId,n=t.a.version;l?(r=t.c.m,i(this.c,(e=l,n=n,x(t.c)+"//"+(t.a.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,"")+"/"+e+".js"+(n?"?v="+n:"")),function(e){e?a([]):(r["__MonotypeConfiguration__"+l]=function(){return t.a},function e(){if(r["__mti_fntLst"+l]){var t,n=r["__mti_fntLst"+l](),i=[];if(n)for(var s=0;s<n.length;s++){var o=n[s].fontfamily;null!=n[s].fontStyle&&null!=n[s].fontWeight?(t=n[s].fontStyle+n[s].fontWeight,i.push(new A(o,t))):i.push(new A(o))}a(i)}else setTimeout(function(){e()},50)}())}).id="__MonotypeAPIScript__"+l):a([])},V.prototype.load=function(e){for(var t=this.a.urls||[],n=this.a.families||[],i=this.a.testStrings||{},s=new k,o=0,a=t.length;o<a;o++)T(this.c,t[o],D(s));var r=[];for(o=0,a=n.length;o<a;o++)if((t=n[o].split(":"))[1])for(var l=t[1].split(","),c=0;c<l.length;c+=1)r.push(new A(t[0],l[c]));else r.push(new A(t[0]));I(s,function(){e(r,i)})};function G(e){this.f=e,this.a=[],this.c={}}var X={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},J={i:"i",italic:"i",n:"n",normal:"n"},Y=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function K(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}K.prototype.load=function(e){for(var t=new k,n=this.c,i=new q(this.a.api,x(n),this.a.text),s=this.a.families,o=i,a=s,r=a.length,l=0;l<r;l++){var c=a[l].split(":"),h=(3==c.length&&o.f.push(c.pop()),"");2==c.length&&""!=c[1]&&(h=":"),o.a.push(c.join(h))}for(var u=new G(s),d=u,p=d.f.length,f=0;f<p;f++){var g=d.f[f].split(":"),m=g[0].replace(/\+/g," "),v=["n4"];if(2<=g.length){var b,y,S=g[1],_=[];if(S)for(var w=(S=S.split(",")).length,C=0;C<w;C++)(y=!(y=S[C]).match(/^[\w-]+$/)||null==(b=Y.exec(y.toLowerCase()))?"":[y=null==(y=b[2])||""==y?"n":J[y],b=null==(b=b[1])||""==b?"4":Z[b]||(isNaN(b)?"4":b.substr(0,1))].join(""))&&_.push(y);0<_.length&&(v=_),3==g.length&&(_=[],0<(g=(g=g[2])?g.split(","):_).length)&&(g=X[g[0]])&&(d.c[m]=g)}for(d.c[m]||(g=X[m])&&(d.c[m]=g),g=0;g<v.length;g+=1)d.a.push(new A(m,v[g]))}T(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],i=0;i<t;i++)n.push(e.a[i].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(i),D(t)),I(t,function(){e(u.a,u.c,Q)})},ee.prototype.load=function(a){var e=this.a.id,r=this.c.m;e?i(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",function(e){if(e)a([]);else if(r.Typekit&&r.Typekit.config&&r.Typekit.config.fn){e=r.Typekit.config.fn;for(var t=[],n=0;n<e.length;n+=2)for(var i=e[n],s=e[n+1],o=0;o<s.length;o++)t.push(new A(i,s[o]));try{r.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}a(t)}},2e3):a([])},te.prototype.load=function(l){var e=this.f.id,t=this.c.m,c=this;e?(t.__webfontfontdeckmodule__||(t.__webfontfontdeckmodule__={}),t.__webfontfontdeckmodule__[e]=function(e,t){for(var n,i,s,o=0,a=t.fonts.length;o<a;++o){var r=t.fonts[o];c.a.push(new A(r.name,(r="font-weight:"+r.weight+";font-style:"+r.style,s=i=n=void 0,n=4,i="n",s=null,r&&((s=r.match(/(normal|oblique|italic)/i))&&s[1]&&(i=s[1].substr(0,1).toLowerCase()),s=r.match(/([1-9]00|normal|bold)/i))&&s[1]&&(/bold/i.test(s[1])?n=7:/[1-9]00/.test(s[1])&&(n=parseInt(s[1].substr(0,1),10))),i+n)))}l(c.a)},i(this.c,x(this.c)+(this.f.api||"//f.fontdeck.com/s/css/js/")+((t=this.c).m.location.hostname||t.a.location.hostname)+"/"+e+".js",function(e){e&&l([])})):l([])};var e=new B(window),R=(e.a.c.custom=function(e,t){return new V(t,e)},e.a.c.fontdeck=function(e,t){return new te(t,e)},e.a.c.monotype=function(e,t){return new U(t,e)},e.a.c.typekit=function(e,t){return new ee(t,e)},e.a.c.google=function(e,t){return new K(t,e)},{load:p(e.load,e)});"function"==typeof define&&define.amd?define(function(){return R}):"undefined"!=typeof module&&module.exports?module.exports=R:(window.WebFont=R,window.WebFontConfig&&e.load(window.WebFontConfig))}(),function(s){void 0===s.fn.each2&&s.extend(s.fn,{each2:function(e){for(var t=s([0]),n=-1,i=this.length;++n<i&&(t.context=t[0]=this[n])&&!1!==e.call(t[0],n,t););return this}})}(jQuery),function(v,b){var e,t,n,y,s,r,m,c,i,o,a;function l(e){var t=v(document.createTextNode(""));e.before(t),t.before(e),t.remove()}function h(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return i[e]||e})}function u(e,t){for(var n=0,i=t.length;n<i;n+=1)if(d(e,t[n]))return n;return-1}function d(e,t){return e===t||e!==b&&t!==b&&null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+"")}function p(e,t,n){var i,s,o;if(null===e||e.length<1)return[];for(s=0,o=(i=e.split(t)).length;s<o;s+=1)i[s]=n(i[s]);return i}function f(e){return e.outerWidth(!1)-e.width()}function g(t){var n="keyup-change-value";t.on("keydown",function(){v.data(t,n)===b&&v.data(t,n,t.val())}),t.on("keyup",function(){var e=v.data(t,n);e!==b&&t.val()!==e&&(v.removeData(t,n),t.trigger("keyup-change"))})}function S(t,n,i){var s;return i=i||b,function(){var e=arguments;window.clearTimeout(s),s=window.setTimeout(function(){n.apply(i,e)},t)}}function _(e){e.preventDefault(),e.stopPropagation()}function w(e,t,n){var i,s=[],o=v.trim(e.attr("class"));o&&v((o=""+o).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&s.push(this)}),(o=v.trim(t.attr("class")))&&v((o=""+o).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(i=n(this))&&s.push(i)}),e.attr("class",s.join(" "))}function C(e,t,n,i){var s=h(e.toUpperCase()).indexOf(h(t.toUpperCase())),t=t.length;s<0?n.push(i(e)):(n.push(i(e.substring(0,s))),n.push("<span class='select2-match'>"),n.push(i(e.substring(s,s+t))),n.push("</span>"),n.push(i(e.substring(s+t,e.length))))}function x(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function T(o){var e,a=null,t=o.quietMillis||100,r=o.url,l=this;return function(s){window.clearTimeout(e),e=window.setTimeout(function(){var e=o.data,t=r,n=o.transport||v.fn.select2.ajaxDefaults.transport,i={type:o.type||"GET",cache:o.cache||!1,jsonpCallback:o.jsonpCallback||b,dataType:o.dataType||"json"},i=v.extend({},v.fn.select2.ajaxDefaults.params,i),e=e?e.call(l,s.term,s.page,s.context):null,t="function"==typeof t?t.call(l,s.term,s.page,s.context):t;a&&"function"==typeof a.abort&&a.abort(),o.params&&(v.isFunction(o.params)?v.extend(i,o.params.call(l)):v.extend(i,o.params)),v.extend(i,{url:t,dataType:o.dataType,data:e,success:function(e){e=o.results(e,s.page,s);s.callback(e)},error:function(e,t,n){s.callback({hasError:!0,jqXHR:e,textStatus:t,errorThrown:n})}}),a=n.call(l,i)},t)}}function k(e){var t,n,i=e,r=function(e){return""+e.text},e=(v.isArray(i)&&(i={results:n=i}),!1===v.isFunction(i)&&(n=i,i=function(){return n}),i());return e.text&&(r=e.text,v.isFunction(r)||(t=e.text,r=function(e){return e[t]})),function(s){var o,a=s.term,n={results:[]};""===a?s.callback(i()):(o=function(e,t){var n,i;if((e=e[0]).children){for(i in n={},e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.children=[],v(e.children).each2(function(e,t){o(t,n.children)}),(n.children.length||s.matcher(a,r(n),e))&&t.push(n)}else s.matcher(a,r(e),e)&&t.push(e)},v(i().results).each2(function(e,t){o(t,n.results)}),s.callback(n))}}function D(t){var o=v.isFunction(t);return function(n){var i=n.term,s={results:[]},e=o?t(n):t;v.isArray(e)&&(v(e).each(function(){var e=this.text!==b,t=e?this.text:this;""!==i&&!n.matcher(i,t)||s.results.push(e?this:{id:this,text:this})}),n.callback(s))}}function I(e,t){if(v.isFunction(e))return 1;if(e){if("string"==typeof e)return 1;throw new Error(t+" must be a string, function, or falsy value")}}function A(e,t){var n;return v.isFunction(e)?(n=Array.prototype.slice.call(arguments,2),e.apply(t,n)):e}function M(){var n=this;v.each(arguments,function(e,t){n[t].remove(),n[t]=null})}function P(e,t){function n(){}return((n.prototype=new e).constructor=n).prototype.parent=e.prototype,n.prototype=v.extend(n.prototype,t),n}window.Select2===b&&(r={x:0,y:0},c={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which||e){case c.LEFT:case c.RIGHT:case c.UP:case c.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case c.SHIFT:case c.CTRL:case c.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return 112<=(e=e.which||e)&&e<=123}},i={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},a=v(document),o=1,y=function(){return o++},e=P(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(e){var o,t,n,i,s=".select2-results",a=(this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==b&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=v(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=v("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+y()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",e.element.attr("title")),this.body=v(document.body),w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(A(e.containerCss,this.opts.element)),this.container.addClass(A(e.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",_),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(e.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=o=this.container.find(s),this.search=t=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",_),this.results.on("mousemove",function(e){var t=r;t!==b&&t.x===e.pageX&&t.y===e.pageY||v(e.target).trigger("mousemove-filtered",e)}),this.dropdown.on("mousemove-filtered",s,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",s,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",s,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",s,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),a=80,n=this.results,i=S(a,function(e){n.trigger("scroll-debounced",e)}),n.on("scroll",function(e){0<=u(e.target,n.get())&&i(e)}),this.dropdown.on("scroll-debounced",s,this.bind(this.loadMoreIfNeeded)),v(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),v(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),v.fn.mousewheel&&o.mousewheel(function(e,t,n,i){var s=o.scrollTop();0<i&&s-i<=0?(o.scrollTop(0),_(e)):i<0&&o.get(0).scrollHeight-o.scrollTop()+i<=o.height()&&(o.scrollTop(o.get(0).scrollHeight-o.height()),_(e))}),g(t),t.on("keyup-change input paste",this.bind(this.updateResults)),t.on("focus",function(){t.addClass("select2-focused")}),t.on("blur",function(){t.removeClass("select2-focused")}),this.dropdown.on("mouseup",s,this.bind(function(e){0<v(e.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=b,v.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength),e.element.prop("disabled")),s=(this.enable(!(a=a===b?!1:a)),e.element.prop("readonly"));this.readonly(s=s===b?!1:s),m=m||((a=v("<div class='select2-measure-scrollbar'></div>")).appendTo(document.body),s={width:a.width()-a[0].clientWidth,height:a.height()-a[0].clientHeight},a.remove(),s),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",e.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,t=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,t!==b&&(t.container.remove(),t.liveRegion.remove(),t.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),M.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:d(e.attr("locked"),"locked")||d(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(g){var e,t,n,m=this,a=g.element;if("select"===a.get(0).tagName.toLowerCase()&&(this.select=e=g.element),e&&v.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in g)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),g.debug=g.debug||v.fn.select2.defaults.debug,g.debug&&console&&console.warn&&(null!=g.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=g.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=g.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=g.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=g.ajax&&null!=g.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=g.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=g.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=g.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=g.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=g.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=g.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),g.element.data("select2Tags"))&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0."),null!=g.element.data("tags")&&(n=g.element.data("tags"),v.isArray(n)||(n=[]),g.element.data("select2Tags",n)),null!=g.sorter&&(g.sortResults=g.sorter),null!=g.selectOnClose&&(g.selectOnBlur=g.selectOnClose),null!=g.ajax&&v.isFunction(g.ajax.processResults)&&(g.ajax.results=g.ajax.processResults),null!=g.language&&(n=g.language,v.isFunction(n.noMatches)&&(g.formatNoMatches=n.noMatches),v.isFunction(n.searching)&&(g.formatSearching=n.searching),v.isFunction(n.inputTooShort)&&(g.formatInputTooShort=n.inputTooShort),v.isFunction(n.inputTooLong)&&(g.formatInputTooLong=n.inputTooLong),v.isFunction(n.loadingMore)&&(g.formatLoading=n.loadingMore),v.isFunction(n.maximumSelected))&&(g.formatSelectionTooBig=n.maximumSelected),"function"!=typeof(g=v.extend({},{populateResults:function(e,t,u){var d=this.opts.id,p=this.liveRegion,f=function(e,t,n){for(var i,s,o,a,r,l=[],c=0,h=(e=g.sortResults(e,t,u)).length;c<h;c+=1)a=!(r=!0===(i=e[c]).disabled)&&d(i)!==b,s=i.children&&0<i.children.length,(o=v("<li></li>")).addClass("select2-results-dept-"+n),o.addClass("select2-result"),o.addClass(a?"select2-result-selectable":"select2-result-unselectable"),r&&o.addClass("select2-disabled"),s&&o.addClass("select2-result-with-children"),o.addClass(m.opts.formatResultCssClass(i)),o.attr("role","presentation"),(a=v(document.createElement("div"))).addClass("select2-result-label"),a.attr("id","select2-result-label-"+y()),a.attr("role","option"),(r=g.formatResult(i,a,u,m.opts.escapeMarkup))!==b&&(a.html(r),o.append(a)),s&&((r=v("<ul></ul>")).addClass("select2-result-sub"),f(i.children,r,n+1),o.append(r)),o.data("select2-data",i),l.push(o[0]);t.append(l),p.text(g.formatMatches(e.length))};f(t,e,0)}},v.fn.select2.defaults,g)).id&&(t=g.id,g.id=function(e){return e[t]}),v.isArray(g.element.data("select2Tags"))){if("tags"in g)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+g.element.attr("id");g.tags=g.element.data("select2Tags")}if(e?(g.query=this.bind(function(i){var e,n={results:[],more:!1},s=i.term,o=function(e,t){var n;e.is("option")?i.matcher(s,e.text(),e)&&t.push(m.optionToData(e)):e.is("optgroup")&&(n=m.optionToData(e),e.children().each2(function(e,t){o(t,n.children)}),0<n.children.length)&&t.push(n)},t=a.children();(t=this.getPlaceholder()!==b&&0<t.length&&(e=this.getPlaceholderOption())?t.not(e):t).each2(function(e,t){o(t,n.results)}),i.callback(n)}),g.id=function(e){return e.id}):"query"in g||("ajax"in g?((n=g.element.data("ajax-url"))&&0<n.length&&(g.ajax.url=n),g.query=T.call(g.element,g.ajax)):"data"in g?g.query=k(g.data):"tags"in g&&(g.query=D(g.tags),g.createSearchChoice===b&&(g.createSearchChoice=function(e){return{id:v.trim(e),text:v.trim(e)}}),g.initSelection===b)&&(g.initSelection=function(e,t){var n=[];v(p(e.val(),g.separator,g.transformVal)).each(function(){var e={id:this,text:this},t=g.tags;v.isFunction(t)&&(t=t()),v(t).each(function(){if(d(this.id,e.id))return e=this,!1}),n.push(e)}),t(n)})),"function"!=typeof g.query)throw"query function not defined for Select2 "+g.element.attr("id");if("top"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof g.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return g},monitorSource:function(){var e,t=this.opts.element,n=this;t.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=t.prop("disabled"),e=(this.enable(!(e=e===b?!1:e)),t.prop("readonly"));this.readonly(e=e===b?!1:e),this.container&&(w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(A(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(this.opts.dropdownCssClass,this.opts.element)))}),t.length&&t[0].attachEvent&&t.each(function(){this.attachEvent("onpropertychange",n._sync)}),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==b&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e(function(e){v.each(e,n._sync)}),this.propertyObserver.observe(t.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){e=v.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(e){e=v.extend({},e=e||{},{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){this._enabled!==(e=e===b||e)&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){this._readonly!==(e=e!==b&&e)&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,t,n=this.dropdown,i=this.container,s=i.offset(),o=i.outerHeight(!1),a=i.outerWidth(!1),r=n.outerHeight(!1),l=v(window),c=l.width(),h=l.height(),u=l.scrollLeft()+c,h=l.scrollTop()+h,d=s.top+o,p=s.left,h=d+r<=h,f=s.top-r>=l.scrollTop(),g=n.outerWidth(!1);n.hasClass("select2-drop-above")?(e=!0,!f&&h&&(e=!(t=!0))):(e=!1,!h&&f&&(e=t=!0)),t&&(n.hide(),s=this.container.offset(),o=this.container.outerHeight(!1),a=this.container.outerWidth(!1),r=n.outerHeight(!1),u=l.scrollLeft()+c,l.scrollTop(),d=s.top+o,p=s.left,g=n.outerWidth(!1),n.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(h=v(".select2-results",n)[0],n.addClass("select2-drop-auto-width"),n.css("width",""),a<(g=n.outerWidth(!1)+(h.scrollHeight===h.clientHeight?0:m.width))?a=g:g=a,r=n.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(d-=(f=this.body.offset()).top,p-=f.left),t={left:p=!(p+g<=u)&&s.left+u+i.outerWidth(!1)>g?s.left+this.container.outerWidth(!1)-g:p,width:a},e?(this.container.addClass("select2-drop-above"),n.addClass("select2-drop-above"),r=n.outerHeight(!1),t.top=s.top-r,t.bottom="auto"):(t.top=d,t.bottom="auto",this.container.removeClass("select2-drop-above"),n.removeClass("select2-drop-above")),t=v.extend(t,A(this.opts.dropdownCss,this.opts.element)),n.css(t)},shouldOpen:function(){var e;return!this.opened()&&!1!==this._enabled&&!0!==this._readonly&&(e=v.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),a.on("mousemove.select2Event",function(e){r.x=e.pageX,r.y=e.pageY}),!0)},opening:function(){var n,e=this.containerEventName,t="scroll."+e,i="resize."+e,s="orientationchange."+e,o=(this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(n=v("#select2-drop-mask")).length&&((n=v(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),n.hide(),n.appendTo(this.body),n.on("mousedown touchstart click",function(e){l(n);var t=v("#select2-drop");0<t.length&&((t=t.data("select2")).opts.selectOnBlur&&t.selectHighlighted({noFocus:!0}),t.close(),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==n[0]&&this.dropdown.before(n),v("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),n.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active"),this);this.container.parents().add(window).each(function(){v(this).on(i+" "+t+" "+s,function(e){o.opened()&&o.positionDropdown()})})},close:function(){var e,t,n,i;this.opened()&&(e=this.containerEventName,t="scroll."+e,n="resize."+e,i="orientationchange."+e,this.container.parents().add(window).each(function(){v(this).off(t).off(n).off(i)}),this.clearDropdownAlignmentPreference(),v("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),a.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(v.Event("select2-close")))},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){var e;return""===this.search.val()&&(e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm))!==b&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return A(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,t,n,i,s=this.results,o=this.highlight();o<0||(0==o?s.scrollTop(0):(n=this.findHighlightableChoices().find(".select2-result-label"),t=(i=((e=v(n[o])).offset()||{}).top||0)+e.outerHeight(!0),o===n.length-1&&0<(o=s.find("li.select2-more-results")).length&&(t=o.offset().top+o.outerHeight(!0)),(n=s.offset().top+s.outerHeight(!1))<t&&s.scrollTop(s.scrollTop()+(t-n)),(o=i-s.offset().top)<0&&"none"!=e.css("display")&&s.scrollTop(s.scrollTop()+o)))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var t=this.findHighlightableChoices(),n=this.highlight();-1<n&&n<t.length;){var i=v(t[n+=e]);if(i.hasClass("select2-result-selectable")&&!i.hasClass("select2-disabled")&&!i.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var t=this.findHighlightableChoices();if(0===arguments.length)return u(t.filter(".select2-highlighted")[0],t.get());(e=e>=t.length?t.length-1:e)<0&&(e=0),this.removeHighlight(),(t=v(t[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",t.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(t.text()),(e=t.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(e),choice:e})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var t,e=v(e.target).closest(".select2-result-selectable");0<e.length&&!e.is(".select2-highlighted")?(t=this.findHighlightableChoices(),this.highlight(t.index(e))):0==e.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,n=t.find("li.select2-more-results"),i=this.resultsPage+1,s=this,o=this.search.val(),a=this.context;0!==n.length&&n.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(n.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(e){s.opened()&&(s.opts.populateResults.call(this,t,e.results,{term:o,page:i,context:a}),s.postprocessResults(e,!1,!1),!0===e.more?(n.detach().appendTo(t).html(s.opts.escapeMarkup(A(s.opts.formatLoadMore,s.opts.element,i+1))),window.setTimeout(function(){s.loadMoreIfNeeded()},10)):n.remove(),s.positionDropdown(),s.resultsPage=i,s.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})}))},tokenize:function(){},updateResults:function(n){var i,s=this.search,o=this.results,a=this.opts,r=this,e=s.val(),t=v.data(this.container,"select2-last-term");function l(){s.removeClass("select2-active"),r.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?r.liveRegion.text(o.text()):r.liveRegion.text(r.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function c(e){o.html(e),l()}!0!==n&&t&&d(e,t)||(v.data(this.container,"select2-last-term",e),(!0===n||!1!==this.showSearchInput&&this.opened())&&(i=++this.queryCount,1<=(t=this.getMaximumSelectionSize())&&(e=this.data(),v.isArray(e))&&e.length>=t&&I(a.formatSelectionTooBig,"formatSelectionTooBig")?c("<li class='select2-selection-limit'>"+A(a.formatSelectionTooBig,a.element,t)+"</li>"):s.val().length<a.minimumInputLength?(I(a.formatInputTooShort,"formatInputTooShort")?c("<li class='select2-no-results'>"+A(a.formatInputTooShort,a.element,s.val(),a.minimumInputLength)+"</li>"):c(""),n&&this.showSearch&&this.showSearch(!0)):a.maximumInputLength&&s.val().length>a.maximumInputLength?I(a.formatInputTooLong,"formatInputTooLong")?c("<li class='select2-no-results'>"+A(a.formatInputTooLong,a.element,s.val(),a.maximumInputLength)+"</li>"):c(""):(a.formatSearching&&0===this.findHighlightableChoices().length&&c("<li class='select2-searching'>"+A(a.formatSearching,a.element)+"</li>"),s.addClass("select2-active"),this.removeHighlight(),(e=this.tokenize())!=b&&null!=e&&s.val(e),this.resultsPage=1,a.query({element:a.element,term:s.val(),page:this.resultsPage,context:null,matcher:a.matcher,callback:this.bind(function(e){var t;i==this.queryCount&&(this.opened()?e.hasError!==b&&I(a.formatAjaxError,"formatAjaxError")?c("<li class='select2-ajax-error'>"+A(a.formatAjaxError,a.element,e.jqXHR,e.textStatus,e.errorThrown)+"</li>"):(this.context=e.context===b?null:e.context,this.opts.createSearchChoice&&""!==s.val()&&(t=this.opts.createSearchChoice.call(r,s.val(),e.results))!==b&&null!==t&&r.id(t)!==b&&null!==r.id(t)&&0===v(e.results).filter(function(){return d(r.id(this),r.id(t))}).length&&this.opts.createSearchChoicePosition(e.results,t),0===e.results.length&&I(a.formatNoMatches,"formatNoMatches")?(c("<li class='select2-no-results'>"+A(a.formatNoMatches,a.element,s.val())+"</li>"),this.showSearch&&this.showSearch(s.val())):(o.empty(),r.opts.populateResults.call(this,o,e.results,{term:s.val(),page:this.resultsPage,context:null}),!0===e.more&&I(a.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+a.escapeMarkup(A(a.formatLoadMore,a.element,this.resultsPage))+"</li>"),window.setTimeout(function(){r.loadMoreIfNeeded()},10)),this.postprocessResults(e,n),l(),this.opts.element.trigger({type:"select2-loaded",items:e}))):this.search.removeClass("select2-active"))})}))))},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var n;(n=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e=n[0],t=n.val().length;n.focus(),(0<e.offsetWidth||0<e.offsetHeight)&&e===document.activeElement&&(e.setSelectionRange?e.setSelectionRange(t,t):e.createTextRange&&((t=e.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){var t,n;this._touchMoved?this.clearTouchMoved():(t=this.highlight(),(n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data"))?(this.highlight(t),this.onSelect(n,e)):e&&e.noFocus&&this.close())},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==b?e.text():b)},getPlaceholderOption:function(){var e;if(this.select)return e=this.select.children("option").first(),this.opts.placeholderOption!==b?"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select):""===v.trim(e.text())&&""===e.val()?e:void 0},initContainerWidth:function(){var e=function(){var e,t,n,i,s;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return v.isFunction(this.opts.width)?this.opts.width():this.opts.width;if("string"==typeof(e=this.opts.element.attr("style")))for(i=0,s=(t=e.split(";")).length;i<s;i+=1)if(null!==(n=t[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=n.length)return n[1];return"resolve"===this.opts.width?0<(e=this.opts.element.css("width")).indexOf("%")?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==e&&this.container.css("width",e)}}),t=P(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,t;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(e=this.search.get(0)).createTextRange?((t=e.createTextRange()).collapse(!1),t.select()):e.setSelectionRange&&(t=this.search.val().length,e.setSelectionRange(t,t))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this))&&this.focusser.focus()},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){v("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"selection","focusser")},initContainer:function(){var t,e=this.container,n=this.dropdown,i=y(),i=(this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+i),this.focusser.attr("aria-labelledby","select2-chosen-"+i),this.results.attr("id","select2-results-"+i),this.search.attr("aria-owns","select2-results-"+i),this.focusser.attr("id","s2id_autogen"+i),e=v("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(e.text()).attr("for",this.focusser.attr("id")),this.opts.element.attr("title"));this.opts.element.attr("title",i||e.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(v("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which===c.PAGE_UP||e.which===c.PAGE_DOWN)_(e);else switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void _(e);case c.ENTER:return this.selectHighlighted(),void _(e);case c.TAB:return void this.selectHighlighted({noFocus:!0});case c.ESC:return this.cancel(e),void _(e)}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&1<this.results.length&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.ESC){if(!1!==this.opts.openOnEnter||e.which!==c.ENTER)return e.which==c.DOWN||e.which==c.UP||e.which==c.ENTER&&this.opts.openOnEnter?e.altKey||e.ctrlKey||e.shiftKey||e.metaKey?void 0:(this.open(),void _(e)):void(e.which!=c.DELETE&&e.which!=c.BACKSPACE||(this.opts.allowClear&&this.clear(),_(e)));_(e)}})),g(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){0<=this.opts.minimumResultsForSearch&&(e.stopPropagation(),this.opened()||this.open())})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),(e=e).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection)&&this.selection.focus()})),t.on("mousedown touchstart",this.bind(function(e){l(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(e)})),n.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){_(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(v.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(e){var t,n=this.selection.data("select2-data");n&&(t=v.Event("select2-clearing"),this.opts.element.trigger(t),t.isDefaultPrevented()||(t=this.getPlaceholderOption(),this.opts.element.val(t?t.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}))))},initSelection:function(){var t;this.isPlaceholderOptionSelected()?(this.updateSelection(null),this.close(),this.setPlaceholder()):(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.setPlaceholder(),t.lastSearchTerm=t.search.val())})},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==b&&((e=this.getPlaceholderOption())!==b&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val())},prepareOpts:function(){var a=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===a.element.get(0).tagName.toLowerCase()?a.initSelection=function(e,t){e=e.find("option").filter(function(){return this.selected&&!this.disabled});t(n.optionToData(e))}:"data"in a&&(a.initSelection=a.initSelection||function(e,t){var s=e.val(),o=null;a.query({matcher:function(e,t,n){var i=d(s,a.id(n));return i&&(o=n),i},callback:v.isFunction(t)?function(){t(o)}:v.noop})}),a},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();!this.isPlaceholderOptionSelected()||e===b||this.select&&this.getPlaceholderOption()===b||(this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear"))},postprocessResults:function(e,t,n){var i=0,s=this;this.findHighlightableChoices().each2(function(e,t){if(d(s.id(t.data("select2-data")),s.opts.element.val()))return i=e,!1}),!1!==n&&(!0===t&&0<=i?this.highlight(i):this.highlight(0)),!0===t&&0<=(n=this.opts.minimumResultsForSearch)&&this.showSearch(function n(e){var i=0;return v.each(e,function(e,t){t.children?i+=n(t.children):i++}),i}(e.results)>=n)},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),v(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(e,t){var n,i;this.triggerSelect(e)&&(n=this.opts.element.val(),i=this.data(),this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),d(n,this.id(e))||this.triggerChange({added:e,removed:i}))},updateSelection:function(e){var t,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),n.empty(),(t=null!==e?this.opts.formatSelection(e,n,this.opts.escapeMarkup):t)!==b&&n.append(t),(t=this.opts.formatSelectionCssClass(e,n))!==b&&n.addClass(t),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,n=null,i=this,s=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],1<arguments.length&&(t=arguments[1],this.opts.debug)&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.'),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=i.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),t&&this.triggerChange({added:n,removed:s});else if(e||0===e){if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){i.opts.element.val(e?i.id(e):""),i.updateSelection(e),i.setPlaceholder(),t&&i.triggerChange({added:e,removed:s})})}else this.clear(t)},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,n=!1;if(0===arguments.length)return t=(t=this.selection.data("select2-data"))==b?null:t;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),1<arguments.length&&(n=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:t})):this.clear(n)}}),n=P(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var l=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===l.element.get(0).tagName.toLowerCase()?l.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in l&&(l.initSelection=l.initSelection||function(e,o){var a=p(e.val(),l.separator,l.transformVal),r=[];l.query({matcher:function(e,t,n){var i=v.grep(a,function(e){return d(e,l.id(n))}).length;return i&&r.push(n),i},callback:v.isFunction(o)?function(){for(var e=[],t=0;t<a.length;t++)for(var n=a[t],i=0;i<r.length;i++){var s=r[i];if(d(n,l.id(s))){e.push(s),r.splice(i,1);break}}o(e)}:v.noop})}),l},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){v("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"searchContainer","selection")},initContainer:function(){var l,e=".select2-choices",t=(this.searchContainer=this.container.find(".select2-search-field"),this.selection=l=this.container.find(e),this);this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(e){t.search[0].focus(),t.selectChoice(v(this))}),this.search.attr("id","s2id_autogen"+y()),this.search.prev().text(v("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||!this.isInterfaceEnabled()||this.opened()||this.open()})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var t,n,i,s=l.find(".select2-search-choice-focus"),o=s.prev(".select2-search-choice:not(.select2-locked)"),a=s.next(".select2-search-choice:not(.select2-locked)"),r=(r=this.search,n=t=0,"selectionStart"in(r=v(r)[0])?(t=r.selectionStart,n=r.selectionEnd-t):"selection"in document&&(r.focus(),i=document.selection.createRange(),n=document.selection.createRange().text.length,i.moveStart("character",-r.value.length),t=i.text.length-n),{offset:t,length:n});if(!s.length||e.which!=c.LEFT&&e.which!=c.RIGHT&&e.which!=c.BACKSPACE&&e.which!=c.DELETE&&e.which!=c.ENTER)if((e.which!==c.BACKSPACE||1!=this.keydowns)&&e.which!=c.LEFT||0!=r.offset||r.length){if(this.selectChoice(null),this.opened())switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void _(e);case c.ENTER:return this.selectHighlighted(),void _(e);case c.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case c.ESC:return this.cancel(e),void _(e)}if(e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.BACKSPACE&&e.which!==c.ESC){if(e.which===c.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==c.PAGE_UP&&e.which!==c.PAGE_DOWN||_(e),e.which===c.ENTER&&_(e)}}else this.selectChoice(l.find(".select2-search-choice:not(.select2-locked)").last()),_(e);else i=s,e.which==c.LEFT&&o.length?i=o:e.which==c.RIGHT?i=a.length?a:null:e.which===c.BACKSPACE?this.unselect(s.first())&&(this.search.width(10),i=o.length?o:a):e.which==c.DELETE?this.unselect(s.first())&&(this.search.width(10),i=a.length?a:null):e.which==c.ENTER&&(i=null),this.selectChoice(i),_(e),i&&i.length||this.open()}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(v.Event("select2-blur"))})),this.container.on("click",e,this.bind(function(e){!this.isInterfaceEnabled()||0<v(e.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault())})),this.container.on("focus",e,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){var t;""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),!this.select&&""===this.opts.element.val()||(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.clearSearch())})},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();e!==b&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(0<t?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var t={},n=[],i=this;v(e).each(function(){i.id(this)in t||(t[i.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),i.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=b&&(this.search.val(e),0<e.length)&&this.open()},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),!this.opts.closeOnSelect&&0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var t=this.getVal(),n=this;v(e).each(function(){t.push(n.createChoice(this))}),this.setVal(t)},createChoice:function(e){var t=!e.locked,n=v("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),i=v("<li class='select2-search-choice select2-locked'><div></div></li>"),n=t?n:i,i=this.id(e),s=this.opts.formatSelection(e,n.find("div"),this.opts.escapeMarkup);return s!=b&&n.find("div").replaceWith(v("<div></div>").html(s)),(s=this.opts.formatSelectionCssClass(e,n.find("div")))!=b&&n.addClass(s),t&&n.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(this.unselect(v(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),_(e),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),n.data("select2-data",e),n.insertBefore(this.searchContainer),i},unselect:function(e){var t,n,i=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(t=e.data("select2-data")){var s=v.Event("select2-removing");if(s.val=this.id(t),s.choice=t,this.opts.element.trigger(s),s.isDefaultPrevented())return!1;for(;0<=(n=u(this.id(t),i));)i.splice(n,1),this.setVal(i),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}),!0}},postprocessResults:function(e,t,n){var i=this.getVal(),s=this.results.find(".select2-result"),o=this.results.find(".select2-result-with-children"),a=this;s.each2(function(e,t){0<=u(a.id(t.data("select2-data")),i)&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),o.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==n&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&0<!s.filter(".select2-result:not(.select2-selected)").length&&(e&&(e.more||0!==this.results.find(".select2-no-results").length)||I(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+A(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>"))},getMaxSearchWidth:function(){return this.selection.width()-f(this.search)},resizeSearch:function(){var e,t,n,i=f(this.search);t=this.search,s||(n=t[0].currentStyle||window.getComputedStyle(t[0],null),(s=v(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:n.fontSize,fontFamily:n.fontFamily,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,textTransform:n.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),v(document.body).append(s)),s.text(t.val()),n=s.width()+10,t=this.search.offset().left,(t=(t=(t=(e=this.selection.width())-(t-this.selection.offset().left)-i)<n?e-i:t)<40?e-i:t)<=0&&(t=n),this.search.width(Math.floor(t))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:p(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(e){var t,n;this.select?this.select.val(e):(t=[],n={},v(e).each(function(){this in n||(t.push(this),n[this]=0)}),this.opts.element.val(0===t.length?"":t.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),n=0;n<t.length;n++)for(var i=0;i<e.length;i++)if(d(this.opts.id(t[n]),this.opts.id(e[i]))){t.splice(n,1),n--,e.splice(i,1);break}return{added:t,removed:e}},val:function(e,n){var i,s=this;if(0===arguments.length)return this.getVal();if((i=this.data()).length||(i=[]),e||0===e){if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(i,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var t=v.map(e,s.id);s.setVal(t),s.updateSelection(e),s.clearSearch(),n&&s.triggerChange(s.buildChangeDetails(i,s.data()))})}this.clearSearch()}else this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),n&&this.triggerChange({added:this.data(),removed:i})},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],t=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(t.opts.id(v(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,t){var n,i,s=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return v(this).data("select2-data")}).get();i=this.data(),n=v.map(e=e||[],function(e){return s.opts.id(e)}),this.setVal(n),this.updateSelection(e),this.clearSearch(),t&&this.triggerChange(this.buildChangeDetails(i,this.data()))}}),v.fn.select2=function(){var e,t,n,i,s=Array.prototype.slice.call(arguments,0),o=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],a=["opened","isFocused","container","dropdown"],r=["val","data"],l={search:"externalSearch"};return this.each(function(){if(0===s.length||"object"==typeof s[0])(t=0===s.length?{}:v.extend({},s[0])).element=v(this),"select"===t.element.get(0).tagName.toLowerCase()?i=t.element.prop("multiple"):(i=t.multiple||!1,"tags"in t&&(t.multiple=i=!0)),(e=new(i?window.Select2.class.multi:window.Select2.class.single)).init(t);else{if("string"!=typeof s[0])throw"Invalid arguments to select2 plugin: "+s;if(u(s[0],o)<0)throw"Unknown method: "+s[0];if(n=b,(e=v(this).data("select2"))!==b)return t=s[0],n="container"===t?e.container:"dropdown"===t?e.dropdown:e[t=l[t]?l[t]:t].apply(e,s.slice(1)),!(0<=u(s[0],a)||0<=u(s[0],r)&&1==s.length)&&void 0}}),n===b?this:n},v.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,n,i){var s=[];return C(this.text(e),n.term,s,i),s.join("")},transformVal:function(e){return v.trim(e)},formatSelection:function(e,t,n){return e?n(this.text(e)):b},sortResults:function(e,t,n){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,t){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==b?null:e.id},text:function(e){return e&&this.data&&this.data.text?v.isFunction(this.data.text)?this.data.text(e):e[this.data.text]:e.text},matcher:function(e,t){return 0<=h(""+t).toUpperCase().indexOf(h(""+e).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(e,t,n,i){var s,o,a,r,l,c=e,h=!1;if(!i.createSearchChoice||!i.tokenSeparators||i.tokenSeparators.length<1)return b;for(;;){for(o=-1,a=0,r=i.tokenSeparators.length;a<r&&(l=i.tokenSeparators[a],!(0<=(o=e.indexOf(l))));a++);if(o<0)break;if(s=e.substring(0,o),e=e.substring(o+l.length),0<s.length&&(s=i.createSearchChoice.call(this,s,t))!==b&&null!==s&&i.id(s)!==b&&null!==i.id(s)){for(h=!1,a=0,r=t.length;a<r;a++)if(d(i.id(s),i.id(t[a]))){h=!0;break}h||n(s)}}return c!==e?e:void 0},escapeMarkup:x,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!(("ontouchstart"in window||0<navigator.msMaxTouchPoints)&&e.opts.minimumResultsForSearch<0)}},v.fn.select2.locales=[],v.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,n){return"Loading failed"},formatInputTooShort:function(e,t){t-=e.length;return"Please enter "+t+" or more character"+(1==t?"":"s")},formatInputTooLong:function(e,t){e=e.length-t;return"Please delete "+e+" character"+(1==e?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},v.extend(v.fn.select2.defaults,v.fn.select2.locales.en),v.fn.select2.ajaxDefaults={transport:v.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:T,local:k,tags:D},util:{debounce:S,markMatch:C,escapeMarkup:x,stripDiacritics:h},class:{abstract:e,single:t,multi:n}})}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(c){var i,a=window.Slick||{};i=0,(a=function(e,t){var n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(e),appendDots:c(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return c('<button type="button" data-role="none" role="button" tabindex="0" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=c(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,e=c(e).data("slick")||{},n.options=c.extend({},n.defaults,t,e),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=c.proxy(n.autoPlay,n),n.autoPlayClear=c.proxy(n.autoPlayClear,n),n.autoPlayIterator=c.proxy(n.autoPlayIterator,n),n.changeSlide=c.proxy(n.changeSlide,n),n.clickHandler=c.proxy(n.clickHandler,n),n.selectHandler=c.proxy(n.selectHandler,n),n.setPosition=c.proxy(n.setPosition,n),n.swipeHandler=c.proxy(n.swipeHandler,n),n.dragHandler=c.proxy(n.dragHandler,n),n.keyHandler=c.proxy(n.keyHandler,n),n.instanceUid=i++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},a.prototype.addSlide=a.prototype.slickAdd=function(e,t,n){var i=this;if("boolean"==typeof t)n=t,t=null;else if(t<0||t>=i.slideCount)return!1;i.unload(),"number"==typeof t?0===t&&0===i.$slides.length?c(e).appendTo(i.$slideTrack):n?c(e).insertBefore(i.$slides.eq(t)):c(e).insertAfter(i.$slides.eq(t)):!0===n?c(e).prependTo(i.$slideTrack):c(e).appendTo(i.$slideTrack),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slides.each(function(e,t){c(t).attr("data-slick-index",e)}),i.$slidesCache=i.$slides,i.reinit()},a.prototype.animateHeight=function(){var e,t=this;1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical&&(e=t.$slides.eq(t.currentSlide).outerHeight(!0),t.$list.animate({height:e},t.options.speed))},a.prototype.animateSlide=function(e,t){var n={},i=this;i.animateHeight(),!0===i.options.rtl&&!1===i.options.vertical&&(e=-e),!1===i.transformsEnabled?!1===i.options.vertical?i.$slideTrack.animate({left:e},i.options.speed,i.options.easing,t):i.$slideTrack.animate({top:e},i.options.speed,i.options.easing,t):!1===i.cssTransitions?(!0===i.options.rtl&&(i.currentLeft=-i.currentLeft),c({animStart:i.currentLeft}).animate({animStart:e},{duration:i.options.speed,easing:i.options.easing,step:function(e){e=Math.ceil(e),!1===i.options.vertical?n[i.animType]="translate("+e+"px, 0px)":n[i.animType]="translate(0px,"+e+"px)",i.$slideTrack.css(n)},complete:function(){t&&t.call()}})):(i.applyTransition(),e=Math.ceil(e),!1===i.options.vertical?n[i.animType]="translate3d("+e+"px, 0px, 0px)":n[i.animType]="translate3d(0px,"+e+"px, 0px)",i.$slideTrack.css(n),t&&setTimeout(function(){i.disableTransition(),t.call()},i.options.speed))},a.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e=e&&null!==e?c(e).not(this.$slider):e},a.prototype.asNavFor=function(t){var e=this.getNavTarget();null!==e&&"object"==typeof e&&e.each(function(){var e=c(this).slick("getSlick");e.unslicked||e.slideHandler(t,!0)})},a.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,(!1===t.options.fade?t.$slideTrack:t.$slides.eq(e)).css(n)},a.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},a.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},a.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0)&&(e.direction=1)),e.slideHandler(t))},a.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=c(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=c(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},a.prototype.buildDots=function(){var e,t,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),t=c("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)t.append(c("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=t.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},a.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){c(t).attr("data-slick-index",e).data("originalStyling",c(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?c('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),c("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},a.prototype.buildRows=function(){var e,t,n,i=this,s=document.createDocumentFragment(),o=i.$slider.children();if(1<i.options.rows){for(n=i.options.slidesPerRow*i.options.rows,t=Math.ceil(o.length/n),e=0;e<t;e++){for(var a=document.createElement("div"),r=0;r<i.options.rows;r++){for(var l=document.createElement("div"),c=0;c<i.options.slidesPerRow;c++){var h=e*n+(r*i.options.slidesPerRow+c);o.get(h)&&l.appendChild(o.get(h))}a.appendChild(l)}s.appendChild(a)}i.$slider.empty().append(s),i.$slider.children().children().children().css({width:100/i.options.slidesPerRow+"%",display:"inline-block"})}},a.prototype.checkResponsive=function(e,t){var n,i,s,o=this,a=!1,r=o.$slider.width(),l=window.innerWidth||c(window).width();if("window"===o.respondTo?s=l:"slider"===o.respondTo?s=r:"min"===o.respondTo&&(s=Math.min(l,r)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(n in i=null,o.breakpoints)o.breakpoints.hasOwnProperty(n)&&(!1===o.originalSettings.mobileFirst?s<o.breakpoints[n]&&(i=o.breakpoints[n]):s>o.breakpoints[n]&&(i=o.breakpoints[n]));null!==i?null!==o.activeBreakpoint&&i===o.activeBreakpoint&&!t||(o.activeBreakpoint=i,"unslick"===o.breakpointSettings[i]?o.unslick(i):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[i]),!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),a=i):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e),a=i),e||!1===a||o.$slider.trigger("breakpoint",[o,a])}},a.prototype.changeSlide=function(e,t){var n,i=this,s=c(e.currentTarget);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),n=i.slideCount%i.options.slidesToScroll!=0?0:(i.slideCount-i.currentSlide)%i.options.slidesToScroll,e.data.message){case"previous":o=0==n?i.options.slidesToScroll:i.options.slidesToShow-n,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide-o,!1,t);break;case"next":o=0==n?i.options.slidesToScroll:n,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide+o,!1,t);break;case"index":var o=0===e.data.index?0:e.data.index||s.index()*i.options.slidesToScroll;i.slideHandler(i.checkNavigable(o),!1,t),s.children().trigger("focus");break;default:return}},a.prototype.checkNavigable=function(e){var t=this.getNavigableIndexes(),n=0;if(e>t[t.length-1])e=t[t.length-1];else for(var i in t){if(e<t[i]){e=n;break}n=t[i]}return e},a.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&c("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",c.proxy(e.interrupt,e,!0)).off("mouseleave.slick",c.proxy(e.interrupt,e,!1)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow)&&e.$nextArrow.off("click.slick",e.changeSlide),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),c(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().off("click.slick",e.selectHandler),c(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),c(window).off("resize.slick.slick-"+e.instanceUid,e.resize),c("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),c(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),c(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},a.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",c.proxy(e.interrupt,e,!1))},a.prototype.cleanUpRows=function(){var e;1<this.options.rows&&((e=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(e))},a.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},a.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),c(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow))&&t.$prevArrow.remove(),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow))&&t.$nextArrow.remove(),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},a.prototype.disableTransition=function(e){var t={};t[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(e)).css(t)},a.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},a.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},a.prototype.filterSlides=a.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},a.prototype.focusHandler=function(){var n=this;n.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(e){e.stopImmediatePropagation();var t=c(this);setTimeout(function(){n.options.pauseOnFocus&&(n.focussed=t.is(":focus"),n.autoPlay())},0)})},a.prototype.getCurrent=a.prototype.slickCurrentSlide=function(){return this.currentSlide},a.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(!0===e.options.infinite)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},a.prototype.getLeft=function(e){var t,n=this,i=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,i=t*n.options.slidesToShow*-1),n.slideCount%n.options.slidesToScroll!=0&&e+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i=e>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(e-n.slideCount))*n.slideWidth*-1,(n.options.slidesToShow-(e-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,n.slideCount%n.options.slidesToScroll*t*-1))):e+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(e+n.options.slidesToShow-n.slideCount)*n.slideWidth,i=(e+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(i=n.slideOffset=0),!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),t=!1===n.options.vertical?e*n.slideWidth*-1+n.slideOffset:e*t*-1+i,!0===n.options.variableWidth&&(i=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow),t=!0===n.options.rtl?i[0]?-1*(n.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===n.options.centerMode)&&(i=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow+1),t=!0===n.options.rtl?i[0]?-1*(n.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(n.$list.width()-i.outerWidth())/2),t},a.prototype.getOption=a.prototype.slickGetOption=function(e){return this.options[e]},a.prototype.getNavigableIndexes=function(){for(var e=this,t=0,n=0,i=[],s=!1===e.options.infinite?e.slideCount:(t=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,2*e.slideCount);t<s;)i.push(t),t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return i},a.prototype.getSlick=function(){return this},a.prototype.getSlideCount=function(){var n,i=this,s=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0;return!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each(function(e,t){if(t.offsetLeft-s+c(t).outerWidth()/2>-1*i.swipeLeft)return n=t,!1}),Math.abs(c(n).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},a.prototype.goTo=a.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},a.prototype.init=function(e){var t=this;c(t.$slider).hasClass("slick-initialized")||(c(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},a.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$slideTrack.attr("role","listbox"),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(e){c(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+e})}),null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(e){c(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+e,id:"slick-slide"+t.instanceUid+e})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},a.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide))},a.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&c("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&c("li",e.$dots).on("mouseenter.slick",c.proxy(e.interrupt,e,!0)).on("mouseleave.slick",c.proxy(e.interrupt,e,!1))},a.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",c.proxy(e.interrupt,e,!1)))},a.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),c(document).on(e.visibilityChange,c.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),c(window).on("orientationchange.slick.slick-"+e.instanceUid,c.proxy(e.orientationChange,e)),c(window).on("resize.slick.slick-"+e.instanceUid,c.proxy(e.resize,e)),c("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),c(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),c(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},a.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},a.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},a.prototype.lazyLoad=function(){var e,t,i=this;function n(e){c("img[data-lazy]",e).each(function(){var e=c(this),t=c(this).attr("data-lazy"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")}),i.$slider.trigger("lazyLoaded",[i,e,t])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,e,t])},n.src=t})}!0===i.options.centerMode?t=!0===i.options.infinite?(e=i.currentSlide+(i.options.slidesToShow/2+1))+i.options.slidesToShow+2:(e=Math.max(0,i.currentSlide-(i.options.slidesToShow/2+1)),i.options.slidesToShow/2+1+2+i.currentSlide):(e=i.options.infinite?i.options.slidesToShow+i.currentSlide:i.currentSlide,t=Math.ceil(e+i.options.slidesToShow),!0===i.options.fade&&(0<e&&e--,t<=i.slideCount)&&t++),n(i.$slider.find(".slick-slide").slice(e,t)),i.slideCount<=i.options.slidesToShow?n(i.$slider.find(".slick-slide")):i.currentSlide>=i.slideCount-i.options.slidesToShow?n(i.$slider.find(".slick-cloned").slice(0,i.options.slidesToShow)):0===i.currentSlide&&n(i.$slider.find(".slick-cloned").slice(-1*i.options.slidesToShow))},a.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},a.prototype.next=a.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},a.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},a.prototype.pause=a.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},a.prototype.play=a.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},a.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&t.initADA())},a.prototype.prev=a.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},a.prototype.preventDefault=function(e){e.preventDefault()},a.prototype.progressiveLazyLoad=function(e){e=e||1;var t,n,i=this,s=c("img[data-lazy]",i.$slider);s.length?(t=s.first(),n=t.attr("data-lazy"),(s=document.createElement("img")).onload=function(){t.attr("src",n).removeAttr("data-lazy").removeClass("slick-loading"),!0===i.options.adaptiveHeight&&i.setPosition(),i.$slider.trigger("lazyLoaded",[i,t,n]),i.progressiveLazyLoad()},s.onerror=function(){e<3?setTimeout(function(){i.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,t,n]),i.progressiveLazyLoad())},s.src=n):i.$slider.trigger("allImagesLoaded",[i])},a.prototype.refresh=function(e){var t=this,n=t.slideCount-t.options.slidesToShow;!t.options.infinite&&t.currentSlide>n&&(t.currentSlide=n),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),n=t.currentSlide,t.destroy(!0),c.extend(t,t.initials,{currentSlide:n}),t.init(),e||t.changeSlide({data:{message:"index",index:n}},!1)},a.prototype.registerBreakpoints=function(){var e,t,n,i=this,s=i.options.responsive||null;if("array"===c.type(s)&&s.length){for(e in i.respondTo=i.options.respondTo||"window",s)if(n=i.breakpoints.length-1,t=s[e].breakpoint,s.hasOwnProperty(e)){for(;0<=n;)i.breakpoints[n]&&i.breakpoints[n]===t&&i.breakpoints.splice(n,1),n--;i.breakpoints.push(t),i.breakpointSettings[t]=s[e].settings}i.breakpoints.sort(function(e,t){return i.options.mobileFirst?e-t:t-e})}},a.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},a.prototype.resize=function(){var e=this;c(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=c(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},a.prototype.removeSlide=a.prototype.slickRemove=function(e,t,n){var i=this;if(e="boolean"==typeof e?!0===(t=e)?0:i.slideCount-1:!0===t?--e:e,i.slideCount<1||e<0||e>i.slideCount-1)return!1;i.unload(),(!0===n?i.$slideTrack.children():i.$slideTrack.children(this.options.slide).eq(e)).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},a.prototype.setCSS=function(e){var t,n,i=this,s={};!0===i.options.rtl&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",s[i.positionProp]=e,!1!==i.transformsEnabled&&(!(s={})===i.cssTransitions?s[i.animType]="translate("+t+", "+n+")":s[i.animType]="translate3d("+t+", "+n+", 0px)"),i.$slideTrack.css(s)},a.prototype.setDimensions=function(){var e=this,t=(!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length))),e.$slides.first().outerWidth(!0)-e.$slides.first().width());!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},a.prototype.setFade=function(){var n,i=this;i.$slides.each(function(e,t){n=i.slideWidth*e*-1,!0===i.options.rtl?c(t).css({position:"relative",right:n,top:0,zIndex:i.options.zIndex-2,opacity:0}):c(t).css({position:"relative",left:n,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},a.prototype.setHeight=function(){var e,t=this;1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical&&(e=t.$slides.eq(t.currentSlide).outerHeight(!0),t.$list.css("height",e))},a.prototype.setOption=a.prototype.slickSetOption=function(){var e,t,n,i,s,o=this,a=!1;if("object"===c.type(arguments[0])?(n=arguments[0],a=arguments[1],s="multiple"):"string"===c.type(arguments[0])&&(n=arguments[0],i=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)o.options[n]=i;else if("multiple"===s)c.each(n,function(e,t){o.options[e]=t});else if("responsive"===s)for(t in i)if("array"!==c.type(o.options.responsive))o.options.responsive=[i[t]];else{for(e=o.options.responsive.length-1;0<=e;)o.options.responsive[e].breakpoint===i[t].breakpoint&&o.options.responsive.splice(e,1),e--;o.options.responsive.push(i[t])}a&&(o.unload(),o.reinit())},a.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},a.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty)&&void 0===t.webkitPerspective&&(e.animType=!1),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty)&&void 0===t.MozPerspective&&(e.animType=!1),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty)&&void 0===t.webkitPerspective&&(e.animType=!1),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform)&&(e.animType=!1),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},a.prototype.setSlideClasses=function(e){var t,n,i=this,s=i.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");i.$slides.eq(e).addClass("slick-current"),!0===i.options.centerMode?(n=Math.floor(i.options.slidesToShow/2),!0===i.options.infinite&&((n<=e&&e<=i.slideCount-1-n?i.$slides.slice(e-n,e+n+1):(t=i.options.slidesToShow+e,s.slice(t-n+1,t+n+2))).addClass("slick-active").attr("aria-hidden","false"),0===e?s.eq(s.length-1-i.options.slidesToShow).addClass("slick-center"):e===i.slideCount-1&&s.eq(i.options.slidesToShow).addClass("slick-center")),i.$slides.eq(e).addClass("slick-center")):(0<=e&&e<=i.slideCount-i.options.slidesToShow?i.$slides.slice(e,e+i.options.slidesToShow):s.length<=i.options.slidesToShow?s:(n=i.slideCount%i.options.slidesToShow,t=!0===i.options.infinite?i.options.slidesToShow+e:e,i.options.slidesToShow==i.options.slidesToScroll&&i.slideCount-e<i.options.slidesToShow?s.slice(t-(i.options.slidesToShow-n),t+n):s.slice(t,t+i.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"===i.options.lazyLoad&&i.lazyLoad()},a.prototype.setupInfinite=function(){var e,t,n,i=this;if(!0===i.options.fade&&(i.options.centerMode=!1),!0===i.options.infinite&&!1===i.options.fade&&(t=null,i.slideCount>i.options.slidesToShow)){for(n=!0===i.options.centerMode?i.options.slidesToShow+1:i.options.slidesToShow,e=i.slideCount;e>i.slideCount-n;--e)c(i.$slides[t=e-1]).clone(!0).attr("id","").attr("data-slick-index",t-i.slideCount).prependTo(i.$slideTrack).addClass("slick-cloned");for(e=0;e<n;e+=1)t=e,c(i.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+i.slideCount).appendTo(i.$slideTrack).addClass("slick-cloned");i.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},a.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},a.prototype.selectHandler=function(e){var t=this,e=c(e.target).is(".slick-slide")?c(e.target):c(e.target).parents(".slick-slide"),e=(e=parseInt(e.attr("data-slick-index")))||0;t.slideCount<=t.options.slidesToShow?(t.setSlideClasses(e),t.asNavFor(e)):t.slideHandler(e)},a.prototype.slideHandler=function(e,t,n){var i,s,o,a=this;t=t||!1,!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===e||a.slideCount<=a.options.slidesToShow||(!1===t&&a.asNavFor(e),i=e,t=a.getLeft(i),o=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?o:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(e<0||e>a.getDotCount()*a.options.slidesToScroll)||!1===a.options.infinite&&!0===a.options.centerMode&&(e<0||e>a.slideCount-a.options.slidesToScroll)?!1===a.options.fade&&(i=a.currentSlide,!0!==n?a.animateSlide(o,function(){a.postSlide(i)}):a.postSlide(i)):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=i<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+i:i>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:i-a.slideCount:i,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),e=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(o=(o=a.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade?(!0!==n?(a.fadeSlideOut(e),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),a.animateHeight()):!0!==n?a.animateSlide(t,function(){a.postSlide(s)}):a.postSlide(s)))},a.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},a.prototype.swipeDirection=function(){var e=this,t=e.touchObject.startX-e.touchObject.curX,n=e.touchObject.startY-e.touchObject.curY,n=Math.atan2(n,t),t=Math.round(180*n/Math.PI);return(t=t<0?360-Math.abs(t):t)<=45&&0<=t||t<=360&&315<=t?!1===e.options.rtl?"left":"right":135<=t&&t<=225?!1===e.options.rtl?"right":"left":!0===e.options.verticalSwiping?35<=t&&t<=135?"down":"up":"vertical"},a.prototype.swipeEnd=function(e){var t,n,i=this;if(i.dragging=!1,i.interrupted=!1,i.shouldClick=!(10<i.touchObject.swipeLength),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(t),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},a.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},a.prototype.swipeMove=function(e){var t,n,i=this,s=void 0!==e.originalEvent?e.originalEvent.touches:null;return!(!i.dragging||s&&1!==s.length)&&(t=i.getLeft(i.currentSlide),i.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,i.touchObject.curY=void 0!==s?s[0].pageY:e.clientY,i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curX-i.touchObject.startX,2))),!0===i.options.verticalSwiping&&(i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curY-i.touchObject.startY,2)))),"vertical"!==(s=i.swipeDirection())?(void 0!==e.originalEvent&&4<i.touchObject.swipeLength&&e.preventDefault(),e=(!1===i.options.rtl?1:-1)*(i.touchObject.curX>i.touchObject.startX?1:-1),!0===i.options.verticalSwiping&&(e=i.touchObject.curY>i.touchObject.startY?1:-1),n=i.touchObject.swipeLength,(i.touchObject.edgeHit=!1)===i.options.infinite&&(0===i.currentSlide&&"right"===s||i.currentSlide>=i.getDotCount()&&"left"===s)&&(n=i.touchObject.swipeLength*i.options.edgeFriction,i.touchObject.edgeHit=!0),!1===i.options.vertical?i.swipeLeft=t+n*e:i.swipeLeft=t+n*(i.$list.height()/i.listWidth)*e,!0===i.options.verticalSwiping&&(i.swipeLeft=t+n*e),!0!==i.options.fade&&!1!==i.options.touchMove&&(!0===i.animating?(i.swipeLeft=null,!1):void i.setCSS(i.swipeLeft))):void 0)},a.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return!(n.touchObject={});void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,n.dragging=!0},a.prototype.unfilterSlides=a.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},a.prototype.unload=function(){var e=this;c(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},a.prototype.unslick=function(e){this.$slider.trigger("unslick",[this,e]),this.destroy()},a.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2);!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},a.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},a.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){for(var e,t=this,n=arguments[0],i=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;o++)if("object"==typeof n||void 0===n?t[o].slick=new a(t[o],n):e=t[o].slick[n].apply(t[o].slick,i),void 0!==e)return e;return t}}),ClusterIcon.prototype.onAdd=function(){var s,o,a=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){o=s}),this.div_.addEventListener("mousedown",function(){o=!(s=!0)}),this.div_.addEventListener("click",function(e){var t,n,i;s=!1,o||(i=a.cluster_.getMarkerClusterer(),google.maps.event.trigger(i,"click",a.cluster_),google.maps.event.trigger(i,"clusterclick",a.cluster_),i.getZoomOnClick()&&(n=i.getMaxZoom(),t=a.cluster_.getBounds(),i.getMap().fitBounds(t),setTimeout(function(){i.getMap().fitBounds(t),null!==n&&i.getMap().getZoom()>n&&i.getMap().setZoom(n+1)},100)),e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}),this.div_.addEventListener("mouseover",function(){var e=a.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseover",a.cluster_)}),this.div_.addEventListener("mouseout",function(){var e=a.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseout",a.cluster_)})},ClusterIcon.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},ClusterIcon.prototype.draw=function(){var e;this.visible_&&(e=this.getPosFromLatLng_(this.center_),this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px")},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){var e,t,n,i;this.div_&&(e="",n=this.backgroundPosition_.split(" "),t=parseInt(n[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(n[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng_(this.center_),this.div_.style.cssText=this.createCss(i),e="<img src='"+this.url_+"' style='position: absolute; top: "+n+"px; left: "+t+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_||(e+="clip: rect("+-1*n+"px, "+(-1*t+this.width_)+"px, "+(-1*n+this.height_)+"px, "+-1*t+"px);"),this.div_.innerHTML=(e+="'>")+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>",void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},ClusterIcon.prototype.useStyle=function(e){this.sums_=e;e=Math.max(0,e.index-1),e=Math.min(this.styles_.length-1,e),e=this.styles_[e];this.url_=e.url,this.height_=e.height,this.width_=e.width,this.anchorText_=e.anchorText||[0,0],this.anchorIcon_=e.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=e.textColor||"black",this.textSize_=e.textSize||11,this.textDecoration_=e.textDecoration||"none",this.fontWeight_=e.fontWeight||"bold",this.fontStyle_=e.fontStyle||"normal",this.fontFamily_=e.fontFamily||"Arial,sans-serif",this.backgroundPosition_=e.backgroundPosition||"0 0"},ClusterIcon.prototype.setCenter=function(e){this.center_=e},ClusterIcon.prototype.createCss=function(e){var t=[];return t.push("cursor: pointer;"),t.push("position: absolute; top: "+e.y+"px; left: "+e.x+"px;"),t.push("width: "+this.width_+"px; height: "+this.height_+"px;"),t.join("")},ClusterIcon.prototype.getPosFromLatLng_=function(e){e=this.getProjection().fromLatLngToDivPixel(e);return e.x-=this.anchorIcon_[1],e.y-=this.anchorIcon_[0],e.x=parseInt(e.x,10),e.y=parseInt(e.y,10),e},Cluster.prototype.getSize=function(){return this.markers_.length},Cluster.prototype.getMarkers=function(){return this.markers_},Cluster.prototype.getCenter=function(){return this.center_},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),t=this.getMarkers(),n=0;n<t.length;n++)e.extend(t[n].getPosition());return e},Cluster.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},Cluster.prototype.addMarker=function(e){var t,n,i,s;if(this.isMarkerAlreadyAdded_(e))return!1;if(this.center_?this.averageCenter_&&(s=this.markers_.length+1,i=(this.center_.lat()*(s-1)+e.getPosition().lat())/s,s=(this.center_.lng()*(s-1)+e.getPosition().lng())/s,this.center_=new google.maps.LatLng(i,s),this.calculateBounds_()):(this.center_=e.getPosition(),this.calculateBounds_()),e.isAdded=!0,this.markers_.push(e),n=this.markers_.length,null!==(i=this.markerClusterer_.getMaxZoom())&&this.map_.getZoom()>i)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n===this.minClusterSize_)for(t=0;t<n;t++)this.markers_[t].setMap(null);else e.setMap(null);return this.updateIcon_(),!0},Cluster.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},Cluster.prototype.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},Cluster.prototype.updateIcon_=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();null!==t&&this.map_.getZoom()>t||e<this.minClusterSize_?this.clusterIcon_.hide():(t=this.markerClusterer_.getStyles().length,e=this.markerClusterer_.getCalculator()(this.markers_,t),this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(e),this.clusterIcon_.show())},Cluster.prototype.isMarkerAlreadyAdded_=function(e){var t;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(e);for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},MarkerClusterer.prototype.onAdd=function(){var e=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){e.resetViewport_(!1),this.getZoom()!==(this.get("minZoom")||0)&&this.getZoom()!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){e.redraw_()})]},MarkerClusterer.prototype.onRemove=function(){for(var e=0;e<this.markers_.length;e++)this.markers_[e].getMap()!==this.activeMap_&&this.markers_[e].setMap(this.activeMap_);for(e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();for(this.clusters_=[],e=0;e<this.listeners_.length;e++)google.maps.event.removeListener(this.listeners_[e]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){var e,t;if(!(0<this.styles_.length))for(e=0;e<this.imageSizes_.length;e++)t=this.imageSizes_[e],this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},MarkerClusterer.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0;n<e.length;n++)t.extend(e[n].getPosition());this.getMap().fitBounds(t)},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(e){this.gridSize_=e},MarkerClusterer.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinimumClusterSize=function(e){this.minClusterSize_=e},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.setMaxZoom=function(e){this.maxZoom_=e},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.setStyles=function(e){this.styles_=e},MarkerClusterer.prototype.getTitle=function(){return this.title_},MarkerClusterer.prototype.setTitle=function(e){this.title_=e},MarkerClusterer.prototype.getZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.setZoomOnClick=function(e){this.zoomOnClick_=e},MarkerClusterer.prototype.getAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.setAverageCenter=function(e){this.averageCenter_=e},MarkerClusterer.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},MarkerClusterer.prototype.setIgnoreHidden=function(e){this.ignoreHidden_=e},MarkerClusterer.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},MarkerClusterer.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons_=e},MarkerClusterer.prototype.getImageExtension=function(){return this.imageExtension_},MarkerClusterer.prototype.setImageExtension=function(e){this.imageExtension_=e},MarkerClusterer.prototype.getImagePath=function(){return this.imagePath_},MarkerClusterer.prototype.setImagePath=function(e){this.imagePath_=e},MarkerClusterer.prototype.getImageSizes=function(){return this.imageSizes_},MarkerClusterer.prototype.setImageSizes=function(e){this.imageSizes_=e},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.setCalculator=function(e){this.calculator_=e},MarkerClusterer.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},MarkerClusterer.prototype.setBatchSizeIE=function(e){this.batchSizeIE_=e},MarkerClusterer.prototype.getClusterClass=function(){return this.clusterClass_},MarkerClusterer.prototype.setClusterClass=function(e){this.clusterClass_=e},MarkerClusterer.prototype.getMarkers=function(){return this.markers_},MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length},MarkerClusterer.prototype.getClusters=function(){return this.clusters_},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw_()},MarkerClusterer.prototype.addMarkers=function(e,t){for(var n in e)e.hasOwnProperty(n)&&this.pushMarkerTo_(e[n]);t||this.redraw_()},MarkerClusterer.prototype.pushMarkerTo_=function(e){var t;e.getDraggable()&&(t=this,google.maps.event.addListener(e,"dragend",function(){t.ready_&&(this.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers_.push(e)},MarkerClusterer.prototype.removeMarker=function(e,t){e=this.removeMarker_(e);return!t&&e&&this.repaint(),e},MarkerClusterer.prototype.removeMarkers=function(e,t){for(var n,i=!1,s=0;s<e.length;s++)n=this.removeMarker_(e[s]),i=i||n;return!t&&i&&this.repaint(),i},MarkerClusterer.prototype.removeMarker_=function(e){var t,n=-1;if(this.markers_.indexOf)n=this.markers_.indexOf(e);else for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t]){n=t;break}return-1!==n&&(e.setMap(null),this.markers_.splice(n,1),!0)},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},MarkerClusterer.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){for(var e=0;e<t.length;e++)t[e].remove()},0)},MarkerClusterer.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),i=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),n=t.fromLatLngToDivPixel(n),i=(n.x+=this.gridSize_,n.y-=this.gridSize_,t.fromLatLngToDivPixel(i)),n=(i.x-=this.gridSize_,i.y+=this.gridSize_,t.fromDivPixelToLatLng(n)),t=t.fromDivPixelToLatLng(i);return e.extend(n),e.extend(t),e},MarkerClusterer.prototype.redraw_=function(){this.createClusters_(0)},MarkerClusterer.prototype.resetViewport_=function(e){for(var t,n=0;n<this.clusters_.length;n++)this.clusters_[n].remove();for(this.clusters_=[],n=0;n<this.markers_.length;n++)(t=this.markers_[n]).isAdded=!1,e&&t.setMap(null)},MarkerClusterer.prototype.distanceBetweenPoints_=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,i=(t.lng()-e.lng())*Math.PI/180,n=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n)))},MarkerClusterer.prototype.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},MarkerClusterer.prototype.addToClosestCluster_=function(e){for(var t,n,i=4e4,s=null,o=0;o<this.clusters_.length;o++)(n=(t=this.clusters_[o]).getCenter())&&(n=this.distanceBetweenPoints_(n,e.getPosition()))<i&&(i=n,s=t);s&&s.isMarkerInClusterBounds(e)?s.addMarker(e):((t=new Cluster(this)).addMarker(e),this.clusters_.push(t))},MarkerClusterer.prototype.createClusters_=function(e){var t,n=this;if(this.ready_){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic)&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic);for(var i=3<this.getMap().getZoom()?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(i),o=Math.min(e+this.batchSize_,this.markers_.length),a=e;a<o;a++)!(t=this.markers_[a]).isAdded&&this.isMarkerInBounds_(t,s)&&(!this.ignoreHidden_||this.ignoreHidden_&&t.getVisible())&&this.addToClosestCluster_(t);o<this.markers_.length?this.timerRefStatic=setTimeout(function(){n.createClusters_(o)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},MarkerClusterer.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}.apply(e,[t])},MarkerClusterer.CALCULATOR=function(e,t){for(var n=0,e=e.length.toString(),i=e;0!==i;)i=parseInt(i/10,10),n++;return{text:e,index:n=Math.min(n,t),title:""}},MarkerClusterer.BATCH_SIZE=2e3,MarkerClusterer.BATCH_SIZE_IE=500,MarkerClusterer.IMAGE_PATH="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m",MarkerClusterer.IMAGE_EXTENSION="png",MarkerClusterer.IMAGE_SIZES=[53,56,66,78,90],function(a){function n(e){opened=a(document).find("."+e.cssOpen),a.each(opened,function(){a(this).addClass(e.cssClose).removeClass(e.cssOpen),e.animateClose(a(this),e)})}function r(e,t){e.hasClass(t.cssOpen)?(n(t),l(t)&&i("",t)):(n(t),e=e,n(t=t),e.removeClass(t.cssClose).addClass(t.cssOpen),t.animateOpen(e,t),l(t)&&i(id=e.attr("id"),t))}function l(e){return!(!a.cookie||""==e.cookieName)}function i(e,t){l(t)&&a.cookie(t.cookieName,e,t.cookieOptions)}function c(e){return l(e)&&null!=a.cookie(e.cookieName)}a.fn.accordion=function(e){if(!this||this.length<1)return this;var t,s,o;t=this,s=a.extend({},a.fn.accordion.defaults,e),o="",t.each(function(){var e,t,n=a(this),i=(i=s,n.data("accordion-opts",i),"mouseenter"==s.bind&&n.bind("mouseenter",function(e){e.preventDefault(),r(n,s)}),"mouseover"==s.bind&&n.bind("mouseover",function(e){e.preventDefault(),r(n,s)}),"click"==s.bind&&n.bind("click",function(e){e.preventDefault(),r(n,s)}),"dblclick"==s.bind&&n.bind("dblclick",function(e){e.preventDefault(),r(n,s)}),n.attr("id"));l(s)&&c(s)?!1==(e=i,!!l(t=s)&&!!c(t)&&(cookie=unescape(a.cookie(t.cookieName)))==e)?(n.addClass(s.cssClose),s.loadClose(n,s)):(n.addClass(s.cssOpen),s.loadOpen(n,s),o=i):i!=s.defaultOpen?(n.addClass(s.cssClose),s.loadClose(n,s)):(n.addClass(s.cssOpen),s.loadOpen(n,s),o=i)}),0<o.length&&l(s)?i(o,s):i("",s)},a.fn.accordion.defaults={cssClose:"accordion-close",cssOpen:"accordion-open",cookieName:"accordion",cookieOptions:{path:"/",expires:7,domain:"",secure:""},defaultOpen:"",speed:"slow",bind:"click",animateOpen:function(e,t){e.next().stop(!0,!0).slideDown(t.speed)},animateClose:function(e,t){e.next().stop(!0,!0).slideUp(t.speed)},loadOpen:function(e,t){e.next().show()},loadClose:function(e,t){e.next().hide()}}}(jQuery),function(o){o.fn.fcModal=function(e){var s=o.extend({onOpen:function(){},register_fc_modal_handing_events:function(){o(".fc-modal").each(function(e,t){var n,i=o(this).data("initiator");void 0!==i&&o(i.length)&&(o(i).data("target",o(this).attr("id")),n=o(this).attr("id"),o("body").on("click",i,function(){0<o("#"+n).length&&(s.onOpen(),o("#"+n).css("display","block"))}))}),o("body").on("click",".fc-modal-close",function(){var e=o(this).closest("div.fc-modal");o(e).css("display","none")}),window.onclick=function(e){o(e.toElement).hasClass("fc-modal")&&o(".fc-modal").hide()}}},e);return this.each(function(){s.register_fc_modal_handing_events()})}}(jQuery),jQuery(document).ready(function(a){a(".fc-modal").fcModal({});a(".custom-accordion > dd").hide();a(".custom-accordion > dd:first-of-type").show(),a(".custom-accordion > dt:first-of-type").addClass("accordion-active"),a(".fc-help-right .custom-accordion > dd:first-of-type").hide(),a(".fc-help-right .custom-accordion > dt:first-of-type").removeClass("accordion-active"),a(".custom-accordion > dt .get_pro").add(".fc-form-container .fc-form-group.fc-locked .get_pro").on("click",function(e){return e.stopPropagation(),window.open("https://www.wpmapspro.com/?utm_source=wordpress&utm_medium=liteversion&utm_campaign=freemium&utm_id=freemium","_blank"),!1}),a(".custom-accordion > dt > section > div > h4").add(".fc-form-container .fc-form-group.fc-locked").on("click",function(){var e=a(this),t=e.closest("dt").next();return e.closest("dt").find("section").hasClass("fc-locked")||(e.closest("dt").hasClass("accordion-active")?(e.closest("dt").next("dd").slideUp(),e.closest("dt").removeClass("accordion-active")):(e.closest(".custom-accordion").find("dd").slideUp(),e.closest(".custom-accordion").find("dt").removeClass("accordion-active"),e.closest("dt").addClass("accordion-active"),t.addClass("active").slideDown())),!1}),a(".row-actions .copy a").append('<i class="fa fa-copy "></i>'),a('.wp-list-table .check-column input[type="checkbox"]').wrap('<span class="checkbox"></span>'),a('.wp-list-table .check-column input[type="checkbox"]').after("<label></label>"),a(".wp-list-table #the-list").on("click","tr",function(e){a(this).hasClass("active")?a(this).removeClass("active"):a(this).addClass("active")}),($overviewPage=0<a(".fcdoc-product-info").length)&&(settings_obj.urlforajax,a("#user-suggestion,#purchase_code").keyup(function(){a(this).css("border","none")})),a("body").on("click",'input[name="fc-geocoding"]',function(e){e.preventDefault(),a(this).hide(),a(this).parent().parent().find(".fcdoc-loader").show();var s=a(this).parent().parent().find(".fc-location-new-set"),e=JSON.parse(a(this).parent().parent().find(".fc-location-data-set").val()),o=[],t=1e3,n=new google.maps.Geocoder;a.each(e,function(e,t){0});a.each(e,function(i,e){setTimeout(function(){n.geocode({address:e},function(e,t){var n;null!=e&&0<e.length&&(n=e[0].geometry.location.lat()?e[0].geometry.location.lat():"",e=e[0].geometry.location.lng()?e[0].geometry.location.lng():"",n=JSON.parse('{"id":"'+i+'","latitude": "'+n+'", "longitude": "'+e+'"}'),o.push(n),a(s).val(JSON.stringify(o)))})},t),t+=500}),setTimeout(function(){a(".fcdoc-loader").hide(),a(".fc-geocoding").hide(),a(".wpgmp-status").html('<div class="fc-msg fc-success">Geocoding process is completed. Click below to save new changes.</div>').show(),a(".fc-geocoding-updates").show()},t+2e3)}),0<a(".wpgmp_datepicker").length&&a(".wpgmp_datepicker").datepicker({dateFormat:"dd-mm-yy"})}),jQuery(document).ready(function(x){0<x(".fc_view_source").length&&(r=wp.codeEditor.initialize(x(".fc_view_source"),null));var r,e,i="",n=(x(".yes-remove-current-template").on("click",function(){var e=x(this).data("product"),t=x(this).data("templatetype"),n=x(this).data("templatename"),e={action:"core_backend_ajax_calls",product:e,templateName:n,templatetype:t,selector:".default-custom-template",operation:"delete_custom_template"};i=n,$inputs=e,jQuery.ajax({type:"POST",url:settings_obj.urlforajax,dataType:"json",data:e,beforeSend:function(){jQuery(".se-pre-con").fadeIn("slow")},success:function(e){switch(jQuery(".se-pre-con").fadeOut("slow"),$inputs.selector){case".set-default-template":x(".fc_tools").css("display","none"),x(".fc_name").css("display","none"),x(".current_selected").parent().parent().find(".fc_name").css("display","block"),x(".current_selected").closest(".fc_tools").css("display","block"),x(".current-temp-in-use").removeClass("current-temp-in-use"),x(".current_selected").addClass("current-temp-in-use");break;case".default-custom-template":x(".default-custom-template[data-templatename="+i+"]").parent().parent().parent().remove()}}}),x("#remove-current-template").modal("hide")}),x(".default-custom-template").on("click",function(){return x("#remove-current-template").modal("show"),x(".yes-remove-current-template").data("product",x(this).data("product")),x(".yes-remove-current-template").data("templatetype",x(this).data("templatetype")),x(".yes-remove-current-template").data("templatename",x(this).data("templatename")),!1}),"");x("body").on("click",".repeat_button",function(){for(var e=x(this).parent().parent(),t=x(e).clone(),n=x(t).find("input[type='text']"),i=0;i<n.length;i++){var s=x(n[i]).attr("name"),o=new RegExp(/\[([0-9]+)\]/i).exec(s),a=parseInt(o[1])+1,r=s.replace(/\[([0-9]+)\]/i,"["+a+"]");x(n[i]).attr("name",r)}for(n=x(t).find("input[type='number']"),i=0;i<n.length;i++){s=x(n[i]).attr("name"),o=new RegExp(/\[([0-9]+)\]/i).exec(s),a=parseInt(o[1])+1,r=s.replace(/\[([0-9]+)\]/i,"["+a+"]");x(n[i]).attr("name",r)}x(t).find("input[type='text']").val(""),x(t).find("input[type='number']").val(""),x(e).find(".repeat_button").val("Remove"),x(e).find(".repeat_button").removeClass("repeat_button").addClass("repeat_remove_button"),x(e).after(x(t))}),x("body").on("click",".repeat_remove_button",function(){var e=x(this).parent().parent(),t=x(e).clone(),e=(x(e).remove(),x(t).find("input[type='text']"));x.each(e,function(e,t){var n=x(this).attr("name"),i=n.replace(/\[([0-9]+)\]/i,"");x.each(x("*[name^='"+i+"']"),function(e,t){e=(n=x(this).attr("name")).replace(/\[([0-9]+)\]/i,"["+e+"]");x(this).attr("name",e)})}),x(this).data("id")&&(n=n+x(this).data("id")+"|",x("#fc_remove_entities").val(n))}),window.send_to_editor_default=window.send_to_editor,x(".fa-picture-o").click(function(){return window.send_to_editor=function(e){x("body").append('<div id="temp_image">'+e+"</div>");e=x("#temp_image").find("img");imgurl=e.attr("src"),x(".active_element").css("background-image","url("+imgurl+")");try{tb_remove()}catch(e){}x("#temp_image").remove(),window.send_to_editor=window.send_to_editor_default},tb_show("","media-upload.php?post_ID=0&type=image&TB_iframe=true"),!1});x(".choose_image").click(function(){return currentClickedID=x(this).data("ref"),window.send_to_editor=window.attach_image,tb_show("","media-upload.php?post_ID=0&target=marker_category_icon&type=image&TB_iframe=true"),!1}),window.attach_image=function(e){x("body").append('<div id="temp_image'+currentClickedID+'">'+e+"</div>");e=x("#temp_image"+currentClickedID).find("img");imgurl=e.attr("src"),imgclass=e.attr("class"),imgid=parseInt(imgclass.replace(/\D/g,""),10),x("#remove_image"+currentClickedID).show(),x("#image_"+currentClickedID).attr("src",imgurl).show(),x("#input_"+currentClickedID).val(imgurl);try{tb_remove()}catch(e){}x("#temp_image"+currentClickedID).remove(),window.send_to_editor=window.send_to_editor_default},x(".remove_image").click(function(){return e=x(this).parent().parent(),x(e).find(".selected_image").attr("src",""),x(e).find('input[name="'+x(this).data("target")+'"]').val(""),x(this).hide(),!1}),x(".switch_onoff").change(function(){var e=x(this).data("target");"radio"==x(this).attr("type")&&(x(e).closest(".fc-form-group").hide(),e+="_"+x(this).val()),x(this).is(":checked")?x(e).closest(".fc-form-group").show():(x(e).closest(".fc-form-group").hide(),x(e).hasClass("switch_onoff")&&(x(e).attr("checked",!1),x(e).trigger("change")))}),x.each(x(".switch_onoff"),function(e,t){1==x(this).is(":checked")&&x(this).trigger("change")}),x("input[name='wpp_refresh']").trigger("change"),x("body").on("click",".fc-accordion-tab",function(){x(this).hasClass("active")?(x(this).removeClass("active"),x(this).next().removeClass("active")):(x(".fc-accordion-tab").removeClass("active"),x(".fc-acc-child").removeClass("active"),x(this).addClass("active"),x(this).next().addClass("active"))}),0<jQuery(".fc_templates").length&&(x(".fc_load_original").click(function(){var e;confirm("Are you Sure?")&&(e=x(this).closest(".fc_customizer").parent(),x(e).find(".current-temp-in-use").trigger("click"))}),x(".fc_apply_changes").click(function(){var s=x(this).closest(".fc_customizer"),e=x(this).closest(".fc_customizer").parent(),t=(x(s).find(".fc_preview").append('<div class="fc_loading"></div>'),x(s).find(".fc_view_source").val()),o=x(e).find(".current-temp-in-use").data("templatename"),a=x(e).find(".current-temp-in-use").data("templatetype");jQuery.ajax({type:"POST",url:settings_obj.urlforajax,dataType:"json",data:{action:"core_templates",operation:"fc_load_template",nonce:settings_obj.nonce,template_name:o,template_type:a,template_source:t,columns:x(s).find(".fc-grid-active").data("col")},beforeSend:function(){},success:function(e){x(s).parent().find(".fc-bottom-bar").show();var t=settings_obj.text_editable,n=(new DOMParser).parseFromString(e.html,"text/html").body.innerHTML,i=x(s).find(".fc_preview").clone(),n=(x(s).find(".fc_preview").html(n),x(i).find(".editable").each(function(e){var t=x(this),n=(x(this).data("temp-type"),x(t).removeClass("editable"),x(t).removeClass("active_element"),x(t).attr("class").split(" "));n&&n.length&&(x.each(n,function(e,t){0<=t.indexOf("{")&&delete n[e],n[e]="."+t}),n=n.join(""),t=x(t).attr("style"),x(s).find(".fc_preview").find(n).attr("style",t))}),0<t.length&&x.each(t,function(e,t){x(s).find(t).addClass("editable").data("editor","text"),x(s).find(t).data("temp-type",a+"-"+o)}),0<(t=settings_obj.bg_editable).length&&x.each(t,function(e,t){x(s).find(t).addClass("editable").data("editor","bg"),x(s).find(t).data("temp-type",a+"-"+o)}),0<(t=settings_obj.margin_editable).length&&x.each(t,function(e,t){x(s).find(t).addClass("editable").data("editor","margin"),x(s).find(t).data("temp-type",a+"-"+o)}),0<(t=settings_obj.full_editable).length&&x.each(t,function(e,t){x(s).find(t).addClass("editable").data("editor","full"),x(s).find(t).data("temp-type",a+"-"+o)}),(new DOMParser).parseFromString(e.sourcecode,"text/html").body.innerHTML,r.codemirror.getValue());x(s).find(".fc_view_source").val(n),setTimeout(function(){r.codemirror.refresh()},1)}})}),x(".custom-accordion > dt > section > div.fc-type-infowindow > h4").add(".fc-form-container .fc-form-group.fc-locked").on("click",function(){x(this).closest("dt").hasClass("accordion-active")&&setTimeout(function(){r.codemirror.refresh()},50)}),x(".set-default-template").click(function(e){var n=x(this).closest(".fc_templates"),i=(x(".fc_customizer .fc_apply_style").removeClass("show_customizer"),x(".fc_tool_fgc").iris("hide"),x(".fc_tool_bgc").iris("hide"),x(".active_element").removeClass("active_element"),x(n).find(".current_selected").removeClass("current_selected"),x(this).addClass("current_selected"),e.preventDefault(),x(this).data("templatename")),s=x(this).data("templatetype"),e=x(this).data("input"),t=(x('input[name="'+e+'[name]"]').val(i),x('input[name="'+e+'[type]"]').val(s),x(n).find(".fc_tools").css("display","none"),x(n).find(".fc_name").css("display","none"),x(n).find(".current_selected").parent().parent().find(".fc_name").css("display","block"),x(n).find(".current_selected").closest(".fc_tools").css("display","block"),x(n).find(".current-temp-in-use").removeClass("current-temp-in-use"),x(n).find(".current_selected").addClass("current-temp-in-use"),x(n).find(".fc_preview").html('<div class="fc_loading"></div>'),{action:"core_templates",operation:"fc_load_template",nonce:settings_obj.nonce,template_name:i,template_type:s,columns:x(n).parent().find(".fc_customizer").find(".fc-grid-active").data("col")});x(this).hasClass("current-saved")&&(t.template_source=x('input[name="'+e+'[sourcecode]"]').val()),jQuery.ajax({type:"POST",url:settings_obj.urlforajax,dataType:"json",data:t,beforeSend:function(){x(n).append('<div class="fc_loading"></div>'),x(".fc-btn-submit").attr("disabled","disabled"),x(".fc-btn-submit").prop("disabled",!0)},complete:function(){x(".fc_loading").remove(),x(".fc-btn-submit").removeAttr("disabled"),x(".fc-btn-submit").prop("disabled",!1)},success:function(e){x(n).parent().find(".fc_customizer").show(),x(n).parent().find(".fc_source_code_container").show(),x(n).parent().find(".fc_preview").html(e.html);var t=settings_obj.text_editable;0<t.length&&x.each(t,function(e,t){x(n).parent().find(t).addClass("editable").data("editor","text"),x(n).parent().find(t).data("temp-type",s+"-"+i)}),0<(t=settings_obj.bg_editable).length&&x.each(t,function(e,t){x(n).parent().find(t).addClass("editable").data("editor","bg"),x(n).parent().find(t).data("temp-type",s+"-"+i)}),0<(t=settings_obj.margin_editable).length&&x.each(t,function(e,t){x(n).parent().find(t).addClass("editable").data("editor","margin"),x(n).parent().find(t).data("temp-type",s+"-"+i)}),0<(t=settings_obj.full_editable).length&&x.each(t,function(e,t){x(n).parent().find(t).addClass("editable").data("editor","full"),x(n).parent().find(t).data("temp-type",s+"-"+i)}),r.codemirror.setValue(e.sourcecode),setTimeout(function(){r.codemirror.refresh()},50)}})}),0<x(".current-temp-in-use").length&&x(".fc_apply_changes").trigger("click"),x(".current-temp-in-use").length&&(x(".current-temp-in-use").parent().parent().find(".fc_name").css("display","block"),x(".current-temp-in-use").closest(".fc_tools").css("display","block")),x(".fc_templates").slick({slidesToShow:1,infinite:!0,speed:300,centerMode:!0,variableWidth:!0}),x(".fc_preview").on("click","a",function(e){e.preventDefault()}),setTimeout(function(){x(".current-saved").length&&x(" .current-saved.set-default-template").trigger("click")},3e3),x(".fc_preview").on("hover",".editable",function(e){x(".fc-edit-mode").is(":checked")&&e.target===e.currentTarget&&(x(this).attr("class"),x(this).addClass("fc-show-editable"))}),x(".fc_preview").on("click",".editable",function(e){var t,n,i,s,o,a,r,l,c,h,u,d,p,f,g,m,v,b=x(this).closest(".fc_preview").parent().parent().parent();x(b).find(".fc_tool_fgc").iris("hide"),x(b).find(".fc_tool_bgc").iris("hide"),e.target===e.currentTarget&&(x(this).data("editor"),x(".fc-bg-control").show(),x(".fc-forground-control").show(),x(".fc-margin-control").show(),x(b).find(".active_element").removeClass("active_element"),x(this).addClass("fc_inline"),e=x(b).position(),x(b).outerWidth(),t=x(this).position(),x(this).outerWidth(),e.left,x(this).removeClass("fc_inline"),e=x(this).css("font-weight"),n=x(this).css("font-size").replace(/[^-\d\.]/g,""),i=x(this).css("color").replace(")",", 0)").replace("rgb","rgba"),s=x(this).css("line-height").replace(/[^-\d\.]/g,""),o=x(this).css("background-color"),a=x(this).css("background"),r=x(this).css("font-style"),l=x(this).css("text-decoration-line"),0<=(v=0<=(v=x(this).css("font-family")).indexOf(",")?(v=v.split(","))[0]:v).indexOf('"')&&(v=(v=v.replace('"',"")).replace('"',"")),WebFont.load({google:{families:[v]}}),x(".fc-forground-control .fc-font-family select").val(v),v=x(this).css("text-align"),c=x(this).css("margin-top").replace(/[^-\d\.]/g,""),h=x(this).css("margin-bottom").replace(/[^-\d\.]/g,""),u=x(this).css("margin-left").replace(/[^-\d\.]/g,""),d=x(this).css("margin-right").replace(/[^-\d\.]/g,""),p=x(this).css("padding-top").replace(/[^-\d\.]/g,""),f=x(this).css("padding-bottom").replace(/[^-\d\.]/g,""),g=x(this).css("padding-left").replace(/[^-\d\.]/g,""),m=x(this).css("padding-right").replace(/[^-\d\.]/g,""),x(".fc-forground-control .fc_tool_text_align_"+v).addClass("fc-tool-active"),x(b).find(".fc_margin_top").val(c),x(b).find(".fc_margin_bottom").val(h),x(b).find(".fc_margin_left").val(u),x(b).find(".fc_margin_right").val(d),x(b).find(".fc_padding_top").val(p),x(b).find(".fc_padding_bottom").val(f),x(b).find(".fc_padding_left").val(g),x(b).find(".fc_padding_right").val(m),x(".fc-bg-control .fc_tool_bgc").val(o),x(".fc-bg-control .fc_tool_bgc").trigger("change"),x(".fc-forground-control .fc_tool_fgc").val(i),x(".fc-forground-control .fc_tool_fgc").trigger("change"),"bold"==e||"700"==e?x(b).find(".fc_tool_text_bold").addClass("fc-tool-active"):x(b).find(".fc_tool_text_bold").removeClass("fc-tool-active"),console.log(l),"underline"==l?x(b).find(".fc_tool_text_underline").addClass("fc-tool-active"):x(b).find(".fc_tool_text_underline").removeClass("fc-tool-active"),"italic"==r?x(b).find(".fc_tool_text_italic").addClass("fc-tool-active"):x(b).find(".fc_tool_text_italic").removeClass("fc-tool-active"),"none"==a&&x(b).find(".fc_tool_bg_transparent").attr("checked","checked"),x(b).find(".fc_tool_text_lineheight").val(s),x(b).find(".fc_tool_font_size").val(n),t.left,x(b).parent().find(".fc_customizer .fc_apply_style").addClass("show_customizer"),v=x(this).attr("class"),x("editable"!=v?'*[class*="'+v+'"]':this).addClass("active_element"))}),x(".fc_preview").on("mouseout",".editable",function(e){e.target===e.currentTarget&&(x(this).attr("class"),x(this).removeClass("fc-show-editable"))}),x(".fc_tool_text_bold").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("font-weight","inherit")):(x(this).addClass("fc-tool-active"),x(".active_element").css("font-weight","bold"))}),x(".fc_tool_text_align_left").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-align","inherit")):(x(this).parent().find("a").removeClass("fc-tool-active"),x(this).addClass("fc-tool-active"),x(".active_element").css("text-align","left"))}),x(".fc_tool_text_align_right").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-align","inherit")):(x(this).parent().find("a").removeClass("fc-tool-active"),x(this).addClass("fc-tool-active"),x(".active_element").css("text-align","right"))}),x(".fc_tool_text_align_center").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-align","inherit")):(x(this).parent().find("a").removeClass("fc-tool-active"),x(this).addClass("fc-tool-active"),x(".active_element").css("text-align","center"))}),x(".fc-font-family select").change(function(){var e=x(this).val();WebFont.load({google:{families:[e]}}),x(".active_element").css("font-family",e)}),x(".fc_tool_text_align_justify").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-align","inherit")):(x(this).parent().find("a").removeClass("fc-tool-active"),x(this).addClass("fc-tool-active"),x(".active_element").css("text-align","justify"))}),x(".fc_apply_style").click(function(e){e.target===e.currentTarget&&(x(".fc_tool_fgc").iris("hide"),x(".fc_tool_bgc").iris("hide"))}),x(".fc-forground-control .fa-undo").click(function(){x(".active_element").css("color",""),x(".active_element").css("line-height",""),x(".active_element").css("font-size",""),x(".active_element").css("font-style",""),x(".active_element").css("font-weight",""),x(".active_element").css("text-decoration","")}),x(".fc-bg-control .fa-undo").click(function(){x(".active_element").css("background","")}),x(".fc_tool_text_italic").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("font-style","normal")):(x(this).addClass("fc-tool-active"),x(".active_element").css("font-style","italic"))}),x(".fc-forground-control .fc_tool_fgc").wpColorPicker({change:function(e,t){x(".active_element").css("color",x(this).val())}}),x(".fc-bg-control .fc_tool_bgc").wpColorPicker({change:function(e,t){x(".active_element").css("background-color",x(this).val())}}),x(".fc_tool_text_underline").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-decoration","none")):(x(this).addClass("fc-tool-active"),x(".active_element").css("text-decoration","underline"))}),jQuery(".fc-show-placeholder").on("click",function(e){var t=x(this).closest(".fc_supported_placeholder").parent().parent().parent();x(t).find(".fc-hidden-placeholder").toggle("show"),"Show Placeholder"===x.trim(x(this).val())?x(this).val("Hide Placeholder"):x(this).val("Show Placeholder")}),x(".fc-show-source").toggle(function(){var e=x(this).closest(".fc-bottom-bar").parent();x(e).find(".fc_source_code_container").show(),x(this).val("Hide Source")},function(){var e=x(this).closest(".fc-bottom-bar").parent();x(e).find(".fc_source_code_container").hide(),x(this).val("View Source")}),x(".fc_tool_text_lineheight").bind("keyup mouseup",function(){x(".active_element").css("line-height",x(this).val()+"px")}),x(".fc_tool_bg_repeat").change(function(){x(".active_element").css("background-repeat",x(this).val())}),x(".fc-texture").click(function(e){e.preventDefault(),x(".active_element").css({"background-image":"url('"+settings_obj.image_path+"/back-skin/"+x(this).data("image")+".png')","background-repeat":"repeat"})}),x(".fc_tool_font_size").bind("keyup mouseup",function(){x(".active_element").css("font-size",x(this).val()+"px")}),x(".fc_margin_top").bind("keyup mouseup",function(){x(".active_element").css("margin-top",x(this).val()+"px")}),x(".fc_margin_bottom").bind("keyup mouseup",function(){x(".active_element").css("margin-bottom",x(this).val()+"px")}),x(".fc_margin_left").bind("keyup mouseup",function(){x(".active_element").css("margin-left",x(this).val()+"px")}),x(".fc_margin_right").bind("keyup mouseup",function(){x(".active_element").css("margin-right",x(this).val()+"px")}),x(".fc_padding_top").bind("keyup mouseup",function(){x(".active_element").css("padding-top",x(this).val()+"px")}),x(".fc_padding_bottom").bind("keyup mouseup",function(){x(".active_element").css("padding-bottom",x(this).val()+"px")}),x(".fc_padding_left").bind("keyup mouseup",function(){x(".active_element").css("padding-left",x(this).val()+"px")}),x(".fc_padding_right").bind("keyup mouseup",function(){x(".active_element").css("padding-right",x(this).val()+"px")}),x(".fc-show-grid").click(function(){var e=x(this).closest(".fc-bottom-bar").parent().parent(),t=(x(e).find(".fc_preview .fc-component-block .fc-component-content").not(":first").remove(),x(e).find(".fc-grid-active").removeClass("fc-grid-active"),x(this).data("col")),n=x(e).find(".fc_preview .fc-component-block .fc-component-content").clone(!0).off();for(c=1;c<t;c++)x(e).find(".fc_preview .fc-component-block").append(n.clone());x(this).addClass("fc-grid-active")}),x(".fc-reset-design").toggle(function(){var e=x(this).closest(".fc_customizer").parent().find(".fc_templates"),t=x(e).find(".current-temp-in-use").data("templatename"),e="fc-"+x(e).find(".current-temp-in-use").data("templatetype")+"-"+t;x("."+e).addClass("fc-temp-undo").removeClass(e),x(this).removeClass("fa-arrow-circle-left").addClass("fa-arrow-circle-right"),x(this).parent().find(".fc-tooltiptext").text("View Customized")},function(){var e=x(this).closest(".fc_customizer").parent().find(".fc_templates"),t=x(e).find(".current-temp-in-use").data("templatename"),e="fc-"+x(e).find(".current-temp-in-use").data("templatetype")+"-"+t;x(".fc-temp-undo").addClass(e).removeClass("fc-temp-undo"),x(this).removeClass("fa-arrow-circle-right").addClass("fa-arrow-circle-left"),x(this).parent().find(".fc-tooltiptext").text("View Original")}),x(".fc-check-responsive .fa-mobile").click(function(){var e=x(this).closest(".fc-bottom-bar").parent();x(e).find(".fc_preview .fc-component-block").addClass("fc-mobile-view")}),x(".fc-check-responsive .fa-desktop").click(function(){var e=x(this).closest(".fc-bottom-bar").parent();x(e).find(".fc_preview .fc-component-block").removeClass("fc-mobile-view")}),x(".fc_view_source").click(function(){x(".fc_customizer .fc_apply_style").removeClass("show_customizer"),x(".fc_tool_fgc").iris("hide"),x(".fc_tool_bgc").iris("hide"),x(".active_element").removeClass("active_element")}),x(document).keyup(function(e){27==e.keyCode&&(x(".fc_customizer .fc_apply_style").removeClass("show_customizer"),x(".fc_tool_fgc").iris("hide"),x(".fc_tool_bgc").iris("hide"),x(".active_element").removeClass("active_element"))}),x(".wpgmp-overview form").submit(function(){var w={},C=0,n=(x(".editable").each(function(e){var t,n,i,s,o,a,r,l,c,h,u,d,p,f,g,m,v,b={},y=x(this),S=x(this).data("temp-type"),_=(b[S]={},x(y).removeClass("editable"),x(y).removeClass("active_element"),x(y).attr("class").split(" "));_&&_.length&&(x.each(_,function(e,t){0<=t.indexOf("{")&&delete _[e]}),_=_.join("."),t=x(y).css("font-weight"),n=x(y).css("font-size"),i=x(y).css("color"),s=x(y).css("font-family"),o=x(y).css("text-align"),a=x(y).css("line-height"),r=x(y).css("background-color"),l=x(y).css("font-style"),c=x(y).css("text-decoration"),h=x(y).css("background-image"),u=x(y).css("margin-top"),d=x(y).css("margin-bottom"),p=x(y).css("margin-left"),f=x(y).css("margin-right"),g=x(y).css("padding-top"),m=x(y).css("padding-bottom"),v=x(y).css("padding-left"),y=x(y).css("padding-right"),b[S][_]="background-image:"+h+";font-family:"+s+";font-weight:"+t+";font-size:"+n+";color:"+i+";line-height:"+a+";background-color:"+r+";font-style:"+l+";text-align:"+o+";text-decoration:"+c+";margin-top:"+u+";margin-bottom:"+d+";margin-left:"+p+";margin-right:"+f+";padding-top:"+g+";padding-bottom:"+m+";padding-left:"+v+";padding-right:"+y+";",w[C]=b,C++)}),x("#fc_custom_styles").val(JSON.stringify(w)),r.codemirror.getValue());return x(".fc_view_source").each(function(e,t){x(t).closest(".fc_customizer").parent().find(".custom_sourcecode").val(n)}),setTimeout(function(){r.codemirror.refresh()},1),!0})),0<x(".fc-footer").length&&!x("body").hasClass("wp-maps_page_wpgmp_form_group_map")&&!x("body").hasClass("wp-maps_page_wpgmp_manage_settings")&&x(window).scroll(function(){var e;800<x(".flippercode-ui-height").height()&&(0<x(".fc-no-sticky").length||(e=x(window).scrollTop(),x(window).height(),0<=e&&x(".fc-footer").addClass("fc-fixed-footer"),x(window).scrollTop()+x(window).height()>x(document).height()-30&&x(".fc-fixed-footer").removeClass("fc-fixed-footer")))}),jQuery(".fc_select2").length,x(".fc-main").find('[data-toggle="tab"]').click(function(e){e.preventDefault();e=x(this).attr("href");x(".fc-tabs-container .fc-tabs-content").hide(),x(e).show(),x(".fc-tabs .active").removeClass("active"),x(this).parent().addClass("active")})}),function(n){for(var i=new Array,e=function(e,t){if(document.querySelectorAll)t=document.querySelectorAll(e);else{var n=document,i=n.styleSheets[0]||n.createStyleSheet();i.addRule(e,"f:b");for(var s=n.all,o=0,a=[],r=s.length;o<r;o++)s[o].currentStyle.f&&a.push(s[o]);i.removeRule(0),t=a}return t}("img.lazy"),t=function(){for(var e,t=0;t<i.length;t++)0<=(e=(e=i[t]).getBoundingClientRect()).top&&0<=e.left&&e.top<=(n.innerHeight||document.documentElement.clientHeight)&&function(e,t){var n=new Image,i=e.getAttribute("data-src");n.onload=function(){e.parent?e.parent.replaceChild(n,e):e.src=i,t&&t()},n.src=i}(i[t],function(){i.splice(t,t)})},s=0;s<e.length;s++)i.push(e[s]);t(),function(e,t){n.addEventListener?this.addEventListener(e,t,!1):n.attachEvent?this.attachEvent("on"+e,t):this["on"+e]=t}("scroll",t)}(this),function(s){void 0===s.fn.each2&&s.extend(s.fn,{each2:function(e){for(var t=s([0]),n=-1,i=this.length;++n<i&&(t.context=t[0]=this[n])&&!1!==e.call(t[0],n,t););return this}})}(jQuery),function(v,b){var e,t,n,y,s,r,m,c,i,o,a;function l(e){var t=v(document.createTextNode(""));e.before(t),t.before(e),t.remove()}function h(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return i[e]||e})}function u(e,t){for(var n=0,i=t.length;n<i;n+=1)if(d(e,t[n]))return n;return-1}function d(e,t){return e===t||e!==b&&t!==b&&null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+"")}function p(e,t,n){var i,s,o;if(null===e||e.length<1)return[];for(s=0,o=(i=e.split(t)).length;s<o;s+=1)i[s]=n(i[s]);return i}function f(e){return e.outerWidth(!1)-e.width()}function g(t){var n="keyup-change-value";t.on("keydown",function(){v.data(t,n)===b&&v.data(t,n,t.val())}),t.on("keyup",function(){var e=v.data(t,n);e!==b&&t.val()!==e&&(v.removeData(t,n),t.trigger("keyup-change"))})}function S(t,n,i){var s;return i=i||b,function(){var e=arguments;window.clearTimeout(s),s=window.setTimeout(function(){n.apply(i,e)},t)}}function _(e){e.preventDefault(),e.stopPropagation()}function w(e,t,n){var i,s=[],o=v.trim(e.attr("class"));o&&v((o=""+o).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&s.push(this)}),(o=v.trim(t.attr("class")))&&v((o=""+o).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(i=n(this))&&s.push(i)}),e.attr("class",s.join(" "))}function C(e,t,n,i){var s=h(e.toUpperCase()).indexOf(h(t.toUpperCase())),t=t.length;s<0?n.push(i(e)):(n.push(i(e.substring(0,s))),n.push("<span class='select2-match'>"),n.push(i(e.substring(s,s+t))),n.push("</span>"),n.push(i(e.substring(s+t,e.length))))}function x(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function T(o){var e,a=null,t=o.quietMillis||100,r=o.url,l=this;return function(s){window.clearTimeout(e),e=window.setTimeout(function(){var e=o.data,t=r,n=o.transport||v.fn.select2.ajaxDefaults.transport,i={type:o.type||"GET",cache:o.cache||!1,jsonpCallback:o.jsonpCallback||b,dataType:o.dataType||"json"},i=v.extend({},v.fn.select2.ajaxDefaults.params,i),e=e?e.call(l,s.term,s.page,s.context):null,t="function"==typeof t?t.call(l,s.term,s.page,s.context):t;a&&"function"==typeof a.abort&&a.abort(),o.params&&(v.isFunction(o.params)?v.extend(i,o.params.call(l)):v.extend(i,o.params)),v.extend(i,{url:t,dataType:o.dataType,data:e,success:function(e){e=o.results(e,s.page,s);s.callback(e)},error:function(e,t,n){s.callback({hasError:!0,jqXHR:e,textStatus:t,errorThrown:n})}}),a=n.call(l,i)},t)}}function k(e){var t,n,i=e,r=function(e){return""+e.text},e=(v.isArray(i)&&(i={results:n=i}),!1===v.isFunction(i)&&(n=i,i=function(){return n}),i());return e.text&&(r=e.text,v.isFunction(r)||(t=e.text,r=function(e){return e[t]})),function(s){var o,a=s.term,n={results:[]};""===a?s.callback(i()):(o=function(e,t){var n,i;if((e=e[0]).children){for(i in n={},e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.children=[],v(e.children).each2(function(e,t){o(t,n.children)}),(n.children.length||s.matcher(a,r(n),e))&&t.push(n)}else s.matcher(a,r(e),e)&&t.push(e)},v(i().results).each2(function(e,t){o(t,n.results)}),s.callback(n))}}function D(t){var o=v.isFunction(t);return function(n){var i=n.term,s={results:[]},e=o?t(n):t;v.isArray(e)&&(v(e).each(function(){var e=this.text!==b,t=e?this.text:this;""!==i&&!n.matcher(i,t)||s.results.push(e?this:{id:this,text:this})}),n.callback(s))}}function I(e,t){if(v.isFunction(e))return 1;if(e){if("string"==typeof e)return 1;throw new Error(t+" must be a string, function, or falsy value")}}function A(e,t){var n;return v.isFunction(e)?(n=Array.prototype.slice.call(arguments,2),e.apply(t,n)):e}function M(){var n=this;v.each(arguments,function(e,t){n[t].remove(),n[t]=null})}function P(e,t){function n(){}return((n.prototype=new e).constructor=n).prototype.parent=e.prototype,n.prototype=v.extend(n.prototype,t),n}window.Select2===b&&(r={x:0,y:0},c={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which||e){case c.LEFT:case c.RIGHT:case c.UP:case c.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case c.SHIFT:case c.CTRL:case c.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return 112<=(e=e.which||e)&&e<=123}},i={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},a=v(document),o=1,y=function(){return o++},e=P(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(e){var o,t,n,i,s=".select2-results",a=(this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==b&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=v(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=v("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+y()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",e.element.attr("title")),this.body=v(document.body),w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(A(e.containerCss,this.opts.element)),this.container.addClass(A(e.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",_),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(e.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=o=this.container.find(s),this.search=t=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",_),this.results.on("mousemove",function(e){var t=r;t!==b&&t.x===e.pageX&&t.y===e.pageY||v(e.target).trigger("mousemove-filtered",e)}),this.dropdown.on("mousemove-filtered",s,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",s,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",s,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",s,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),a=80,n=this.results,i=S(a,function(e){n.trigger("scroll-debounced",e)}),n.on("scroll",function(e){0<=u(e.target,n.get())&&i(e)}),this.dropdown.on("scroll-debounced",s,this.bind(this.loadMoreIfNeeded)),v(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),v(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),v.fn.mousewheel&&o.mousewheel(function(e,t,n,i){var s=o.scrollTop();0<i&&s-i<=0?(o.scrollTop(0),_(e)):i<0&&o.get(0).scrollHeight-o.scrollTop()+i<=o.height()&&(o.scrollTop(o.get(0).scrollHeight-o.height()),_(e))}),g(t),t.on("keyup-change input paste",this.bind(this.updateResults)),t.on("focus",function(){t.addClass("select2-focused")}),t.on("blur",function(){t.removeClass("select2-focused")}),this.dropdown.on("mouseup",s,this.bind(function(e){0<v(e.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=b,v.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength),e.element.prop("disabled")),s=(this.enable(!(a=a===b?!1:a)),e.element.prop("readonly"));this.readonly(s=s===b?!1:s),m=m||((a=v("<div class='select2-measure-scrollbar'></div>")).appendTo(document.body),s={width:a.width()-a[0].clientWidth,height:a.height()-a[0].clientHeight},a.remove(),s),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",e.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,t=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,t!==b&&(t.container.remove(),t.liveRegion.remove(),t.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),M.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:d(e.attr("locked"),"locked")||d(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(g){var e,t,n,m=this,a=g.element;if("select"===a.get(0).tagName.toLowerCase()&&(this.select=e=g.element),e&&v.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in g)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),g.debug=g.debug||v.fn.select2.defaults.debug,g.debug&&console&&console.warn&&(null!=g.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=g.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=g.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=g.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=g.ajax&&null!=g.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=g.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=g.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=g.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=g.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=g.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=g.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),g.element.data("select2Tags"))&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0."),null!=g.element.data("tags")&&(n=g.element.data("tags"),v.isArray(n)||(n=[]),g.element.data("select2Tags",n)),null!=g.sorter&&(g.sortResults=g.sorter),null!=g.selectOnClose&&(g.selectOnBlur=g.selectOnClose),null!=g.ajax&&v.isFunction(g.ajax.processResults)&&(g.ajax.results=g.ajax.processResults),null!=g.language&&(n=g.language,v.isFunction(n.noMatches)&&(g.formatNoMatches=n.noMatches),v.isFunction(n.searching)&&(g.formatSearching=n.searching),v.isFunction(n.inputTooShort)&&(g.formatInputTooShort=n.inputTooShort),v.isFunction(n.inputTooLong)&&(g.formatInputTooLong=n.inputTooLong),v.isFunction(n.loadingMore)&&(g.formatLoading=n.loadingMore),v.isFunction(n.maximumSelected))&&(g.formatSelectionTooBig=n.maximumSelected),"function"!=typeof(g=v.extend({},{populateResults:function(e,t,u){var d=this.opts.id,p=this.liveRegion,f=function(e,t,n){for(var i,s,o,a,r,l=[],c=0,h=(e=g.sortResults(e,t,u)).length;c<h;c+=1)a=!(r=!0===(i=e[c]).disabled)&&d(i)!==b,s=i.children&&0<i.children.length,(o=v("<li></li>")).addClass("select2-results-dept-"+n),o.addClass("select2-result"),o.addClass(a?"select2-result-selectable":"select2-result-unselectable"),r&&o.addClass("select2-disabled"),s&&o.addClass("select2-result-with-children"),o.addClass(m.opts.formatResultCssClass(i)),o.attr("role","presentation"),(a=v(document.createElement("div"))).addClass("select2-result-label"),a.attr("id","select2-result-label-"+y()),a.attr("role","option"),(r=g.formatResult(i,a,u,m.opts.escapeMarkup))!==b&&(a.html(r),o.append(a)),s&&((r=v("<ul></ul>")).addClass("select2-result-sub"),f(i.children,r,n+1),o.append(r)),o.data("select2-data",i),l.push(o[0]);t.append(l),p.text(g.formatMatches(e.length))};f(t,e,0)}},v.fn.select2.defaults,g)).id&&(t=g.id,g.id=function(e){return e[t]}),v.isArray(g.element.data("select2Tags"))){if("tags"in g)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+g.element.attr("id");g.tags=g.element.data("select2Tags")}if(e?(g.query=this.bind(function(i){var e,n={results:[],more:!1},s=i.term,o=function(e,t){var n;e.is("option")?i.matcher(s,e.text(),e)&&t.push(m.optionToData(e)):e.is("optgroup")&&(n=m.optionToData(e),e.children().each2(function(e,t){o(t,n.children)}),0<n.children.length)&&t.push(n)},t=a.children();(t=this.getPlaceholder()!==b&&0<t.length&&(e=this.getPlaceholderOption())?t.not(e):t).each2(function(e,t){o(t,n.results)}),i.callback(n)}),g.id=function(e){return e.id}):"query"in g||("ajax"in g?((n=g.element.data("ajax-url"))&&0<n.length&&(g.ajax.url=n),g.query=T.call(g.element,g.ajax)):"data"in g?g.query=k(g.data):"tags"in g&&(g.query=D(g.tags),g.createSearchChoice===b&&(g.createSearchChoice=function(e){return{id:v.trim(e),text:v.trim(e)}}),g.initSelection===b)&&(g.initSelection=function(e,t){var n=[];v(p(e.val(),g.separator,g.transformVal)).each(function(){var e={id:this,text:this},t=g.tags;v.isFunction(t)&&(t=t()),v(t).each(function(){if(d(this.id,e.id))return e=this,!1}),n.push(e)}),t(n)})),"function"!=typeof g.query)throw"query function not defined for Select2 "+g.element.attr("id");if("top"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof g.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return g},monitorSource:function(){var e,t=this.opts.element,n=this;t.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=t.prop("disabled"),e=(this.enable(!(e=e===b?!1:e)),t.prop("readonly"));this.readonly(e=e===b?!1:e),this.container&&(w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(A(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(this.opts.dropdownCssClass,this.opts.element)))}),t.length&&t[0].attachEvent&&t.each(function(){this.attachEvent("onpropertychange",n._sync)}),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==b&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e(function(e){v.each(e,n._sync)}),this.propertyObserver.observe(t.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){e=v.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(e){e=v.extend({},e=e||{},{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){this._enabled!==(e=e===b||e)&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){this._readonly!==(e=e!==b&&e)&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,t,n=this.dropdown,i=this.container,s=i.offset(),o=i.outerHeight(!1),a=i.outerWidth(!1),r=n.outerHeight(!1),l=v(window),c=l.width(),h=l.height(),u=l.scrollLeft()+c,h=l.scrollTop()+h,d=s.top+o,p=s.left,h=d+r<=h,f=s.top-r>=l.scrollTop(),g=n.outerWidth(!1);n.hasClass("select2-drop-above")?(e=!0,!f&&h&&(e=!(t=!0))):(e=!1,!h&&f&&(e=t=!0)),t&&(n.hide(),s=this.container.offset(),o=this.container.outerHeight(!1),a=this.container.outerWidth(!1),r=n.outerHeight(!1),u=l.scrollLeft()+c,l.scrollTop(),d=s.top+o,p=s.left,g=n.outerWidth(!1),n.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(h=v(".select2-results",n)[0],n.addClass("select2-drop-auto-width"),n.css("width",""),a<(g=n.outerWidth(!1)+(h.scrollHeight===h.clientHeight?0:m.width))?a=g:g=a,r=n.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(d-=(f=this.body.offset()).top,p-=f.left),t={left:p=!(p+g<=u)&&s.left+u+i.outerWidth(!1)>g?s.left+this.container.outerWidth(!1)-g:p,width:a},e?(this.container.addClass("select2-drop-above"),n.addClass("select2-drop-above"),r=n.outerHeight(!1),t.top=s.top-r,t.bottom="auto"):(t.top=d,t.bottom="auto",this.container.removeClass("select2-drop-above"),n.removeClass("select2-drop-above")),t=v.extend(t,A(this.opts.dropdownCss,this.opts.element)),n.css(t)},shouldOpen:function(){var e;return!this.opened()&&!1!==this._enabled&&!0!==this._readonly&&(e=v.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),a.on("mousemove.select2Event",function(e){r.x=e.pageX,r.y=e.pageY}),!0)},opening:function(){var n,e=this.containerEventName,t="scroll."+e,i="resize."+e,s="orientationchange."+e,o=(this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(n=v("#select2-drop-mask")).length&&((n=v(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),n.hide(),n.appendTo(this.body),n.on("mousedown touchstart click",function(e){l(n);var t=v("#select2-drop");0<t.length&&((t=t.data("select2")).opts.selectOnBlur&&t.selectHighlighted({noFocus:!0}),t.close(),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==n[0]&&this.dropdown.before(n),v("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),n.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active"),this);this.container.parents().add(window).each(function(){v(this).on(i+" "+t+" "+s,function(e){o.opened()&&o.positionDropdown()})})},close:function(){var e,t,n,i;this.opened()&&(e=this.containerEventName,t="scroll."+e,n="resize."+e,i="orientationchange."+e,this.container.parents().add(window).each(function(){v(this).off(t).off(n).off(i)}),this.clearDropdownAlignmentPreference(),v("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),a.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(v.Event("select2-close")))},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){var e;return""===this.search.val()&&(e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm))!==b&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return A(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,t,n,i,s=this.results,o=this.highlight();o<0||(0==o?s.scrollTop(0):(n=this.findHighlightableChoices().find(".select2-result-label"),t=(i=((e=v(n[o])).offset()||{}).top||0)+e.outerHeight(!0),o===n.length-1&&0<(o=s.find("li.select2-more-results")).length&&(t=o.offset().top+o.outerHeight(!0)),(n=s.offset().top+s.outerHeight(!1))<t&&s.scrollTop(s.scrollTop()+(t-n)),(o=i-s.offset().top)<0&&"none"!=e.css("display")&&s.scrollTop(s.scrollTop()+o)))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var t=this.findHighlightableChoices(),n=this.highlight();-1<n&&n<t.length;){var i=v(t[n+=e]);if(i.hasClass("select2-result-selectable")&&!i.hasClass("select2-disabled")&&!i.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var t=this.findHighlightableChoices();if(0===arguments.length)return u(t.filter(".select2-highlighted")[0],t.get());(e=e>=t.length?t.length-1:e)<0&&(e=0),this.removeHighlight(),(t=v(t[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",t.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(t.text()),(e=t.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(e),choice:e})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var t,e=v(e.target).closest(".select2-result-selectable");0<e.length&&!e.is(".select2-highlighted")?(t=this.findHighlightableChoices(),this.highlight(t.index(e))):0==e.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,n=t.find("li.select2-more-results"),i=this.resultsPage+1,s=this,o=this.search.val(),a=this.context;0!==n.length&&n.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(n.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(e){s.opened()&&(s.opts.populateResults.call(this,t,e.results,{term:o,page:i,context:a}),s.postprocessResults(e,!1,!1),!0===e.more?(n.detach().appendTo(t).html(s.opts.escapeMarkup(A(s.opts.formatLoadMore,s.opts.element,i+1))),window.setTimeout(function(){s.loadMoreIfNeeded()},10)):n.remove(),s.positionDropdown(),s.resultsPage=i,s.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})}))},tokenize:function(){},updateResults:function(n){var i,s=this.search,o=this.results,a=this.opts,r=this,e=s.val(),t=v.data(this.container,"select2-last-term");function l(){s.removeClass("select2-active"),r.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?r.liveRegion.text(o.text()):r.liveRegion.text(r.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function c(e){o.html(e),l()}!0!==n&&t&&d(e,t)||(v.data(this.container,"select2-last-term",e),(!0===n||!1!==this.showSearchInput&&this.opened())&&(i=++this.queryCount,1<=(t=this.getMaximumSelectionSize())&&(e=this.data(),v.isArray(e))&&e.length>=t&&I(a.formatSelectionTooBig,"formatSelectionTooBig")?c("<li class='select2-selection-limit'>"+A(a.formatSelectionTooBig,a.element,t)+"</li>"):s.val().length<a.minimumInputLength?(I(a.formatInputTooShort,"formatInputTooShort")?c("<li class='select2-no-results'>"+A(a.formatInputTooShort,a.element,s.val(),a.minimumInputLength)+"</li>"):c(""),n&&this.showSearch&&this.showSearch(!0)):a.maximumInputLength&&s.val().length>a.maximumInputLength?I(a.formatInputTooLong,"formatInputTooLong")?c("<li class='select2-no-results'>"+A(a.formatInputTooLong,a.element,s.val(),a.maximumInputLength)+"</li>"):c(""):(a.formatSearching&&0===this.findHighlightableChoices().length&&c("<li class='select2-searching'>"+A(a.formatSearching,a.element)+"</li>"),s.addClass("select2-active"),this.removeHighlight(),(e=this.tokenize())!=b&&null!=e&&s.val(e),this.resultsPage=1,a.query({element:a.element,term:s.val(),page:this.resultsPage,context:null,matcher:a.matcher,callback:this.bind(function(e){var t;i==this.queryCount&&(this.opened()?e.hasError!==b&&I(a.formatAjaxError,"formatAjaxError")?c("<li class='select2-ajax-error'>"+A(a.formatAjaxError,a.element,e.jqXHR,e.textStatus,e.errorThrown)+"</li>"):(this.context=e.context===b?null:e.context,this.opts.createSearchChoice&&""!==s.val()&&(t=this.opts.createSearchChoice.call(r,s.val(),e.results))!==b&&null!==t&&r.id(t)!==b&&null!==r.id(t)&&0===v(e.results).filter(function(){return d(r.id(this),r.id(t))}).length&&this.opts.createSearchChoicePosition(e.results,t),0===e.results.length&&I(a.formatNoMatches,"formatNoMatches")?(c("<li class='select2-no-results'>"+A(a.formatNoMatches,a.element,s.val())+"</li>"),this.showSearch&&this.showSearch(s.val())):(o.empty(),r.opts.populateResults.call(this,o,e.results,{term:s.val(),page:this.resultsPage,context:null}),!0===e.more&&I(a.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+a.escapeMarkup(A(a.formatLoadMore,a.element,this.resultsPage))+"</li>"),window.setTimeout(function(){r.loadMoreIfNeeded()},10)),this.postprocessResults(e,n),l(),this.opts.element.trigger({type:"select2-loaded",items:e}))):this.search.removeClass("select2-active"))})}))))},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var n;(n=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e=n[0],t=n.val().length;n.focus(),(0<e.offsetWidth||0<e.offsetHeight)&&e===document.activeElement&&(e.setSelectionRange?e.setSelectionRange(t,t):e.createTextRange&&((t=e.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){var t,n;this._touchMoved?this.clearTouchMoved():(t=this.highlight(),(n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data"))?(this.highlight(t),this.onSelect(n,e)):e&&e.noFocus&&this.close())},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==b?e.text():b)},getPlaceholderOption:function(){var e;if(this.select)return e=this.select.children("option").first(),this.opts.placeholderOption!==b?"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select):""===v.trim(e.text())&&""===e.val()?e:void 0},initContainerWidth:function(){var e=function(){var e,t,n,i,s;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return v.isFunction(this.opts.width)?this.opts.width():this.opts.width;if("string"==typeof(e=this.opts.element.attr("style")))for(i=0,s=(t=e.split(";")).length;i<s;i+=1)if(null!==(n=t[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=n.length)return n[1];return"resolve"===this.opts.width?0<(e=this.opts.element.css("width")).indexOf("%")?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==e&&this.container.css("width",e)}}),t=P(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,t;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(e=this.search.get(0)).createTextRange?((t=e.createTextRange()).collapse(!1),t.select()):e.setSelectionRange&&(t=this.search.val().length,e.setSelectionRange(t,t))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this))&&this.focusser.focus()},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){v("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"selection","focusser")},initContainer:function(){var t,e=this.container,n=this.dropdown,i=y(),i=(this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+i),this.focusser.attr("aria-labelledby","select2-chosen-"+i),this.results.attr("id","select2-results-"+i),this.search.attr("aria-owns","select2-results-"+i),this.focusser.attr("id","s2id_autogen"+i),e=v("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(e.text()).attr("for",this.focusser.attr("id")),this.opts.element.attr("title"));this.opts.element.attr("title",i||e.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(v("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which===c.PAGE_UP||e.which===c.PAGE_DOWN)_(e);else switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void _(e);case c.ENTER:return this.selectHighlighted(),void _(e);case c.TAB:return void this.selectHighlighted({noFocus:!0});case c.ESC:return this.cancel(e),void _(e)}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&1<this.results.length&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.ESC){if(!1!==this.opts.openOnEnter||e.which!==c.ENTER)return e.which==c.DOWN||e.which==c.UP||e.which==c.ENTER&&this.opts.openOnEnter?e.altKey||e.ctrlKey||e.shiftKey||e.metaKey?void 0:(this.open(),void _(e)):void(e.which!=c.DELETE&&e.which!=c.BACKSPACE||(this.opts.allowClear&&this.clear(),_(e)));_(e)}})),g(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){0<=this.opts.minimumResultsForSearch&&(e.stopPropagation(),this.opened()||this.open())})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),(e=e).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection)&&this.selection.focus()})),t.on("mousedown touchstart",this.bind(function(e){l(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(e)})),n.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){_(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(v.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(e){var t,n=this.selection.data("select2-data");n&&(t=v.Event("select2-clearing"),this.opts.element.trigger(t),t.isDefaultPrevented()||(t=this.getPlaceholderOption(),this.opts.element.val(t?t.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}))))},initSelection:function(){var t;this.isPlaceholderOptionSelected()?(this.updateSelection(null),this.close(),this.setPlaceholder()):(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.setPlaceholder(),t.lastSearchTerm=t.search.val())})},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==b&&((e=this.getPlaceholderOption())!==b&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val())},prepareOpts:function(){var a=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===a.element.get(0).tagName.toLowerCase()?a.initSelection=function(e,t){e=e.find("option").filter(function(){return this.selected&&!this.disabled});t(n.optionToData(e))}:"data"in a&&(a.initSelection=a.initSelection||function(e,t){var s=e.val(),o=null;a.query({matcher:function(e,t,n){var i=d(s,a.id(n));return i&&(o=n),i},callback:v.isFunction(t)?function(){t(o)}:v.noop})}),a},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();!this.isPlaceholderOptionSelected()||e===b||this.select&&this.getPlaceholderOption()===b||(this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear"))},postprocessResults:function(e,t,n){var i=0,s=this;this.findHighlightableChoices().each2(function(e,t){if(d(s.id(t.data("select2-data")),s.opts.element.val()))return i=e,!1}),!1!==n&&(!0===t&&0<=i?this.highlight(i):this.highlight(0)),!0===t&&0<=(n=this.opts.minimumResultsForSearch)&&this.showSearch(function n(e){var i=0;return v.each(e,function(e,t){t.children?i+=n(t.children):i++}),i}(e.results)>=n)},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),v(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(e,t){var n,i;this.triggerSelect(e)&&(n=this.opts.element.val(),i=this.data(),this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),d(n,this.id(e))||this.triggerChange({added:e,removed:i}))},updateSelection:function(e){var t,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),n.empty(),(t=null!==e?this.opts.formatSelection(e,n,this.opts.escapeMarkup):t)!==b&&n.append(t),(t=this.opts.formatSelectionCssClass(e,n))!==b&&n.addClass(t),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,n=null,i=this,s=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],1<arguments.length&&(t=arguments[1],this.opts.debug)&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.'),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=i.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),t&&this.triggerChange({added:n,removed:s});else if(e||0===e){if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){i.opts.element.val(e?i.id(e):""),i.updateSelection(e),i.setPlaceholder(),t&&i.triggerChange({added:e,removed:s})})}else this.clear(t)},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,n=!1;if(0===arguments.length)return t=(t=this.selection.data("select2-data"))==b?null:t;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),1<arguments.length&&(n=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:t})):this.clear(n)}}),n=P(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var l=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===l.element.get(0).tagName.toLowerCase()?l.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in l&&(l.initSelection=l.initSelection||function(e,o){var a=p(e.val(),l.separator,l.transformVal),r=[];l.query({matcher:function(e,t,n){var i=v.grep(a,function(e){return d(e,l.id(n))}).length;return i&&r.push(n),i},callback:v.isFunction(o)?function(){for(var e=[],t=0;t<a.length;t++)for(var n=a[t],i=0;i<r.length;i++){var s=r[i];if(d(n,l.id(s))){e.push(s),r.splice(i,1);break}}o(e)}:v.noop})}),l},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){v("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"searchContainer","selection")},initContainer:function(){var l,e=".select2-choices",t=(this.searchContainer=this.container.find(".select2-search-field"),this.selection=l=this.container.find(e),this);this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(e){t.search[0].focus(),t.selectChoice(v(this))}),this.search.attr("id","s2id_autogen"+y()),this.search.prev().text(v("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||!this.isInterfaceEnabled()||this.opened()||this.open()})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var t,n,i,s=l.find(".select2-search-choice-focus"),o=s.prev(".select2-search-choice:not(.select2-locked)"),a=s.next(".select2-search-choice:not(.select2-locked)"),r=(r=this.search,n=t=0,"selectionStart"in(r=v(r)[0])?(t=r.selectionStart,n=r.selectionEnd-t):"selection"in document&&(r.focus(),i=document.selection.createRange(),n=document.selection.createRange().text.length,i.moveStart("character",-r.value.length),t=i.text.length-n),{offset:t,length:n});if(!s.length||e.which!=c.LEFT&&e.which!=c.RIGHT&&e.which!=c.BACKSPACE&&e.which!=c.DELETE&&e.which!=c.ENTER)if((e.which!==c.BACKSPACE||1!=this.keydowns)&&e.which!=c.LEFT||0!=r.offset||r.length){if(this.selectChoice(null),this.opened())switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void _(e);case c.ENTER:return this.selectHighlighted(),void _(e);case c.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case c.ESC:return this.cancel(e),void _(e)}if(e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.BACKSPACE&&e.which!==c.ESC){if(e.which===c.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==c.PAGE_UP&&e.which!==c.PAGE_DOWN||_(e),e.which===c.ENTER&&_(e)}}else this.selectChoice(l.find(".select2-search-choice:not(.select2-locked)").last()),_(e);else i=s,e.which==c.LEFT&&o.length?i=o:e.which==c.RIGHT?i=a.length?a:null:e.which===c.BACKSPACE?this.unselect(s.first())&&(this.search.width(10),i=o.length?o:a):e.which==c.DELETE?this.unselect(s.first())&&(this.search.width(10),i=a.length?a:null):e.which==c.ENTER&&(i=null),this.selectChoice(i),_(e),i&&i.length||this.open()}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(v.Event("select2-blur"))})),this.container.on("click",e,this.bind(function(e){!this.isInterfaceEnabled()||0<v(e.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault())})),this.container.on("focus",e,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){var t;""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),!this.select&&""===this.opts.element.val()||(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.clearSearch())})},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();e!==b&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(0<t?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var t={},n=[],i=this;v(e).each(function(){i.id(this)in t||(t[i.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),i.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=b&&(this.search.val(e),0<e.length)&&this.open()},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),!this.opts.closeOnSelect&&0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var t=this.getVal(),n=this;v(e).each(function(){t.push(n.createChoice(this))}),this.setVal(t)},createChoice:function(e){var t=!e.locked,n=v("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),i=v("<li class='select2-search-choice select2-locked'><div></div></li>"),n=t?n:i,i=this.id(e),s=this.opts.formatSelection(e,n.find("div"),this.opts.escapeMarkup);return s!=b&&n.find("div").replaceWith(v("<div></div>").html(s)),(s=this.opts.formatSelectionCssClass(e,n.find("div")))!=b&&n.addClass(s),t&&n.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(this.unselect(v(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),_(e),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),n.data("select2-data",e),n.insertBefore(this.searchContainer),i},unselect:function(e){var t,n,i=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(t=e.data("select2-data")){var s=v.Event("select2-removing");if(s.val=this.id(t),s.choice=t,this.opts.element.trigger(s),s.isDefaultPrevented())return!1;for(;0<=(n=u(this.id(t),i));)i.splice(n,1),this.setVal(i),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}),!0}},postprocessResults:function(e,t,n){var i=this.getVal(),s=this.results.find(".select2-result"),o=this.results.find(".select2-result-with-children"),a=this;s.each2(function(e,t){0<=u(a.id(t.data("select2-data")),i)&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),o.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==n&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&0<!s.filter(".select2-result:not(.select2-selected)").length&&(e&&(e.more||0!==this.results.find(".select2-no-results").length)||I(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+A(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>"))},getMaxSearchWidth:function(){return this.selection.width()-f(this.search)},resizeSearch:function(){var e,t,n,i=f(this.search);t=this.search,s||(n=t[0].currentStyle||window.getComputedStyle(t[0],null),(s=v(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:n.fontSize,fontFamily:n.fontFamily,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,textTransform:n.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),v(document.body).append(s)),s.text(t.val()),n=s.width()+10,t=this.search.offset().left,(t=(t=(t=(e=this.selection.width())-(t-this.selection.offset().left)-i)<n?e-i:t)<40?e-i:t)<=0&&(t=n),this.search.width(Math.floor(t))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:p(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(e){var t,n;this.select?this.select.val(e):(t=[],n={},v(e).each(function(){this in n||(t.push(this),n[this]=0)}),this.opts.element.val(0===t.length?"":t.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),n=0;n<t.length;n++)for(var i=0;i<e.length;i++)if(d(this.opts.id(t[n]),this.opts.id(e[i]))){t.splice(n,1),n--,e.splice(i,1);break}return{added:t,removed:e}},val:function(e,n){var i,s=this;if(0===arguments.length)return this.getVal();if((i=this.data()).length||(i=[]),e||0===e){if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(i,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var t=v.map(e,s.id);s.setVal(t),s.updateSelection(e),s.clearSearch(),n&&s.triggerChange(s.buildChangeDetails(i,s.data()))})}this.clearSearch()}else this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),n&&this.triggerChange({added:this.data(),removed:i})},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],t=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(t.opts.id(v(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,t){var n,i,s=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return v(this).data("select2-data")}).get();i=this.data(),n=v.map(e=e||[],function(e){return s.opts.id(e)}),this.setVal(n),this.updateSelection(e),this.clearSearch(),t&&this.triggerChange(this.buildChangeDetails(i,this.data()))}}),v.fn.select2=function(){var e,t,n,i,s=Array.prototype.slice.call(arguments,0),o=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],a=["opened","isFocused","container","dropdown"],r=["val","data"],l={search:"externalSearch"};return this.each(function(){if(0===s.length||"object"==typeof s[0])(t=0===s.length?{}:v.extend({},s[0])).element=v(this),"select"===t.element.get(0).tagName.toLowerCase()?i=t.element.prop("multiple"):(i=t.multiple||!1,"tags"in t&&(t.multiple=i=!0)),(e=new(i?window.Select2.class.multi:window.Select2.class.single)).init(t);else{if("string"!=typeof s[0])throw"Invalid arguments to select2 plugin: "+s;if(u(s[0],o)<0)throw"Unknown method: "+s[0];if(n=b,(e=v(this).data("select2"))!==b)return t=s[0],n="container"===t?e.container:"dropdown"===t?e.dropdown:e[t=l[t]?l[t]:t].apply(e,s.slice(1)),!(0<=u(s[0],a)||0<=u(s[0],r)&&1==s.length)&&void 0}}),n===b?this:n},v.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,n,i){var s=[];return C(this.text(e),n.term,s,i),s.join("")},transformVal:function(e){return v.trim(e)},formatSelection:function(e,t,n){return e?n(this.text(e)):b},sortResults:function(e,t,n){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,t){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==b?null:e.id},text:function(e){return e&&this.data&&this.data.text?v.isFunction(this.data.text)?this.data.text(e):e[this.data.text]:e.text},matcher:function(e,t){return 0<=h(""+t).toUpperCase().indexOf(h(""+e).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(e,t,n,i){var s,o,a,r,l,c=e,h=!1;if(!i.createSearchChoice||!i.tokenSeparators||i.tokenSeparators.length<1)return b;for(;;){for(o=-1,a=0,r=i.tokenSeparators.length;a<r&&(l=i.tokenSeparators[a],!(0<=(o=e.indexOf(l))));a++);if(o<0)break;if(s=e.substring(0,o),e=e.substring(o+l.length),0<s.length&&(s=i.createSearchChoice.call(this,s,t))!==b&&null!==s&&i.id(s)!==b&&null!==i.id(s)){for(h=!1,a=0,r=t.length;a<r;a++)if(d(i.id(s),i.id(t[a]))){h=!0;break}h||n(s)}}return c!==e?e:void 0},escapeMarkup:x,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!(("ontouchstart"in window||0<navigator.msMaxTouchPoints)&&e.opts.minimumResultsForSearch<0)}},v.fn.select2.locales=[],v.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,n){return"Loading failed"},formatInputTooShort:function(e,t){t-=e.length;return"Please enter "+t+" or more character"+(1==t?"":"s")},formatInputTooLong:function(e,t){e=e.length-t;return"Please delete "+e+" character"+(1==e?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},v.extend(v.fn.select2.defaults,v.fn.select2.locales.en),v.fn.select2.ajaxDefaults={transport:v.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:T,local:k,tags:D},util:{debounce:S,markMatch:C,escapeMarkup:x,stripDiacritics:h},class:{abstract:e,single:t,multi:n}})}(jQuery),jQuery(document).ready(function(s){0<s(".toplevel_page_wpgmp_view_overview ul li a").find(".fc-fire-sale").length&&s(".toplevel_page_wpgmp_view_overview ul li a").find(".fc-fire-sale").parent("a").attr("target","_blank");let n=[];if(s(".wp-list-table").find(":checkbox").change(function(){let e=[],t=s(".wp-list-table").find(":checkbox").not("#cb-select-all-1");t.each(function(){s(this).is(":checked")&&e.push(this.value)}),n=e}),s(document).on("click","#doaction",function(e){if(e.preventDefault(),"delete"==s("#bulk-action-selector-top").val()){if(0!=n.length)return confirm(wpgmp_local.confirm_bulk_delete)&&s(".wpgmp_listing_form").submit(),!1;alert(wpgmp_local.no_record_for_bulk_delete)}}),"undefined"!=typeof google_customizer_fonts){var e=Object.keys(google_customizer_fonts).map(function(e){return google_customizer_fonts[e]});if(e&&0<e.length)for(var t in e){t=e[t];0<=(t=0<=t.indexOf(",")?(t=t.split(","))[0]:t).indexOf('"')&&(t=(t=t.replace('"',"")).replace('"',"")),WebFont.load({google:{families:[t]}})}}s(document).on("click",".bulk-delete-btn",function(e){e.preventDefault(),s(".wpgmp_listing_form").submit()}),s(".delete_fc_record").click(function(e){e.preventDefault();var e=jQuery(this),t=e.data("item-id"),n=e.data("page-slug"),e=e.data("record-type"),i=s("#_wpnonce").val();("location_id"==e?confirm(wpgmp_local.confirm_location_delete):"map_id"==e?confirm(wpgmp_local.confirm_map_delete):"group_map_id"==e?confirm(wpgmp_local.confirm_category_delete):confirm(wpgmp_local.confirm_record_delete))&&(window.location.href="?page="+n+"&doaction=delete&"+e+"="+t+"&_wpnonce="+i)});s(".wpgmp_check_backup").click(function(){var e;return 1==confirm(wpgmp_local.confirm_overwrite_db)&&(e=s(this).data("backup"),s(this).closest("form").find("input[name='row_id']").val(e),s(this).closest("form").find("input[name='operation']").val("import_backup"),s(this).closest("form").submit(),!0)}),s(".wpgmp_check_key").click(function(){s(".wpgmp_apitest").html("...");var e=s("input[name='wpgmp_api_key']").val();s.get("https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key="+e,function(e){"OK"==e.status?s(".wpgmp_apitest").html("<div class='fc-msg fc-success'>Congratulation, the API key you created is perfect. You can now <a class='create_location_link' target='_blank' href='https://www.wpmapspro.com/docs/create-a-location-using-simple-method/'>start</a> creating maps!</div>"):s(".wpgmp_apitest").html("<div class='fc-msg fc-danger'>"+e.error_message+"</div>")})}),s("select[name='map_id']").change(function(){s(this).closest("form").submit()}),s("select[name='filter_location']").change(function(e){e.preventDefault(),(0<s(this).val()?(s("tr[class^='filter_group_cat']").hide(),s(".filter_group_cat"+s(this).val())):s("tr[class^='filter_group_cat']")).show("slow")}),s(".wpgmp_search_input").keyup(function(){map_id=s(this).attr("rel"),s(".wpgmp_locations_listing[rel='"+map_id+"']").addClass("wpgmp_loading"),wpgmp_filter_locations(map_id,1)}),s(".wpgmp_toggle_container").click(function(){s(".wpgmp_toggle_main_container").toggle("slow"),"Hide"==s(this).text()?s(this).text("Show"):s(this).text("Hide")}),s(".wpgmp_mcurrent_loction").click(function(){wpgmp_get_current_location()}),s(".wpgmp-select-all").click(function(){s(".wpgmp-select-all").prop("checked")?s(this).closest("table").find(".wpgmp-location-checkbox").prop("checked",!0):s(this).closest("table").find(".wpgmp-location-checkbox").prop("checked",!1)}),s(".wpgmp-location-checkbox").click(function(){s(".wpgmp-location-checkbox").length==s(".wpgmp-location-checkbox:checked").length?s(".wpgmp-select-all").prop("checked",!0):s(".wpgmp-select-all").prop("checked",!1)});var i=s("#wpgmp_google_map_data_table").dataTable({lengthMenu:[[10,25,50,100,200,500,-1],[10,25,50,100,200,500,"All"]],order:[[1,"desc"]],aoColumns:[{sWidth:"5%",bSortable:!1},{sWidth:"40%"},{sWidth:"30%"},{sWidth:"20%"}]});s("#wpgmp_google_map_route_data_table").dataTable({lengthMenu:[[10,25,50,100,200,500,-1],[10,25,50,100,200,500,"All"]],aoColumns:[{sWidth:"10%"},{sWidth:"35%"},{sWidth:"35%"},{sWidth:"20%"}]});s('input[name="save_entity_data"]').click(function(){var e=i.$('input[type="checkbox"]:checked'),n=[];return 0<e.length&&(s.each(e,function(e,t){n.push(s(t).val())}),s('input[name="map_locations"]').val(n)),!0}),s('select[name="select_all"]').change(function(){"select_all"==s(this).val()?s('input[name="map_locations[]"]').attr("checked",!0):s('input[name="map_locations[]"]').attr("checked",!1)}),s('input[name="save_route_data"]').click(function(){var e=i.$('input[type="checkbox"]:checked'),n=[];return 0<e.length&&(s.each(e,function(e,t){n.push(s(t).val())}),s('input[name="route_way_points"]').val(n)),!0}),s(".switch_onoff").change(function(){var e=s(this).data("target");"radio"==s(this).attr("type")&&(s(e).closest(".form-group").hide(),e+="_"+s(this).val()),s(this).is(":checked")?s(e).closest(".form-group").show():(s(e).closest(".form-group").hide(),s(e).hasClass("switch_onoff")&&(s(e).attr("checked",!1),s(e).trigger("change")))}),s.each(s(".switch_onoff"),function(e,t){1==s(this).is(":checked")&&s(this).trigger("change")}),0<s(".wpgmp-overview .color").length&&s(".wpgmp-overview .color").wpColorPicker(),s(".buy_premium .hide_buy_notice").click(function(){s(".buy_premium").slideUp("slow");var e={action:"wpgmp_hide_buy_notice",ajaxnonce:wpgmp_local.ajaxnonce};jQuery.ajax({url:wpgmp_local.urlforajax,type:"post",dataType:"json",data:e,beforeSend:function(){},success:function(e){}})}),s(".sample_notice .hide_sample_notice").click(function(){s(".sample_notice").slideUp("slow");var e={action:"wpgmp_hide_sample_notice",ajaxnonce:wpgmp_local.ajaxnonce};jQuery.ajax({url:wpgmp_local.urlforajax,type:"post",dataType:"json",data:e,beforeSend:function(){},success:function(e){}})}),s(".copy_to_clipboard").click(function(){var e=s(this).parent(".tooltip").prev(".referrer_to_create").val();navigator.clipboard.writeText(e),s("span.tooltiptext").html(wpgmp_local.do_referrer_copy),s(this).find("span.tooltiptext").html(wpgmp_local.referrer_copied)})}),ClusterIcon.prototype.onAdd=function(){var s,o,a=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){o=s}),this.div_.addEventListener("mousedown",function(){o=!(s=!0)}),this.div_.addEventListener("click",function(e){var t,n,i;s=!1,o||(i=a.cluster_.getMarkerClusterer(),google.maps.event.trigger(i,"click",a.cluster_),google.maps.event.trigger(i,"clusterclick",a.cluster_),i.getZoomOnClick()&&(n=i.getMaxZoom(),t=a.cluster_.getBounds(),i.getMap().fitBounds(t),setTimeout(function(){i.getMap().fitBounds(t),null!==n&&i.getMap().getZoom()>n&&i.getMap().setZoom(n+1)},100)),e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}),this.div_.addEventListener("mouseover",function(){var e=a.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseover",a.cluster_)}),this.div_.addEventListener("mouseout",function(){var e=a.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseout",a.cluster_)})},ClusterIcon.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},ClusterIcon.prototype.draw=function(){var e;this.visible_&&(e=this.getPosFromLatLng_(this.center_),this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px")},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){var e,t,n,i;this.div_&&(e="",n=this.backgroundPosition_.split(" "),t=parseInt(n[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(n[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng_(this.center_),this.div_.style.cssText=this.createCss(i),e="<img src='"+this.url_+"' style='position: absolute; top: "+n+"px; left: "+t+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_||(e+="clip: rect("+-1*n+"px, "+(-1*t+this.width_)+"px, "+(-1*n+this.height_)+"px, "+-1*t+"px);"),this.div_.innerHTML=(e+="'>")+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>",void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},ClusterIcon.prototype.useStyle=function(e){this.sums_=e;e=Math.max(0,e.index-1),e=Math.min(this.styles_.length-1,e),e=this.styles_[e];this.url_=e.url,this.height_=e.height,this.width_=e.width,this.anchorText_=e.anchorText||[0,0],this.anchorIcon_=e.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=e.textColor||"black",this.textSize_=e.textSize||11,this.textDecoration_=e.textDecoration||"none",this.fontWeight_=e.fontWeight||"bold",this.fontStyle_=e.fontStyle||"normal",this.fontFamily_=e.fontFamily||"Arial,sans-serif",this.backgroundPosition_=e.backgroundPosition||"0 0"},ClusterIcon.prototype.setCenter=function(e){this.center_=e},ClusterIcon.prototype.createCss=function(e){var t=[];return t.push("cursor: pointer;"),t.push("position: absolute; top: "+e.y+"px; left: "+e.x+"px;"),t.push("width: "+this.width_+"px; height: "+this.height_+"px;"),t.join("")},ClusterIcon.prototype.getPosFromLatLng_=function(e){e=this.getProjection().fromLatLngToDivPixel(e);return e.x-=this.anchorIcon_[1],e.y-=this.anchorIcon_[0],e.x=parseInt(e.x,10),e.y=parseInt(e.y,10),e},Cluster.prototype.getSize=function(){return this.markers_.length},Cluster.prototype.getMarkers=function(){return this.markers_},Cluster.prototype.getCenter=function(){return this.center_},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),t=this.getMarkers(),n=0;n<t.length;n++)e.extend(t[n].getPosition());return e},Cluster.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},Cluster.prototype.addMarker=function(e){var t,n,i,s;if(this.isMarkerAlreadyAdded_(e))return!1;if(this.center_?this.averageCenter_&&(s=this.markers_.length+1,i=(this.center_.lat()*(s-1)+e.getPosition().lat())/s,s=(this.center_.lng()*(s-1)+e.getPosition().lng())/s,this.center_=new google.maps.LatLng(i,s),this.calculateBounds_()):(this.center_=e.getPosition(),this.calculateBounds_()),e.isAdded=!0,this.markers_.push(e),n=this.markers_.length,null!==(i=this.markerClusterer_.getMaxZoom())&&this.map_.getZoom()>i)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n===this.minClusterSize_)for(t=0;t<n;t++)this.markers_[t].setMap(null);else e.setMap(null);return this.updateIcon_(),!0},Cluster.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},Cluster.prototype.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},Cluster.prototype.updateIcon_=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();null!==t&&this.map_.getZoom()>t||e<this.minClusterSize_?this.clusterIcon_.hide():(t=this.markerClusterer_.getStyles().length,e=this.markerClusterer_.getCalculator()(this.markers_,t),this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(e),this.clusterIcon_.show())},Cluster.prototype.isMarkerAlreadyAdded_=function(e){var t;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(e);for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},MarkerClusterer.prototype.onAdd=function(){var e=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){e.resetViewport_(!1),this.getZoom()!==(this.get("minZoom")||0)&&this.getZoom()!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){e.redraw_()})]},MarkerClusterer.prototype.onRemove=function(){for(var e=0;e<this.markers_.length;e++)this.markers_[e].getMap()!==this.activeMap_&&this.markers_[e].setMap(this.activeMap_);for(e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();for(this.clusters_=[],e=0;e<this.listeners_.length;e++)google.maps.event.removeListener(this.listeners_[e]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){var e,t;if(!(0<this.styles_.length))for(e=0;e<this.imageSizes_.length;e++)t=this.imageSizes_[e],this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},MarkerClusterer.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0;n<e.length;n++)t.extend(e[n].getPosition());this.getMap().fitBounds(t)},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(e){this.gridSize_=e},MarkerClusterer.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinimumClusterSize=function(e){this.minClusterSize_=e},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.setMaxZoom=function(e){this.maxZoom_=e},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.setStyles=function(e){this.styles_=e},MarkerClusterer.prototype.getTitle=function(){return this.title_},MarkerClusterer.prototype.setTitle=function(e){this.title_=e},MarkerClusterer.prototype.getZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.setZoomOnClick=function(e){this.zoomOnClick_=e},MarkerClusterer.prototype.getAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.setAverageCenter=function(e){this.averageCenter_=e},MarkerClusterer.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},MarkerClusterer.prototype.setIgnoreHidden=function(e){this.ignoreHidden_=e},MarkerClusterer.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},MarkerClusterer.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons_=e},MarkerClusterer.prototype.getImageExtension=function(){return this.imageExtension_},MarkerClusterer.prototype.setImageExtension=function(e){this.imageExtension_=e},MarkerClusterer.prototype.getImagePath=function(){return this.imagePath_},MarkerClusterer.prototype.setImagePath=function(e){this.imagePath_=e},MarkerClusterer.prototype.getImageSizes=function(){return this.imageSizes_},MarkerClusterer.prototype.setImageSizes=function(e){this.imageSizes_=e},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.setCalculator=function(e){this.calculator_=e},MarkerClusterer.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},MarkerClusterer.prototype.setBatchSizeIE=function(e){this.batchSizeIE_=e},MarkerClusterer.prototype.getClusterClass=function(){return this.clusterClass_},MarkerClusterer.prototype.setClusterClass=function(e){this.clusterClass_=e},MarkerClusterer.prototype.getMarkers=function(){return this.markers_},MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length},MarkerClusterer.prototype.getClusters=function(){return this.clusters_},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw_()},MarkerClusterer.prototype.addMarkers=function(e,t){for(var n in e)e.hasOwnProperty(n)&&this.pushMarkerTo_(e[n]);t||this.redraw_()},MarkerClusterer.prototype.pushMarkerTo_=function(e){var t;e.getDraggable()&&(t=this,google.maps.event.addListener(e,"dragend",function(){t.ready_&&(this.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers_.push(e)},MarkerClusterer.prototype.removeMarker=function(e,t){e=this.removeMarker_(e);return!t&&e&&this.repaint(),e},MarkerClusterer.prototype.removeMarkers=function(e,t){for(var n,i=!1,s=0;s<e.length;s++)n=this.removeMarker_(e[s]),i=i||n;return!t&&i&&this.repaint(),i},MarkerClusterer.prototype.removeMarker_=function(e){var t,n=-1;if(this.markers_.indexOf)n=this.markers_.indexOf(e);else for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t]){n=t;break}return-1!==n&&(e.setMap(null),this.markers_.splice(n,1),!0)},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},MarkerClusterer.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){for(var e=0;e<t.length;e++)t[e].remove()},0)},MarkerClusterer.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),i=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),n=t.fromLatLngToDivPixel(n),i=(n.x+=this.gridSize_,n.y-=this.gridSize_,t.fromLatLngToDivPixel(i)),n=(i.x-=this.gridSize_,i.y+=this.gridSize_,t.fromDivPixelToLatLng(n)),t=t.fromDivPixelToLatLng(i);return e.extend(n),e.extend(t),e},MarkerClusterer.prototype.redraw_=function(){this.createClusters_(0)},MarkerClusterer.prototype.resetViewport_=function(e){for(var t,n=0;n<this.clusters_.length;n++)this.clusters_[n].remove();for(this.clusters_=[],n=0;n<this.markers_.length;n++)(t=this.markers_[n]).isAdded=!1,e&&t.setMap(null)},MarkerClusterer.prototype.distanceBetweenPoints_=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,i=(t.lng()-e.lng())*Math.PI/180,n=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n)))},MarkerClusterer.prototype.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},MarkerClusterer.prototype.addToClosestCluster_=function(e){for(var t,n,i=4e4,s=null,o=0;o<this.clusters_.length;o++)(n=(t=this.clusters_[o]).getCenter())&&(n=this.distanceBetweenPoints_(n,e.getPosition()))<i&&(i=n,s=t);s&&s.isMarkerInClusterBounds(e)?s.addMarker(e):((t=new Cluster(this)).addMarker(e),this.clusters_.push(t))},MarkerClusterer.prototype.createClusters_=function(e){var t,n=this;if(this.ready_){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic)&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic);for(var i=3<this.getMap().getZoom()?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(i),o=Math.min(e+this.batchSize_,this.markers_.length),a=e;a<o;a++)!(t=this.markers_[a]).isAdded&&this.isMarkerInBounds_(t,s)&&(!this.ignoreHidden_||this.ignoreHidden_&&t.getVisible())&&this.addToClosestCluster_(t);o<this.markers_.length?this.timerRefStatic=setTimeout(function(){n.createClusters_(o)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},MarkerClusterer.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}.apply(e,[t])},MarkerClusterer.CALCULATOR=function(e,t){for(var n=0,e=e.length.toString(),i=e;0!==i;)i=parseInt(i/10,10),n++;return{text:e,index:n=Math.min(n,t),title:""}},MarkerClusterer.BATCH_SIZE=2e3,MarkerClusterer.BATCH_SIZE_IE=500,MarkerClusterer.IMAGE_PATH="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m",MarkerClusterer.IMAGE_EXTENSION="png",MarkerClusterer.IMAGE_SIZES=[53,56,66,78,90],function(Pt,Et,Lt){function e(M){function o(t){var n,i,s={};M.each(t,function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(i=e.replace(n[0],n[2].toLowerCase()),s[i]=e,"o"===n[1])&&o(t[e])}),t._hungarianMap=s}function b(t,n,i){var s;t._hungarianMap||o(t),M.each(n,function(e){(s=t._hungarianMap[e])===Lt||!i&&n[s]!==Lt||("o"===s.charAt(0)?(n[s]||(n[s]={}),M.extend(!0,n[s],n[e]),b(t[s],n[s],i)):n[s]=n[e])})}function j(e){var t=R.defaults.oLanguage,n=e.sZeroRecords;!e.sEmptyTable&&n&&"No data available in table"===t.sEmptyTable&&k(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&n&&"Loading..."===t.sLoadingRecords&&k(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&Ye(e)}function H(e){if(i(e,"ordering","bSort"),i(e,"orderMulti","bSortMulti"),i(e,"orderClasses","bSortClasses"),i(e,"orderCellsTop","bSortCellsTop"),i(e,"order","aaSorting"),i(e,"orderFixed","aaSortingFixed"),i(e,"paging","bPaginate"),i(e,"pagingType","sPaginationType"),i(e,"pageLength","iDisplayLength"),i(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t<n;t++)e[t]&&b(R.models.oSearch,e[t])}function N(e){i(e,"orderable","bSortable"),i(e,"orderData","aDataSort"),i(e,"orderSequence","asSorting"),i(e,"orderDataType","sortDataType");var t=e.aDataSort;t&&!M.isArray(t)&&(e.aDataSort=[t])}function z(e){var e=e.oBrowser,t=M("<div/>").css({position:"fixed",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(M("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(M('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),n=t.find(".test");e.bScrollOversize=100===n[0].offsetWidth,e.bScrollbarLeft=1!==Math.round(n.offset().left),e.bBounding=!!t[0].getBoundingClientRect().width,t.remove()}function n(e,t,n,i,s,o){var a,r=!1;for(n!==Lt&&(a=n,r=!0);i!==s;)e.hasOwnProperty(i)&&(a=r?t(a,e[i],i,e):e[i],r=!0,i+=o);return a}function W(e,t){var n=R.defaults.column,i=e.aoColumns.length,n=M.extend({},R.models.oColumn,n,{nTh:t||Et.createElement("th"),sTitle:n.sTitle||(t?t.innerHTML:""),aDataSort:n.aDataSort||[i],mData:n.mData||i,idx:i});e.aoColumns.push(n),(n=e.aoPreSearchCols)[i]=M.extend({},R.models.oSearch,n[i]),$(e,i,M(t).data())}function $(e,t,n){var i,t=e.aoColumns[t],s=e.oClasses,o=M(t.nTh),a=(!t.sWidthOrig&&(t.sWidthOrig=o.attr("width")||null,i=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(t.sWidthOrig=i[1]),n!==Lt&&null!==n&&(N(n),b(R.defaults.column,n),n.mDataProp===Lt||n.mData||(n.mData=n.mDataProp),n.sType&&(t._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),M.extend(t,n),k(t,n,"sWidth","sWidthOrig"),n.iDataSort!==Lt&&(t.aDataSort=[n.iDataSort]),k(t,n,"aDataSort")),t.mData),r=C(a),l=t.mRender?C(t.mRender):null,n=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};t._bAttrSrc=M.isPlainObject(a)&&(n(a.sort)||n(a.type)||n(a.filter)),t.fnGetData=function(e,t,n){var i=r(e,t,Lt,n);return l&&t?l(i,t,e,n):i},t.fnSetData=function(e,t,n){return f(a)(e,t,n)},"number"!=typeof a&&(e._rowReadObject=!0),e.oFeatures.bSort||(t.bSortable=!1,o.addClass(s.sSortableNone)),e=-1!==M.inArray("asc",t.asSorting),n=-1!==M.inArray("desc",t.asSorting),t.bSortable&&(e||n)?e&&!n?(t.sSortingClass=s.sSortableAsc,t.sSortingClassJUI=s.sSortJUIAscAllowed):!e&&n?(t.sSortingClass=s.sSortableDesc,t.sSortingClassJUI=s.sSortJUIDescAllowed):(t.sSortingClass=s.sSortable,t.sSortingClassJUI=s.sSortJUI):(t.sSortingClass=s.sSortableNone,t.sSortingClassJUI="")}function v(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;Pe(e);for(var n=0,i=t.length;n<i;n++)t[n].nTh.style.width=t[n].sWidth}""===(t=e.oScroll).sY&&""===t.sX||Me(e),I(e,null,"column-sizing",[e])}function B(e,t){e=S(e,"bVisible");return"number"==typeof e[t]?e[t]:null}function c(e,t){e=S(e,"bVisible");return-1!==(e=M.inArray(t,e))?e:null}function y(e){return S(e,"bVisible").length}function S(e,n){var i=[];return M.map(e.aoColumns,function(e,t){e[n]&&i.push(t)}),i}function U(e){for(var t,n,i,s,o,a,r,l=e.aoColumns,c=e.aoData,h=R.ext.type.detect,u=0,d=l.length;u<d;u++)if(r=[],!(o=l[u]).sType&&o._sManualType)o.sType=o._sManualType;else if(!o.sType){for(t=0,n=h.length;t<n;t++){for(i=0,s=c.length;i<s&&(r[i]===Lt&&(r[i]=w(e,i,u,"type")),(a=h[t](r[i],e))||t===h.length-1)&&"html"!==a;i++);if(a){o.sType=a;break}}o.sType||(o.sType="string")}}function V(e,t,n,i){var s,o,a,r=e.aoColumns;if(t)for(s=t.length-1;0<=s;s--)for(var l,c=(l=t[s]).targets!==Lt?l.targets:l.aTargets,h=0,u=(c=M.isArray(c)?c:[c]).length;h<u;h++)if("number"==typeof c[h]&&0<=c[h]){for(;r.length<=c[h];)W(e);i(c[h],l)}else if("number"==typeof c[h]&&c[h]<0)i(r.length+c[h],l);else if("string"==typeof c[h])for(o=0,a=r.length;o<a;o++)"_all"!=c[h]&&!M(r[o].nTh).hasClass(c[h])||i(o,l);if(n)for(s=0,e=n.length;s<e;s++)i(s,n[s])}function _(e,t,n,i){var s=e.aoData.length,o=M.extend(!0,{},R.models.oRow,{src:n?"dom":"data",idx:s});o._aData=t,e.aoData.push(o);for(var a=e.aoColumns,r=0,l=a.length;r<l;r++)n&&G(e,s,r,w(e,s,r)),a[r].sType=null;return e.aiDisplayMaster.push(s),(t=e.rowIdFn(t))!==Lt&&(e.aIds[t]=o),!n&&e.oFeatures.bDeferRender||Q(e,s,n,i),s}function q(n,e){var i;return(e=e instanceof M?e:M(e)).map(function(e,t){return i=K(n,t),_(n,i.data,t,i.cells)})}function w(e,t,n,i){var s=e.iDraw,o=e.aoColumns[n],a=e.aoData[t]._aData,r=o.sDefaultContent;if((n=o.fnGetData(a,i,{settings:e,row:t,col:n}))===Lt)return e.iDrawError!=s&&null===r&&(L(e,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+t,4),e.iDrawError=s),r;if(n!==a&&null!==n||null===r){if("function"==typeof n)return n.call(a)}else n=r;return null===n&&"display"==i?"":n}function G(e,t,n,i){e.aoColumns[n].fnSetData(e.aoData[t]._aData,i,{settings:e,row:t,col:n})}function X(e){return M.map(e.match(/(\\.|[^\.])+/g)||[""],function(e){return e.replace(/\\./g,".")})}function C(s){var o,r;return M.isPlainObject(s)?(o={},M.each(s,function(e,t){t&&(o[e]=C(t))}),function(e,t,n,i){var s=o[t]||o._;return s!==Lt?s(e,t,n,i):e}):null===s?function(e){return e}:"function"==typeof s?function(e,t,n,i){return s(e,t,n,i)}:"string"!=typeof s||-1===s.indexOf(".")&&-1===s.indexOf("[")&&-1===s.indexOf("(")?function(e){return e[s]}:(r=function(e,t,n){var i;if(""!==n)for(var s,o=0,a=(s=X(n)).length;o<a;o++){if(n=s[o].match(_t),i=s[o].match(m),n){for(s[o]=s[o].replace(_t,""),""!==s[o]&&(e=e[s[o]]),i=[],s.splice(0,o+1),s=s.join("."),o=0,a=e.length;o<a;o++)i.push(r(e[o],t,s));e=""===(e=n[0].substring(1,n[0].length-1))?i:i.join(e);break}if(i)s[o]=s[o].replace(m,""),e=e[s[o]]();else{if(null===e||e[s[o]]===Lt)return Lt;e=e[s[o]]}}return e},function(e,t){return r(e,t,s)})}function f(i){var l;return M.isPlainObject(i)?f(i._):null===i?function(){}:"function"==typeof i?function(e,t,n){i(e,"set",t,n)}:"string"!=typeof i||-1===i.indexOf(".")&&-1===i.indexOf("[")&&-1===i.indexOf("(")?function(e,t){e[i]=t}:(l=function(e,t,n){for(var i,s,o=(n=X(n))[n.length-1],a=0,r=n.length-1;a<r;a++){if(i=n[a].match(_t),s=n[a].match(m),i){for(n[a]=n[a].replace(_t,""),e[n[a]]=[],(o=n.slice()).splice(0,a+1),i=o.join("."),s=0,r=t.length;s<r;s++)l(o={},t[s],i),e[n[a]].push(o);return}s&&(n[a]=n[a].replace(m,""),e=e[n[a]](t)),null!==e[n[a]]&&e[n[a]]!==Lt||(e[n[a]]={}),e=e[n[a]]}o.match(m)?e[o.replace(m,"")](t):e[o.replace(_t,"")]=t},function(e,t){return l(e,t,i)})}function Z(e){return g(e.aoData,"_aData")}function J(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0}function Y(e,t,n){for(var i=-1,s=0,o=e.length;s<o;s++)e[s]==t?i=s:e[s]>t&&e[s]--;-1!=i&&n===Lt&&e.splice(i,1)}function s(n,i,e,t){var s,o=n.aoData[i],a=function(e,t){for(;e.childNodes.length;)e.removeChild(e.firstChild);e.innerHTML=w(n,i,t,"display")};if("dom"!==e&&(e&&"auto"!==e||"dom"!==o.src)){var r=o.anCells;if(r)if(t!==Lt)a(r[t],t);else for(e=0,s=r.length;e<s;e++)a(r[e],e)}else o._aData=K(n,o,t,t===Lt?Lt:o._aData).data;if(o._aSortData=null,o._aFilterData=null,a=n.aoColumns,t!==Lt)a[t].sType=null;else{for(e=0,s=a.length;e<s;e++)a[e].sType=null;ee(n,o)}}function K(e,t,n,i){function s(e,t){var n;"string"==typeof e&&-1!==(n=e.indexOf("@"))&&(n=e.substring(n+1),f(e)(i,t.getAttribute(n)))}function o(e){n!==Lt&&n!==u||(r=d[u],l=M.trim(e.innerHTML),r&&r._bAttrSrc?(f(r.mData._)(i,l),s(r.mData.sort,e),s(r.mData.type,e),s(r.mData.filter,e)):p?(r._setter||(r._setter=f(r.mData)),r._setter(i,l)):i[u]=l),u++}var a,r,l,c=[],h=t.firstChild,u=0,d=e.aoColumns,p=e._rowReadObject,i=i||p?{}:[];if(h)for(;h;)"TD"!=(a=h.nodeName.toUpperCase())&&"TH"!=a||(o(h),c.push(h)),h=h.nextSibling;else for(h=0,a=(c=t.anCells).length;h<a;h++)o(c[h]);return(t=t.getAttribute("id"))&&f(e.rowId)(i,t),{data:i,cells:c}}function Q(e,t,n,i){var s,o,a,r,l,c=e.aoData[t],h=c._aData,u=[];if(null===c.nTr){for(s=n||Et.createElement("tr"),c.nTr=s,c.anCells=u,s._DT_RowIndex=t,ee(e,c),r=0,l=e.aoColumns.length;r<l;r++)a=e.aoColumns[r],o=n?i[r]:Et.createElement(a.sCellType),u.push(o),n&&!a.mRender&&a.mData===r||(o.innerHTML=w(e,t,r,"display")),a.sClass&&(o.className+=" "+a.sClass),a.bVisible&&!n?s.appendChild(o):!a.bVisible&&n&&o.parentNode.removeChild(o),a.fnCreatedCell&&a.fnCreatedCell.call(e.oInstance,o,w(e,t,r),h,t,r);I(e,"aoRowCreatedCallback",null,[s,h,t])}c.nTr.setAttribute("role","row")}function ee(e,t){var n=t.nTr,i=t._aData;n&&((e=e.rowIdFn(i))&&(n.id=e),i.DT_RowClass&&(e=i.DT_RowClass.split(" "),t.__rowc=t.__rowc?St(t.__rowc.concat(e)):e,M(n).removeClass(t.__rowc.join(" ")).addClass(i.DT_RowClass)),i.DT_RowAttr&&M(n).attr(i.DT_RowAttr),i.DT_RowData)&&M(n).data(i.DT_RowData)}function te(e){var t,n,i,s,o,a=e.nTHead,r=e.nTFoot,l=0===M("th, td",a).length,c=e.oClasses,h=e.aoColumns;for(l&&(s=M("<tr/>").appendTo(a)),t=0,n=h.length;t<n;t++)o=h[t],i=M(o.nTh).addClass(o.sClass),l&&i.appendTo(s),e.oFeatures.bSort&&(i.addClass(o.sSortingClass),!1!==o.bSortable)&&(i.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),ze(e,o.nTh,t)),o.sTitle!=i[0].innerHTML&&i.html(o.sTitle),Ze(e,"header")(e,i,o,c);if(l&&x(e.aoHeader,a),M(a).find(">tr").attr("role","row"),M(a).find(">tr>th, >tr>td").addClass(c.sHeaderTH),M(r).find(">tr>th, >tr>td").addClass(c.sFooterTH),null!==r)for(n=(e=e.aoFooter[t=0]).length;t<n;t++)(o=h[t]).nTf=e[t].cell,o.sClass&&M(o.nTf).addClass(o.sClass)}function u(e,t,n){var i,s,o,a,r=[],l=[],c=e.aoColumns.length;if(t){for(n===Lt&&(n=!1),i=0,s=t.length;i<s;i++){for(r[i]=t[i].slice(),r[i].nTr=t[i].nTr,o=c-1;0<=o;o--)e.aoColumns[o].bVisible||n||r[i].splice(o,1);l.push([])}for(i=0,s=r.length;i<s;i++){if(e=r[i].nTr)for(;o=e.firstChild;)e.removeChild(o);for(o=0,t=r[i].length;o<t;o++)if(a=c=1,l[i][o]===Lt){for(e.appendChild(r[i][o].cell),l[i][o]=1;r[i+c]!==Lt&&r[i][o].cell==r[i+c][o].cell;)l[i+c][o]=1,c++;for(;r[i][o+a]!==Lt&&r[i][o].cell==r[i][o+a].cell;){for(n=0;n<c;n++)l[i+n][o+a]=1;a++}M(r[i][o].cell).attr("rowspan",c).attr("colspan",a)}}}}function h(e){var t=I(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==M.inArray(!1,t))p(e,!1);else{var t=[],n=0,i=e.asStripeClasses,s=i.length,o=e.oLanguage,a=e.iInitDisplayStart,r="ssp"==A(e),l=e.aiDisplay,a=(e.bDrawing=!0,a!==Lt&&-1!==a&&(e._iDisplayStart=!r&&a>=e.fnRecordsDisplay()?0:a,e.iInitDisplayStart=-1),e._iDisplayStart),c=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,p(e,!1);else if(r){if(!e.bDestroying&&!oe(e))return}else e.iDraw++;if(0!==l.length)for(o=r?e.aoData.length:c,r=r?0:a;r<o;r++){var h,u=l[r],d=e.aoData[u];null===d.nTr&&Q(e,u),u=d.nTr,0!==s&&(h=i[n%s],d._sRowStripe!=h)&&(M(u).removeClass(d._sRowStripe).addClass(h),d._sRowStripe=h),I(e,"aoRowCallback",null,[u,d._aData,n,r]),t.push(u),n++}else n=o.sZeroRecords,1==e.iDraw&&"ajax"==A(e)?n=o.sLoadingRecords:o.sEmptyTable&&0===e.fnRecordsTotal()&&(n=o.sEmptyTable),t[0]=M("<tr/>",{class:s?i[0]:""}).append(M("<td />",{valign:"top",colSpan:y(e),class:e.oClasses.sRowEmpty}).html(n))[0];I(e,"aoHeaderCallback","header",[M(e.nTHead).children("tr")[0],Z(e),a,c,l]),I(e,"aoFooterCallback","footer",[M(e.nTFoot).children("tr")[0],Z(e),a,c,l]),(i=M(e.nTBody)).children().detach(),i.append(M(t)),I(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function r(e,t){var n=e.oFeatures,i=n.bFilter;n.bSort&&je(e),i?he(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,h(e),e._drawHold=!1}function ne(e){var t=e.oClasses,n=M(e.nTable),n=M("<div/>").insertBefore(n),i=e.oFeatures,s=M("<div/>",{id:e.sTableId+"_wrapper",class:t.sWrapper+(e.nTFoot?"":" "+t.sNoFooter)});e.nHolding=n[0],e.nTableWrapper=s[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var o,a,r,l,c,h,u=e.sDom.split(""),d=0;d<u.length;d++){if(o=null,"<"==(a=u[d])){if(r=M("<div/>")[0],"'"==(l=u[d+1])||'"'==l){for(c="",h=2;u[d+h]!=l;)c+=u[d+h],h++;"H"==c?c=t.sJUIHeader:"F"==c&&(c=t.sJUIFooter),-1!=c.indexOf(".")?(l=c.split("."),r.id=l[0].substr(1,l[0].length-1),r.className=l[1]):"#"==c.charAt(0)?r.id=c.substr(1,c.length-1):r.className=c,d+=h}s.append(r),s=M(r)}else if(">"==a)s=s.parent();else if("l"==a&&i.bPaginate&&i.bLengthChange)o=Te(e);else if("f"==a&&i.bFilter)o=ce(e);else if("r"==a&&i.bProcessing)o=Ie(e);else if("t"==a)o=Ae(e);else if("i"==a&&i.bInfo)o=ye(e);else if("p"==a&&i.bPaginate)o=ke(e);else if(0!==R.ext.feature.length)for(h=0,l=(r=R.ext.feature).length;h<l;h++)if(a==r[h].cFeature){o=r[h].fnInit(e);break}o&&((r=e.aanFeatures)[a]||(r[a]=[]),r[a].push(o),s.append(o))}n.replaceWith(s),e.nHolding=null}function x(e,t){var n,i,s,o,a,r,l,c,h,u,d=M(t).children("tr");for(e.splice(0,e.length),s=0,r=d.length;s<r;s++)e.push([]);for(s=0,r=d.length;s<r;s++)for(i=(n=d[s]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase()){for(c=(c=+i.getAttribute("colspan"))&&0!=c&&1!=c?c:1,h=(h=+i.getAttribute("rowspan"))&&0!=h&&1!=h?h:1,o=0,a=e[s];a[o];)o++;for(l=o,u=1==c,a=0;a<c;a++)for(o=0;o<h;o++)e[s+o][l+a]={cell:i,unique:u},e[s+o].nTr=n}i=i.nextSibling}}function ie(e,t,n){var i=[];n||(n=e.aoHeader,t&&x(n=[],t));for(var t=0,s=n.length;t<s;t++)for(var o=0,a=n[t].length;o<a;o++)!n[t][o].unique||i[o]&&e.bSortCellsTop||(i[o]=n[t][o].cell);return i}function se(i,e,t){var s,o;I(i,"aoServerParams","serverParams",[e]),e&&M.isArray(e)&&(s={},o=/(.*?)\[\]$/,M.each(e,function(e,t){var n=t.name.match(o);n?(n=n[0],s[n]||(s[n]=[]),s[n].push(t.value)):s[t.name]=t.value}),e=s);function n(e){I(i,null,"xhr",[i,e,i.jqXHR]),t(e)}var a,r,l=i.ajax,c=i.oInstance;M.isPlainObject(l)&&l.data&&(a=l.data,r=M.isFunction(a)?a(e,i):a,e=M.isFunction(a)&&r?r:M.extend(!0,e,r),delete l.data),r={data:e,success:function(e){var t=e.error||e.sError;t&&L(i,0,t),i.json=e,n(e)},dataType:"json",cache:!1,type:i.sServerMethod,error:function(e,t){var n=I(i,null,"xhr",[i,null,i.jqXHR]);-1===M.inArray(!0,n)&&("parsererror"==t?L(i,0,"Invalid JSON response",1):4===e.readyState&&L(i,0,"Ajax error",7)),p(i,!1)}},i.oAjaxData=e,I(i,null,"preXhr",[i,e]),i.fnServerData?i.fnServerData.call(c,i.sAjaxSource,M.map(e,function(e,t){return{name:t,value:e}}),n,i):i.sAjaxSource||"string"==typeof l?i.jqXHR=M.ajax(M.extend(r,{url:l||i.sAjaxSource})):M.isFunction(l)?i.jqXHR=l.call(c,e,n,i):(i.jqXHR=M.ajax(M.extend(r,l)),l.data=a)}function oe(t){return!t.bAjaxDataGet||(t.iDraw++,p(t,!0),se(t,ae(t),function(e){re(t,e)}),!1)}function ae(e){function n(e,t){c.push({name:e,value:t})}var t,i,s=e.aoColumns,o=s.length,a=e.oFeatures,r=e.oPreviousSearch,l=e.aoPreSearchCols,c=[],h=T(e),u=e._iDisplayStart,d=!1!==a.bPaginate?e._iDisplayLength:-1,p=(n("sEcho",e.iDraw),n("iColumns",o),n("sColumns",g(s,"sName").join(",")),n("iDisplayStart",u),n("iDisplayLength",d),{draw:e.iDraw,columns:[],order:[],start:u,length:d,search:{value:r.sSearch,regex:r.bRegex}});for(u=0;u<o;u++)t=s[u],i=l[u],d="function"==typeof t.mData?"function":t.mData,p.columns.push({data:d,name:t.sName,searchable:t.bSearchable,orderable:t.bSortable,search:{value:i.sSearch,regex:i.bRegex}}),n("mDataProp_"+u,d),a.bFilter&&(n("sSearch_"+u,i.sSearch),n("bRegex_"+u,i.bRegex),n("bSearchable_"+u,t.bSearchable)),a.bSort&&n("bSortable_"+u,t.bSortable);return a.bFilter&&(n("sSearch",r.sSearch),n("bRegex",r.bRegex)),a.bSort&&(M.each(h,function(e,t){p.order.push({column:t.col,dir:t.dir}),n("iSortCol_"+e,t.col),n("sSortDir_"+e,t.dir)}),n("iSortingCols",h.length)),null===(s=R.ext.legacy.ajax)?e.sAjaxSource?c:p:s?c:p}function re(e,t){var n=le(e,t),i=t.sEcho!==Lt?t.sEcho:t.draw,s=t.iTotalRecords!==Lt?t.iTotalRecords:t.recordsTotal,o=t.iTotalDisplayRecords!==Lt?t.iTotalDisplayRecords:t.recordsFiltered;if(i){if(+i<e.iDraw)return;e.iDraw=+i}for(J(e),e._iRecordsTotal=parseInt(s,10),e._iRecordsDisplay=parseInt(o,10),i=0,s=n.length;i<s;i++)_(e,n[i]);e.aiDisplay=e.aiDisplayMaster.slice(),e.bAjaxDataGet=!1,h(e),e._bInitComplete||Ce(e,t),e.bAjaxDataGet=!0,p(e,!1)}function le(e,t){e=M.isPlainObject(e.ajax)&&e.ajax.dataSrc!==Lt?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===e?t.aaData||t[e]:""!==e?C(e)(t):t}function ce(n){var e=n.oClasses,t=n.sTableId,i=n.oLanguage,s=n.oPreviousSearch,o=n.aanFeatures,a='<input type="search" class="'+e.sFilterInput+'"/>',r=(r=i.sSearch).match(/_INPUT_/)?r.replace("_INPUT_",a):r+a,e=M("<div/>",{id:o.f?null:t+"_filter",class:e.sFilter}).append(M("<label/>").append(r)),o=function(){var e=this.value||"";e!=s.sSearch&&(he(n,{sSearch:e,bRegex:s.bRegex,bSmart:s.bSmart,bCaseInsensitive:s.bCaseInsensitive}),n._iDisplayStart=0,h(n))},a=null!==n.searchDelay?n.searchDelay:"ssp"===A(n)?400:0,l=M("input",e).val(s.sSearch).attr("placeholder",i.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",a?Ee(o,a):o).bind("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",t);return M(n.nTable).on("search.dt.DT",function(e,t){if(n===t)try{l[0]!==Et.activeElement&&l.val(s.sSearch)}catch(e){}}),e[0]}function he(e,t,n){function i(e){s.sSearch=e.sSearch,s.bRegex=e.bRegex,s.bSmart=e.bSmart,s.bCaseInsensitive=e.bCaseInsensitive}var s=e.oPreviousSearch,o=e.aoPreSearchCols;if(U(e),"ssp"!=A(e)){for(pe(e,t.sSearch,n,t.bEscapeRegex!==Lt?!t.bEscapeRegex:t.bRegex,t.bSmart,t.bCaseInsensitive),i(t),t=0;t<o.length;t++)de(e,o[t].sSearch,t,o[t].bEscapeRegex!==Lt?!o[t].bEscapeRegex:o[t].bRegex,o[t].bSmart,o[t].bCaseInsensitive);ue(e)}else i(t);e.bFiltered=!0,I(e,null,"search",[e])}function ue(e){for(var t,n,i=R.ext.search,s=e.aiDisplay,o=0,a=i.length;o<a;o++){for(var r=[],l=0,c=s.length;l<c;l++)n=s[l],t=e.aoData[n],i[o](e,t._aFilterData,n,t._aData,l)&&r.push(n);s.length=0,s.push.apply(s,r)}}function de(e,t,n,i,s,o){if(""!==t)for(var a=e.aiDisplay,i=fe(t,i,s,o),s=a.length-1;0<=s;s--)t=e.aoData[a[s]]._aFilterData[n],i.test(t)||a.splice(s,1)}function pe(e,t,n,i,s,o){var a,i=fe(t,i,s,o),s=e.oPreviousSearch.sSearch,o=e.aiDisplayMaster;if(0!==R.ext.search.length&&(n=!0),a=me(e),t.length<=0)e.aiDisplay=o.slice();else for((a||n||s.length>t.length||0!==t.indexOf(s)||e.bSorted)&&(e.aiDisplay=o.slice()),n=(t=e.aiDisplay).length-1;0<=n;n--)i.test(e.aoData[t[n]]._sFilterRow)||t.splice(n,1)}function fe(e,t,n,i){return e=t?e:ge(e),n&&(e="^(?=.*?"+M.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(e){var t;return(e='"'===e.charAt(0)?(t=e.match(/^"(.*)"$/))?t[1]:e:e).replace('"',"")}).join(")(?=.*?")+").*$"),RegExp(e,i?"i":"")}function ge(e){return e.replace(vt,"\\$1")}function me(e){for(var t,n,i,s,o,a=e.aoColumns,r=R.ext.type.search,l=!1,c=0,h=e.aoData.length;c<h;c++)if(!(o=e.aoData[c])._aFilterData){for(i=[],t=0,n=a.length;t<n;t++)(l=a[t]).bSearchable?(s=w(e,c,t,"filter"),"string"!=typeof(s=null===(s=r[l.sType]?r[l.sType](s):s)?"":s)&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(wt.innerHTML=s,s=Ct?wt.textContent:wt.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),i.push(s);o._aFilterData=i,o._sFilterRow=i.join("  "),l=!0}return l}function ve(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function be(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function ye(e){var t=e.sTableId,n=e.aanFeatures.i,i=M("<div/>",{class:e.oClasses.sInfo,id:n?null:t+"_info"});return n||(e.aoDrawCallback.push({fn:Se,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),M(e.nTable).attr("aria-describedby",t+"_info")),i[0]}function Se(e){var t,n,i,s,o,a,r=e.aanFeatures.i;0!==r.length&&(t=e.oLanguage,n=e._iDisplayStart+1,i=e.fnDisplayEnd(),s=e.fnRecordsTotal(),a=(o=e.fnRecordsDisplay())?t.sInfo:t.sInfoEmpty,o!==s&&(a+=" "+t.sInfoFiltered),a=_e(e,a+=t.sInfoPostFix),null!==(t=t.fnInfoCallback)&&(a=t.call(e.oInstance,e,n,i,s,o,a)),M(r).html(a))}function _e(e,t){var n=e.fnFormatNumber,i=e._iDisplayStart+1,s=e._iDisplayLength,o=e.fnRecordsDisplay(),a=-1===s;return t.replace(/_START_/g,n.call(e,i)).replace(/_END_/g,n.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,n.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(e,o)).replace(/_PAGE_/g,n.call(e,a?1:Math.ceil(i/s))).replace(/_PAGES_/g,n.call(e,a?1:Math.ceil(o/s)))}function we(n){var i,e,s=n.iInitDisplayStart,t=n.aoColumns,o=n.oFeatures,a=n.bDeferLoading;if(n.bInitialised){for(ne(n),te(n),u(n,n.aoHeader),u(n,n.aoFooter),p(n,!0),o.bAutoWidth&&Pe(n),i=0,o=t.length;i<o;i++)(e=t[i]).sWidth&&(e.nTh.style.width=E(e.sWidth));I(n,null,"preInit",[n]),r(n),"ssp"==(t=A(n))&&!a||("ajax"==t?se(n,[],function(e){var t=le(n,e);for(i=0;i<t.length;i++)_(n,t[i]);n.iInitDisplayStart=s,r(n),p(n,!1),Ce(n,e)}):(p(n,!1),Ce(n)))}else setTimeout(function(){we(n)},200)}function Ce(e,t){e._bInitComplete=!0,(t||e.oInit.aaData)&&v(e),I(e,"aoInitComplete","init",[e,t])}function xe(e,t){t=parseInt(t,10);e._iDisplayLength=t,Xe(e),I(e,null,"length",[e,t])}function Te(i){for(var e=i.oClasses,t=i.sTableId,n=i.aLengthMenu,s=(o=M.isArray(n[0]))?n[0]:n,n=o?n[1]:n,o=M("<select/>",{name:t+"_length","aria-controls":t,class:e.sLengthSelect}),a=0,r=s.length;a<r;a++)o[0][a]=new Option(n[a],s[a]);var l=M("<div><label/></div>").addClass(e.sLength);return i.aanFeatures.l||(l[0].id=t+"_length"),l.children().append(i.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML)),M("select",l).val(i._iDisplayLength).bind("change.DT",function(){xe(i,M(this).val()),h(i)}),M(i.nTable).bind("length.dt.DT",function(e,t,n){i===t&&M("select",l).val(n)}),l[0]}function ke(e){function a(e){h(e)}var t=e.sPaginationType,r=R.ext.pager[t],l="function"==typeof r,t=M("<div/>").addClass(e.oClasses.sPaging+t)[0],c=e.aanFeatures;return l||r.fnInit(e,t,a),c.p||(t.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(e){if(l)for(var t=e._iDisplayStart,n=e._iDisplayLength,i=e.fnRecordsDisplay(),t=(s=-1===n)?0:Math.ceil(t/n),n=s?1:Math.ceil(i/n),i=r(t,n),s=0,o=c.p.length;s<o;s++)Ze(e,"pageButton")(e,c.p[s],s,i,t,n);else r.fnUpdate(e,a)},sName:"pagination"})),t}function De(e,t,n){var i=e._iDisplayStart,s=e._iDisplayLength,o=e.fnRecordsDisplay();return 0===o||-1===s?i=0:"number"==typeof t?o<(i=t*s)&&(i=0):"first"==t?i=0:"previous"==t?(i=0<=s?i-s:0)<0&&(i=0):"next"==t?i+s<o&&(i+=s):"last"==t?i=Math.floor((o-1)/s)*s:L(e,0,"Unknown paging action: "+t,5),t=e._iDisplayStart!==i,e._iDisplayStart=i,t&&(I(e,null,"page",[e]),n)&&h(e),t}function Ie(e){return M("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function p(e,t){e.oFeatures.bProcessing&&M(e.aanFeatures.r).css("display",t?"block":"none"),I(e,null,"processing",[e,t])}function Ae(e){var t=M(e.nTable),n=(t.attr("role","grid"),e.oScroll);if(""===n.sX&&""===n.sY)return e.nTable;var i=n.sX,s=n.sY,o=e.oClasses,a=t.children("caption"),r=a.length?a[0]._captionSide:null,l=M(t[0].cloneNode(!1)),c=M(t[0].cloneNode(!1)),h=t.children("tfoot");n.sX&&"100%"===t.attr("width")&&t.removeAttr("width"),h.length||(h=null),l=M("<div/>",{class:o.sScrollWrapper}).append(M("<div/>",{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?i?E(i):null:"100%"}).append(M("<div/>",{class:o.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===r?a:null).append(t.children("thead"))))).append(M("<div/>",{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:i?E(i):null}).append(t)),h&&l.append(M("<div/>",{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:i?i?E(i):null:"100%"}).append(M("<div/>",{class:o.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===r?a:null).append(t.children("tfoot")))));var u=(t=l.children())[0],o=t[1],d=h?t[2]:null;return i&&M(o).on("scroll.DT",function(){var e=this.scrollLeft;u.scrollLeft=e,h&&(d.scrollLeft=e)}),M(o).css(s&&n.bCollapse?"max-height":"height",s),e.nScrollHead=u,e.nScrollBody=o,e.nScrollFoot=d,e.aoDrawCallback.push({fn:Me,sName:"scrolling"}),l[0]}function Me(n){function e(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0}var t,i,s,o,a,r=(h=n.oScroll).sX,l=h.sXInner,c=h.sY,h=h.iBarWidth,u=M(n.nScrollHead),d=u[0].style,p=(g=u.children("div"))[0].style,f=g.children("table"),g=n.nScrollBody,m=M(g),v=g.style,b=M(n.nScrollFoot).children("div"),y=b.children("table"),S=M(n.nTHead),_=M(n.nTable),w=_[0],C=w.style,x=n.nTFoot?M(n.nTFoot):null,T=n.oBrowser,k=T.bScrollOversize,D=[],I=[],A=[];_.children("thead, tfoot").remove(),o=S.clone().prependTo(_),S=S.find("tr"),i=o.find("tr"),o.find("th, td").removeAttr("tabindex"),x&&(s=x.clone().prependTo(_),t=x.find("tr"),s=s.find("tr")),r||(v.width="100%",u[0].style.width="100%"),M.each(ie(n,o),function(e,t){a=B(n,e),t.style.width=n.aoColumns[a].sWidth}),x&&P(function(e){e.style.width=""},s),u=_.outerWidth(),""===r?(C.width="100%",k&&(_.find("tbody").height()>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=E(_.outerWidth()-h)),u=_.outerWidth()):""!==l&&(C.width=E(l),u=_.outerWidth()),P(e,i),P(function(e){A.push(e.innerHTML),D.push(E(M(e).css("width")))},i),P(function(e,t){e.style.width=D[t]},S),M(i).height(0),x&&(P(e,s),P(function(e){I.push(E(M(e).css("width")))},s),P(function(e,t){e.style.width=I[t]},t),M(s).height(0)),P(function(e,t){e.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+A[t]+"</div>",e.style.width=D[t]},i),x&&P(function(e,t){e.innerHTML="",e.style.width=I[t]},s),_.outerWidth()<u?(t=g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y")?u+h:u,k&&(g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=E(t-h)),""!==r&&""===l||L(n,1,"Possible column misalignment",6)):t="100%",v.width=E(t),d.width=E(t),x&&(n.nScrollFoot.style.width=E(t)),!c&&k&&(v.height=E(w.offsetHeight+h)),r=_.outerWidth(),f[0].style.width=E(r),p.width=E(r),l=_.height()>g.clientHeight||"scroll"==m.css("overflow-y"),p[c="padding"+(T.bScrollbarLeft?"Left":"Right")]=l?h+"px":"0px",x&&(y[0].style.width=E(r),b[0].style.width=E(r),b[0].style[c]=l?h+"px":"0px"),m.scroll(),!n.bSorted&&!n.bFiltered||n._drawHold||(g.scrollTop=0)}function P(e,t,n){for(var i,s,o=0,a=0,r=t.length;a<r;){for(i=t[a].firstChild,s=n?n[a].firstChild:null;i;)1===i.nodeType&&(n?e(i,s,o):e(i,o),o++),i=i.nextSibling,s=n?s.nextSibling:null;a++}}function Pe(e){var t,n,i=e.nTable,s=e.aoColumns,o=(g=e.oScroll).sY,a=g.sX,r=g.sXInner,l=s.length,c=S(e,"bVisible"),h=M("th",e.nTHead),u=i.getAttribute("width"),d=i.parentNode,p=!1,f=e.oBrowser,g=f.bScrollOversize;for((t=i.style.width)&&-1!==t.indexOf("%")&&(u=t),t=0;t<c.length;t++)null!==(n=s[c[t]]).sWidth&&(n.sWidth=Le(n.sWidthOrig,d),p=!0);if(g||!p&&!a&&!o&&l==y(e)&&l==h.length)for(t=0;t<l;t++)s[t].sWidth=E(h.eq(t).width());else{(l=M(i).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var m=M("<tr/>").appendTo(l.find("tbody"));for(l.find("thead, tfoot").remove(),l.append(M(e.nTHead).clone()).append(M(e.nTFoot).clone()),l.find("tfoot th, tfoot td").css("width",""),h=ie(e,l.find("thead")[0]),t=0;t<c.length;t++)n=s[c[t]],h[t].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?E(n.sWidthOrig):"";if(e.aoData.length)for(t=0;t<c.length;t++)n=s[p=c[t]],M(Oe(e,p)).clone(!1).append(n.sContentPadding).appendTo(m);if(p=M("<div/>").css(a||o?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(l).appendTo(d),a&&r?l.width(r):a?(l.css("width","auto"),l.width()<d.clientWidth&&l.width(d.clientWidth)):o?l.width(d.clientWidth):u&&l.width(u),a){for(t=r=0;t<c.length;t++)n=s[c[t]],o=f.bBounding?h[t].getBoundingClientRect().width:M(h[t]).outerWidth(),r+=null===n.sWidthOrig?o:parseInt(n.sWidth,10)+o-M(h[t]).width();l.width(E(r)),i.style.width=E(r)}for(t=0;t<c.length;t++)n=s[c[t]],(f=M(h[t]).width())&&(n.sWidth=E(f));i.style.width=E(l.css("width")),p.remove()}u&&(i.style.width=E(u)),!u&&!a||e._reszEvt||(i=function(){M(Pt).bind("resize.DT-"+e.sInstance,Ee(function(){v(e)}))},g?setTimeout(i,1e3):i(),e._reszEvt=!0)}function Ee(i,e){var s,o,a=e!==Lt?e:200;return function(){var e=this,t=+new Date,n=arguments;s&&t<s+a?(clearTimeout(o),o=setTimeout(function(){s=Lt,i.apply(e,n)},a)):(s=t,i.apply(e,n))}}function Le(e,t){return e?(t=(e=M("<div/>").css("width",E(e)).appendTo(t||Et.body))[0].offsetWidth,e.remove(),t):0}function Oe(e,t){var n,i=Re(e,t);return i<0?null:(n=e.aoData[i]).nTr?n.anCells[t]:M("<td/>").html(w(e,i,t,"display"))[0]}function Re(e,t){for(var n,i=-1,s=-1,o=0,a=e.aoData.length;o<a;o++)(n=(n=w(e,o,t,"display")+"").replace(xt,"")).length>i&&(i=n.length,s=o);return s}function E(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function Fe(){var e,t=R.__scrollbarWidth;return t===Lt&&(t=(e=M("<p/>").css({position:"absolute",top:0,left:0,width:"100%",height:150,padding:0,overflow:"scroll",visibility:"hidden"}).appendTo("body"))[0].offsetWidth-e[0].clientWidth,R.__scrollbarWidth=t,e.remove()),t}function T(e){var t,n,i,s=[],o=e.aoColumns,a=e.aaSortingFixed,r=M.isPlainObject(a),l=[],c=function(e){e.length&&!M.isArray(e[0])?l.push(e):l.push.apply(l,e)};for(M.isArray(a)&&c(a),r&&a.pre&&c(a.pre),c(e.aaSorting),r&&a.post&&c(a.post),e=0;e<l.length;e++)for(r=(c=o[i=l[e][a=0]].aDataSort).length;a<r;a++)n=o[t=c[a]].sType||"string",l[e]._idx===Lt&&(l[e]._idx=M.inArray(l[e][1],o[t].asSorting)),s.push({src:i,col:t,dir:l[e][1],index:l[e]._idx,type:n,formatter:R.ext.type.order[n+"-pre"]});return s}function je(e){var t,n,i,c,h=[],u=R.ext.type.order,d=e.aoData,s=0,o=e.aiDisplayMaster;for(U(e),t=0,n=(c=T(e)).length;t<n;t++)(i=c[t]).formatter&&s++,$e(e,i.col);if("ssp"!=A(e)&&0!==c.length){for(t=0,n=o.length;t<n;t++)h[o[t]]=t;s===c.length?o.sort(function(e,t){for(var n,i,s,o=c.length,a=d[e]._aSortData,r=d[t]._aSortData,l=0;l<o;l++)if(0!==(n=(n=a[(s=c[l]).col])<(i=r[s.col])?-1:i<n?1:0))return"asc"===s.dir?n:-n;return(n=h[e])<(i=h[t])?-1:i<n?1:0}):o.sort(function(e,t){for(var n,i,s,o=c.length,a=d[e]._aSortData,r=d[t]._aSortData,l=0;l<o;l++)if(n=a[(s=c[l]).col],i=r[s.col],0!==(n=(s=u[s.type+"-"+s.dir]||u["string-"+s.dir])(n,i)))return n;return(n=h[e])<(i=h[t])?-1:i<n?1:0})}e.bSorted=!0}function He(e){for(var t=e.aoColumns,n=T(e),e=e.oLanguage.oAria,i=0,s=t.length;i<s;i++){var o,a=(o=t[i]).asSorting,r=o.sTitle.replace(/<.*?>/g,""),l=o.nTh;l.removeAttribute("aria-sort"),o.bSortable&&(r+="asc"===(o=0<n.length&&n[0].col==i&&(l.setAttribute("aria-sort","asc"==n[0].dir?"ascending":"descending"),a[n[0].index+1])||a[0])?e.sSortAscending:e.sSortDescending),l.setAttribute("aria-label",r)}}function Ne(e,t,n,i){function s(e,t){var n=e._idx;return(n=n===Lt?M.inArray(e[1],a):n)+1<a.length?n+1:t?null:0}var o=e.aaSorting,a=e.aoColumns[t].asSorting;"number"==typeof o[0]&&(o=e.aaSorting=[o]),n&&e.oFeatures.bSortMulti?-1!==(n=M.inArray(t,g(o,"0")))?null===(t=null===(t=s(o[n],!0))&&1===o.length?0:t)?o.splice(n,1):(o[n][1]=a[t],o[n]._idx=t):(o.push([t,a[0],0]),o[o.length-1]._idx=0):o.length&&o[0][0]==t?(t=s(o[0]),o.length=1,o[0][1]=a[t],o[0]._idx=t):(o.length=0,o.push([t,a[0]]),o[0]._idx=0),r(e),"function"==typeof i&&i(e)}function ze(t,e,n,i){var s=t.aoColumns[n];Ge(e,{},function(e){!1!==s.bSortable&&(t.oFeatures.bProcessing?(p(t,!0),setTimeout(function(){Ne(t,n,e.shiftKey,i),"ssp"!==A(t)&&p(t,!1)},0)):Ne(t,n,e.shiftKey,i))})}function We(e){var t,n,i=e.aLastSort,s=e.oClasses.sSortColumn,o=T(e),a=e.oFeatures;if(a.bSort&&a.bSortClasses){for(a=0,t=i.length;a<t;a++)n=i[a].src,M(g(e.aoData,"anCells",n)).removeClass(s+(a<2?a+1:3));for(a=0,t=o.length;a<t;a++)n=o[a].src,M(g(e.aoData,"anCells",n)).addClass(s+(a<2?a+1:3))}e.aLastSort=o}function $e(e,t){var n,i=e.aoColumns[t],s=R.ext.order[i.sSortDataType];s&&(n=s.call(e.oInstance,e,t,c(e,t)));for(var o,a=R.ext.type.order[i.sType+"-pre"],r=0,l=e.aoData.length;r<l;r++)(i=e.aoData[r])._aSortData||(i._aSortData=[]),i._aSortData[t]&&!s||(o=s?n[r]:w(e,r,t,"sort"),i._aSortData[t]=a?a(o):o)}function Be(n){var e;n.oFeatures.bStateSave&&!n.bDestroying&&(e={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:M.extend(!0,[],n.aaSorting),search:ve(n.oPreviousSearch),columns:M.map(n.aoColumns,function(e,t){return{visible:e.bVisible,search:ve(n.aoPreSearchCols[t])}})},I(n,"aoStateSaveParams","stateSaveParams",[n,e]),n.oSavedState=e,n.fnStateSaveCallback.call(n.oInstance,n,e))}function Ue(n){var e,t,i=n.aoColumns;if(n.oFeatures.bStateSave){var s=n.fnStateLoadCallback.call(n.oInstance,n);if(s&&s.time&&(e=I(n,"aoStateLoadParams","stateLoadParams",[n,s]),-1===M.inArray(!1,e))&&!(0<(e=n.iStateDuration)&&s.time<+new Date-1e3*e)&&i.length===s.columns.length){for(n.oLoadedState=M.extend(!0,{},s),s.start!==Lt&&(n._iDisplayStart=s.start,n.iInitDisplayStart=s.start),s.length!==Lt&&(n._iDisplayLength=s.length),s.order!==Lt&&(n.aaSorting=[],M.each(s.order,function(e,t){n.aaSorting.push(t[0]>=i.length?[0,t[1]]:t)})),s.search!==Lt&&M.extend(n.oPreviousSearch,be(s.search)),e=0,t=s.columns.length;e<t;e++){var o=s.columns[e];o.visible!==Lt&&(i[e].bVisible=o.visible),o.search!==Lt&&M.extend(n.aoPreSearchCols[e],be(o.search))}I(n,"aoStateLoaded","stateLoaded",[n,s])}}}function Ve(e){var t=R.settings;return-1!==(e=M.inArray(e,g(t,"nTable")))?t[e]:null}function L(e,t,n,i){if(n="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+n,i&&(n+=". For more information about this error, please see http://datatables.net/tn/"+i),t)Pt.console&&console.log&&console.log(n);else if(t=(t=R.ext).sErrMode||t.errMode,e&&I(e,null,"error",[e,i,n]),"alert"==t)alert(n);else{if("throw"==t)throw Error(n);"function"==typeof t&&t(e,i,n)}}function k(n,i,e,t){M.isArray(e)?M.each(e,function(e,t){M.isArray(t)?k(n,i,t[0],t[1]):k(n,i,t)}):(t===Lt&&(t=e),i[e]!==Lt&&(n[t]=i[e]))}function qe(e,t,n){var i,s;for(s in t)t.hasOwnProperty(s)&&(i=t[s],M.isPlainObject(i)?(M.isPlainObject(e[s])||(e[s]={}),M.extend(!0,e[s],i)):e[s]=n&&"data"!==s&&"aaData"!==s&&M.isArray(i)?i.slice():i);return e}function Ge(t,e,n){M(t).bind("click.DT",e,function(e){t.blur(),n(e)}).bind("keypress.DT",e,function(e){13===e.which&&(e.preventDefault(),n(e))}).bind("selectstart.DT",function(){return!1})}function D(e,t,n,i){n&&e[t].push({fn:n,sName:i})}function I(t,e,n,i){var s=[];return e&&(s=M.map(t[e].slice().reverse(),function(e){return e.fn.apply(t.oInstance,i)})),null!==n&&(e=M.Event(n+".dt"),M(t.nTable).trigger(e,i),s.push(e.result)),s}function Xe(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),i=e._iDisplayLength;n<=t&&(t=n-i),t-=t%i,e._iDisplayStart=t=-1===i||t<0?0:t}function Ze(e,t){var e=e.renderer,n=R.ext.renderer[t];return M.isPlainObject(e)&&e[t]?n[e[t]]||n._:"string"==typeof e&&n[e]||n._}function A(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Je(e,t){var n=[],n=Mt.numbers_length,i=Math.floor(n/2);return t<=n?n=d(0,t):e<=i?((n=d(0,n-2)).push("ellipsis"),n.push(t-1)):(t-1-i<=e?n=d(t-(n-2),t):((n=d(e-i+2,e+i-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Ye(n){M.each({num:function(e){return ut(e,n)},"num-fmt":function(e){return ut(e,n,bt)},"html-num":function(e){return ut(e,n,ft)},"html-num-fmt":function(e){return ut(e,n,ft,bt)}},function(e,t){O.type.order[e+n+"-pre"]=t,e.match(/^html\-/)&&(O.type.search[e+n]=O.type.search.html)})}function Ke(t){return function(){var e=[Ve(this[R.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return R.ext.internal[t].apply(this,e)}}function a(e){return!e||!0===e||"-"===e}function Qe(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null}function et(e,t,n){var i="string"==typeof e;return!!a(e)||(t&&i&&(e=yt(e,t)),n&&i&&(e=e.replace(bt,"")),!isNaN(parseFloat(e))&&isFinite(e))}function tt(e,t,n){return!!a(e)||(a(e)||"string"==typeof e)&&!!et(e.replace(ft,""),t,n)||null}function nt(e,t,n,i){var s=[],o=0,a=t.length;if(i!==Lt)for(;o<a;o++)e[t[o]][n]&&s.push(e[t[o]][n][i]);else for(;o<a;o++)s.push(e[t[o]][n]);return s}function d(e,t){var n,i=[];t===Lt?(t=0,n=e):(n=t,t=e);for(var s=t;s<n;s++)i.push(s);return i}function it(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&t.push(e[n]);return t}function st(i,s,e){var t,n;e&&(t=new F(i)).one("draw",function(){e(t.ajax.json())}),"ssp"==A(i)?r(i,s):(p(i,!0),(n=i.jqXHR)&&4!==n.readyState&&n.abort(),se(i,[],function(e){J(i);for(var t=0,n=(e=le(i,e)).length;t<n;t++)_(i,e[t]);r(i,s),p(i,!1)}))}function ot(e,t,n,i,s){var o,a,r,l,c,h=[],u=typeof t;for(t&&"string"!==u&&"function"!==u&&t.length!==Lt||(t=[t]),u=0,r=t.length;u<r;u++)for(l=0,c=(a=t[u]&&t[u].split?t[u].split(","):[t[u]]).length;l<c;l++)(o=n("string"==typeof a[l]?M.trim(a[l]):a[l]))&&o.length&&h.push.apply(h,o);if((e=O.selector[e]).length)for(u=0,r=e.length;u<r;u++)h=e[u](i,s,h);return h}function at(e){return(e=e||{}).filter&&e.search===Lt&&(e.search=e.filter),M.extend({search:"none",order:"current",page:"all"},e)}function rt(e){for(var t=0,n=e.length;t<n;t++)if(0<e[t].length)return e[0]=e[t],e[0].length=1,e.length=1,e.context=[e.context[t]],e;return e.length=0,e}function lt(e,t){var n=e.context;n.length&&(n=n[0].aoData[t!==Lt?t:e[0]])&&n._details&&(n._details.remove(),n._detailsShow=Lt,n._details=Lt)}function ct(e,t){var a,s,r,n=e.context;n.length&&e.length&&(e=n[0].aoData[e[0]])._details&&((e._detailsShow=t)?e._details.insertAfter(e.nTr):e._details.detach(),a=n[0],s=new F(a),r=a.aoData,s.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<g(r,"_details").length)&&(s.on("draw.dt.DT_details",function(e,t){a===t&&s.rows({page:"current"}).eq(0).each(function(e){(e=r[e])._detailsShow&&e._details.insertAfter(e.nTr)})}),s.on("column-visibility.dt.DT_details",function(e,t){if(a===t)for(var n,i=y(t),s=0,o=r.length;s<o;s++)(n=r[s])._details&&n._details.children("td[colspan]").attr("colspan",i)}),s.on("destroy.dt.DT_details",function(e,t){if(a===t)for(var n=0,i=r.length;n<i;n++)r[n]._details&&lt(s,n)}))}function ht(e,t,n,i,s){for(var n=[],i=0,o=s.length;i<o;i++)n.push(w(e,s[i],t));return n}function ut(e,t,n,i){return 0===e||e&&"-"!==e?+(e=(e=t?yt(e,t):e).replace&&(n&&(e=e.replace(n,"")),i)?e.replace(i,""):e):-1/0}var O,t,dt={},pt=/[\r\n]/g,ft=/<.*?>/g,gt=/^[\w\+\-]/,mt=/[\w\+\-]$/,vt=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),bt=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,yt=function(e,t){return dt[t]||(dt[t]=RegExp(ge(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(dt[t],"."):e},g=function(e,t,n){var i=[],s=0,o=e.length;if(n!==Lt)for(;s<o;s++)e[s]&&e[s][t]&&i.push(e[s][t][n]);else for(;s<o;s++)e[s]&&i.push(e[s][t]);return i},St=function(e){var t,n,i=[],s=e.length,o=0,a=0;e:for(;a<s;a++){for(t=e[a],n=0;n<o;n++)if(i[n]===t)continue e;i.push(t),o++}return i},i=function(e,t,n){e[t]!==Lt&&(e[n]=e[t])},_t=/\[.*?\]$/,m=/\(\)$/,wt=M("<div>")[0],Ct=wt.textContent!==Lt,xt=/<.*?>/g,R=function(f){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new F(e?Ve(this[O.iApiIndex]):this)},this.fnAddData=function(e,t){var n=this.api(!0),e=(M.isArray(e)&&(M.isArray(e[0])||M.isPlainObject(e[0]))?n.rows:n.row).add(e);return t!==Lt&&!t||n.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],i=n.oScroll;e===Lt||e?t.draw(!1):""===i.sX&&""===i.sY||Me(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();e!==Lt&&!e||t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var i=this.api(!0),s=(e=i.rows(e)).settings()[0],o=s.aoData[e[0][0]];return e.remove(),t&&t.call(this,s,o),n!==Lt&&!n||i.draw(),o},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,i,s,o){s=this.api(!0),(null===t||t===Lt?s:s.column(t)).search(e,n,i,o),s.draw()},this.fnGetData=function(e,t){var n,i=this.api(!0);return e!==Lt?(n=e.nodeName?e.nodeName.toLowerCase():"",t!==Lt||"td"==n||"th"==n?i.cell(e,t).data():i.row(e).data()||null):i.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==Lt?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){e=this.api(!0).page(e);t!==Lt&&!t||e.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),n!==Lt&&!n||e.columns.adjust().draw()},this.fnSettings=function(){return Ve(this[O.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,i,s){var o=this.api(!0);return(n===Lt||null===n?o.row(t):o.cell(t,n)).data(e),s!==Lt&&!s||o.columns.adjust(),i!==Lt&&!i||o.draw(),0},this.fnVersionCheck=O.fnVersionCheck;var e,g=this,m=f===Lt,v=this.length;for(e in m&&(f={}),this.oApi=this.internal=O.internal,R.ext.internal)e&&(this[e]=Ke(e));return this.each(function(){var e={},e=1<v?qe(e,f,!0):f,t=0,n=this.getAttribute("id"),i=!1,s=R.defaults,o=M(this);if("table"!=this.nodeName.toLowerCase())L(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{H(s),N(s.column),b(s,s,!0),b(s.column,s.column,!0),b(s,M.extend(e,o.data()));for(var a=R.settings,t=0,r=a.length;t<r;t++){var l=a[t];if(l.nTable==this||l.nTHead.parentNode==this||l.nTFoot&&l.nTFoot.parentNode==this){if(t=(e.bRetrieve!==Lt?e:s).bRetrieve,m||t)return l.oInstance;if((e.bDestroy!==Lt?e:s).bDestroy){l.oInstance.fnDestroy();break}return void L(l,0,"Cannot reinitialise DataTable",3)}if(l.sTableId==this.id){a.splice(t,1);break}}null!==n&&""!==n||(this.id=n="DataTables_Table_"+R.ext._unique++);var c,h=M.extend(!0,{},R.models.oSettings,{sDestroyWidth:o[0].style.width,sInstance:n,sTableId:n}),u=(h.nTable=this,h.oApi=g.internal,h.oInit=e,a.push(h),h.oInstance=1===g.length?g:o.dataTable(),H(e),e.oLanguage&&j(e.oLanguage),e.aLengthMenu&&!e.iDisplayLength&&(e.iDisplayLength=(M.isArray(e.aLengthMenu[0])?e.aLengthMenu[0]:e.aLengthMenu)[0]),e=qe(M.extend(!0,{},s),e),k(h.oFeatures,e,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),k(h,e,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),k(h.oScroll,e,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),k(h.oLanguage,e,"fnInfoCallback"),D(h,"aoDrawCallback",e.fnDrawCallback,"user"),D(h,"aoServerParams",e.fnServerParams,"user"),D(h,"aoStateSaveParams",e.fnStateSaveParams,"user"),D(h,"aoStateLoadParams",e.fnStateLoadParams,"user"),D(h,"aoStateLoaded",e.fnStateLoaded,"user"),D(h,"aoRowCallback",e.fnRowCallback,"user"),D(h,"aoRowCreatedCallback",e.fnCreatedRow,"user"),D(h,"aoHeaderCallback",e.fnHeaderCallback,"user"),D(h,"aoFooterCallback",e.fnFooterCallback,"user"),D(h,"aoInitComplete",e.fnInitComplete,"user"),D(h,"aoPreDrawCallback",e.fnPreDrawCallback,"user"),h.rowIdFn=C(e.rowId),n=h.oClasses,e.bJQueryUI?(M.extend(n,R.ext.oJUIClasses,e.oClasses),e.sDom===s.sDom&&"lfrtip"===s.sDom&&(h.sDom='<"H"lfr>t<"F"ip>'),h.renderer?M.isPlainObject(h.renderer)&&!h.renderer.header&&(h.renderer.header="jqueryui"):h.renderer="jqueryui"):M.extend(n,R.ext.classes,e.oClasses),o.addClass(n.sTable),""===h.oScroll.sX&&""===h.oScroll.sY||(h.oScroll.iBarWidth=Fe()),h.iInitDisplayStart===Lt&&(h.iInitDisplayStart=e.iDisplayStart,h._iDisplayStart=e.iDisplayStart),null!==e.iDeferLoading&&(h.bDeferLoading=!0,t=M.isArray(e.iDeferLoading),h._iRecordsDisplay=t?e.iDeferLoading[0]:e.iDeferLoading,h._iRecordsTotal=t?e.iDeferLoading[1]:e.iDeferLoading),h.oLanguage),t=(M.extend(!0,u,e.oLanguage),""!==u.sUrl&&(M.ajax({dataType:"json",url:u.sUrl,success:function(e){j(e),b(s.oLanguage,e),M.extend(!0,u,e),we(h)},error:function(){we(h)}}),i=!0),null===e.asStripeClasses&&(h.asStripeClasses=[n.sStripeOdd,n.sStripeEven]),h.asStripeClasses),d=o.children("tbody").find("tr").eq(0);if(-1!==M.inArray(!0,M.map(t,function(e){return d.hasClass(e)}))&&(M("tbody tr",this).removeClass(t.join(" ")),h.asDestroyStripes=t.slice()),a=[],0!==(t=this.getElementsByTagName("thead")).length&&(x(h.aoHeader,t[0]),a=ie(h)),null===e.aoColumns)for(l=[],t=0,r=a.length;t<r;t++)l.push(null);else l=e.aoColumns;for(t=0,r=l.length;t<r;t++)W(h,a?a[t]:null);V(h,e.aoColumnDefs,l,function(e,t){$(h,e,t)}),d.length&&(c=function(e,t){return null!==e.getAttribute("data-"+t)?t:null},M.each(K(h,d[0]).cells,function(e,t){var n,i=h.aoColumns[e];i.mData===e&&(n=c(t,"sort")||c(t,"order"),t=c(t,"filter")||c(t,"search"),null===n&&null===t||(i.mData={_:e+".display",sort:null!==n?e+".@data-"+n:Lt,type:null!==n?e+".@data-"+n:Lt,filter:null!==t?e+".@data-"+t:Lt},$(h,e)))}));var p=h.oFeatures;if(e.bStateSave&&(p.bStateSave=!0,Ue(h),D(h,"aoDrawCallback",Be,"state_save")),e.aaSorting===Lt)for(t=0,r=(a=h.aaSorting).length;t<r;t++)a[t][1]=h.aoColumns[t].asSorting[0];if(We(h),p.bSort&&D(h,"aoDrawCallback",function(){var e,n;h.bSorted&&(e=T(h),n={},M.each(e,function(e,t){n[t.src]=t.dir}),I(h,null,"order",[h,e,n]),He(h))}),D(h,"aoDrawCallback",function(){(h.bSorted||"ssp"===A(h)||p.bDeferRender)&&We(h)},"sc"),z(h),t=o.children("caption").each(function(){this._captionSide=o.css("caption-side")}),0===(r=o.children("thead")).length&&(r=M("<thead/>").appendTo(this)),h.nTHead=r[0],0===(r=o.children("tbody")).length&&(r=M("<tbody/>").appendTo(this)),h.nTBody=r[0],0===(r=0===(r=o.children("tfoot")).length&&0<t.length&&(""!==h.oScroll.sX||""!==h.oScroll.sY)?M("<tfoot/>").appendTo(this):r).length||0===r.children().length?o.addClass(n.sNoFooter):0<r.length&&(h.nTFoot=r[0],x(h.aoFooter,h.nTFoot)),e.aaData)for(t=0;t<e.aaData.length;t++)_(h,e.aaData[t]);else!h.bDeferLoading&&"dom"!=A(h)||q(h,M(h.nTBody).children("tr"));h.aiDisplay=h.aiDisplayMaster.slice(),!(h.bInitialised=!0)===i&&we(h)}}),g=null,this},Tt=[],l=Array.prototype,F=function(e,t){if(!(this instanceof F))return new F(e,t);function n(e){var t,n,i,s,o;t=e,s=R.settings,o=M.map(s,function(e){return e.nTable}),(e=t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=M.inArray(t,o))?[s[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?i=M(t):t instanceof M&&(i=t),i?i.map(function(){return-1!==(n=M.inArray(this,o))?s[n]:null}).toArray():void 0):[])&&a.push.apply(a,e)}var a=[];if(M.isArray(e))for(var i=0,s=e.length;i<s;i++)n(e[i]);else n(e);this.context=St(a),t&&this.push.apply(this,t.toArray?t.toArray():t),this.selector={rows:null,cols:null,opts:null},F.extend(this,this,Tt)},kt=((R.Api=F).prototype={any:function(){return 0!==this.count()},concat:l.concat,context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new F(t[e],this[e]):null},filter:function(e){var t=[];if(l.filter)t=l.filter.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)e.call(this,this[n],n,this)&&t.push(this[n]);return new F(this.context,t)},flatten:function(){var e=[];return new F(this.context,e.concat.apply(e,this.toArray()))},join:l.join,indexOf:l.indexOf||function(e,t){for(var n=t||0,i=this.length;n<i;n++)if(this[n]===e)return n;return-1},iterator:function(e,t,n,i){var s,o,a,r,l,c,h,u=[],d=this.context,p=this.selector;for("string"==typeof e&&(i=n,n=t,t=e,e=!1),o=0,a=d.length;o<a;o++){var f=new F(d[o]);if("table"===t)(s=n.call(f,d[o],o))!==Lt&&u.push(s);else if("columns"===t||"rows"===t)(s=n.call(f,d[o],this[o],o))!==Lt&&u.push(s);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t)for(h=this[o],"column-rows"===t&&(c=kt(d[o],p.opts)),r=0,l=h.length;r<l;r++)s=h[r],(s="cell"===t?n.call(f,d[o],s.row,s.column,o,r):n.call(f,d[o],s,o,r,c))!==Lt&&u.push(s)}return u.length||i?((t=(e=new F(d,e?u.concat.apply([],u):u)).selector).rows=p.rows,t.cols=p.cols,t.opts=p.opts,e):this},lastIndexOf:l.lastIndexOf||function(e,t){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(l.map)t=l.map.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)t.push(e.call(this,this[n],n));return new F(this.context,t)},pluck:function(t){return this.map(function(e){return e[t]})},pop:l.pop,push:l.push,reduce:l.reduce||function(e,t){return n(this,e,t,0,this.length,1)},reduceRight:l.reduceRight||function(e,t){return n(this,e,t,this.length-1,-1,-1)},reverse:l.reverse,selector:null,shift:l.shift,sort:l.sort,splice:l.splice,toArray:function(){return l.slice.call(this)},to$:function(){return M(this)},toJQuery:function(){return M(this)},unique:function(){return new F(this.context,St(this))},unshift:l.unshift},F.extend=function(e,t,n){if(n.length&&t&&(t instanceof F||t.__dt_wrapper))for(var i,s=0,o=n.length;s<o;s++)t[(i=n[s]).name]="function"==typeof i.val?function(t,n,i){return function(){var e=n.apply(t,arguments);return F.extend(e,e,i.methodExt),e}}(e,i.val,i):M.isPlainObject(i.val)?{}:i.val,t[i.name].__dt_wrapper=!0,F.extend(e,t[i.name],i.propExt)},F.register=t=function(e,t){if(M.isArray(e))for(var n=0,i=e.length;n<i;n++)F.register(e[n],t);else for(var s,o=e.split("."),a=Tt,n=0,i=o.length;n<i;n++){var r=(s=-1!==o[n].indexOf("()"))?o[n].replace("()",""):o[n];e:{for(var l=0,c=a.length;l<c;l++)if(a[l].name===r){l=a[l];break e}l=null}l||a.push(l={name:r,val:{},methodExt:[],propExt:[]}),n===i-1?l.val=t:a=s?l.methodExt:l.propExt}},F.registerPlural=e=function(e,t,n){F.register(e,n),F.register(t,function(){var e=n.apply(this,arguments);return e===this?this:e instanceof F?e.length?M.isArray(e[0])?new F(e.context,e[0]):e[0]:Lt:e})},t("tables()",function(e){var t,n,i;return t=e?(t=F,n=this.context,new t(e="number"==typeof e?[n[e]]:(i=M.map(n,function(e){return e.nTable}),M(i).filter(e).map(function(){var e=M.inArray(this,i);return n[e]}).toArray()))):this}),t("table()",function(e){var t=(e=this.tables(e)).context;return t.length?new F(t[0]):e}),e("tables().nodes()","table().node()",function(){return this.iterator("table",function(e){return e.nTable},1)}),e("tables().body()","table().body()",function(){return this.iterator("table",function(e){return e.nTBody},1)}),e("tables().header()","table().header()",function(){return this.iterator("table",function(e){return e.nTHead},1)}),e("tables().footer()","table().footer()",function(){return this.iterator("table",function(e){return e.nTFoot},1)}),e("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)}),t("draw()",function(t){return this.iterator("table",function(e){"page"===t?h(e):r(e,!1===(t="string"==typeof t?"full-hold"!==t:t))})}),t("page()",function(t){return t===Lt?this.page.info().page:this.iterator("table",function(e){De(e,t)})}),t("page.info()",function(){var e,t,n,i,s;return 0===this.context.length?Lt:(t=(e=this.context[0])._iDisplayStart,n=e._iDisplayLength,i=e.fnRecordsDisplay(),{page:(s=-1===n)?0:Math.floor(t/n),pages:s?1:Math.ceil(i/n),start:t,end:e.fnDisplayEnd(),length:n,recordsTotal:e.fnRecordsTotal(),recordsDisplay:i,serverSide:"ssp"===A(e)})}),t("page.len()",function(t){return t===Lt?0!==this.context.length?this.context[0]._iDisplayLength:Lt:this.iterator("table",function(e){xe(e,t)})}),t("ajax.json()",function(){var e=this.context;if(0<e.length)return e[0].json}),t("ajax.params()",function(){var e=this.context;if(0<e.length)return e[0].oAjaxData}),t("ajax.reload()",function(t,n){return this.iterator("table",function(e){st(e,!1===n,t)})}),t("ajax.url()",function(t){var e=this.context;return t===Lt?0===e.length?Lt:(e=e[0]).ajax?M.isPlainObject(e.ajax)?e.ajax.url:e.ajax:e.sAjaxSource:this.iterator("table",function(e){M.isPlainObject(e.ajax)?e.ajax.url=t:e.ajax=t})}),t("ajax.url().load()",function(t,n){return this.iterator("table",function(e){st(e,!1===n,t)})}),function(e,t){var n=[],i=e.aiDisplay,s=e.aiDisplayMaster,o=t.search,a=t.order,r=t.page;if("ssp"==A(e))return"removed"===o?[]:d(0,s.length);if("current"==r)for(s=e._iDisplayStart,a=e.fnDisplayEnd();s<a;s++)n.push(i[s]);else if("current"==a||"applied"==a)n="none"==o?s.slice():"applied"==o?i.slice():M.map(s,function(e){return-1===M.inArray(e,i)?e:null});else if("index"==a||"original"==a)for(s=0,a=e.aoData.length;s<a;s++)("none"==o||-1===(r=M.inArray(s,i))&&"removed"==o||0<=r&&"applied"==o)&&n.push(s);return n}),Dt=(t("rows()",function(e,t){e===Lt?e="":M.isPlainObject(e)&&(t=e,e="");var t=at(t),n=this.iterator("table",function(i){var s=t;return ot("row",e,function(n){var e,t=Qe(n);return null!==t&&!s||(e=kt(i,s),null!==t&&-1!==M.inArray(t,e))?[t]:n?"function"==typeof n?M.map(e,function(e){var t=i.aoData[e];return n(e,t._aData,t.nTr)?e:null}):(t=it(nt(i.aoData,e,"nTr")),n.nodeName&&-1!==M.inArray(n,t)?[n._DT_RowIndex]:"string"==typeof n&&"#"===n.charAt(0)&&(e=i.aIds[n.replace(/^#/,"")])!==Lt?[e.idx]:M(t).filter(n).map(function(){return this._DT_RowIndex}).toArray()):e},i,s)},1);return n.selector.rows=e,n.selector.opts=t,n}),t("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||Lt},1)}),t("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return nt(e.aoData,t,"_aData")},1)}),e("rows().cache()","row().cache()",function(n){return this.iterator("row",function(e,t){e=e.aoData[t];return"search"===n?e._aFilterData:e._aSortData},1)}),e("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(e,t){s(e,t,n)})}),e("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)}),e("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,i=0,s=n.length;i<s;i++)for(var o=0,a=this[i].length;o<a;o++){var r=n[i].rowIdFn(n[i].aoData[this[i][o]]._aData);t.push((!0===e?"#":"")+r)}return new F(n,t)}),e("rows().remove()","row().remove()",function(){var a=this;return this.iterator("row",function(e,t,n){var i=e.aoData;i.splice(t,1);for(var s=0,o=i.length;s<o;s++)null!==i[s].nTr&&(i[s].nTr._DT_RowIndex=s);Y(e.aiDisplayMaster,t),Y(e.aiDisplay,t),Y(a[n],t,!1),Xe(e)}),this.iterator("table",function(e){for(var t=0,n=e.aoData.length;t<n;t++)e.aoData[t].idx=t}),this}),t("rows.add()",function(o){var e=this.iterator("table",function(e){for(var t,n=[],i=0,s=o.length;i<s;i++)(t=o[i]).nodeName&&"TR"===t.nodeName.toUpperCase()?n.push(q(e,t)[0]):n.push(_(e,t));return n},1),t=this.rows(-1);return t.pop(),t.push.apply(t,e.toArray()),t}),t("row()",function(e,t){return rt(this.rows(e,t))}),t("row().data()",function(e){var t=this.context;return e===Lt?t.length&&this.length?t[0].aoData[this[0]]._aData:Lt:(t[0].aoData[this[0]]._aData=e,s(t[0],this[0],"data"),this)}),t("row().node()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]].nTr||null}),t("row.add()",function(t){t instanceof M&&t.length&&(t=t[0]);var e=this.iterator("table",function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?q(e,t)[0]:_(e,t)});return this.row(e[0])}),t("row().child()",function(e,t){var s,o,a,n=this.context;return e===Lt?n.length&&this.length?n[0].aoData[this[0]]._details:Lt:(!0===e?this.child.show():!1===e?lt(this):n.length&&this.length&&(s=n[0],n=n[0].aoData[this[0]],o=[],(a=function(e,t){if(M.isArray(e)||e instanceof M)for(var n=0,i=e.length;n<i;n++)a(e[n],t);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?o.push(e):(n=M("<tr><td/></tr>").addClass(t),M("td",n).addClass(t).html(e)[0].colSpan=y(s),o.push(n[0]))})(e,t),n._details&&n._details.remove(),n._details=M(o),n._detailsShow)&&n._details.insertAfter(n.nTr),this)}),t(["row().child.show()","row().child().show()"],function(){return ct(this,!0),this}),t(["row().child.hide()","row().child().hide()"],function(){return ct(this,!1),this}),t(["row().child.remove()","row().child().remove()"],function(){return lt(this),this}),t("row().child.isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}),/^(.+):(name|visIdx|visible)$/),e=(t("columns()",function(t,n){t===Lt?t="":M.isPlainObject(t)&&(n=t,t="");var n=at(n),e=this.iterator("table",function(o){var e=t,a=n,r=o.aoColumns,l=g(r,"sName"),c=g(r,"nTh");return ot("column",e,function(n){var i,e=Qe(n);if(""===n)return d(r.length);if(null!==e)return[0<=e?e:r.length+e];if("function"==typeof n)return i=kt(o,a),M.map(r,function(e,t){return n(t,ht(o,t,0,0,i),c[t])?t:null});var t,s="string"==typeof n?n.match(Dt):"";if(!s)return M(c).filter(n).map(function(){return M.inArray(this,c)}).toArray();switch(s[2]){case"visIdx":case"visible":return(e=parseInt(s[1],10))<0?[(t=M.map(r,function(e,t){return e.bVisible?t:null}))[t.length+e]]:[B(o,e)];case"name":return M.map(l,function(e,t){return e===s[1]?t:null})}},o,a)},1);return e.selector.cols=t,e.selector.opts=n,e}),e("columns().header()","column().header()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),e("columns().footer()","column().footer()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),e("columns().data()","column().data()",function(){return this.iterator("column-rows",ht,1)}),e("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),e("columns().cache()","column().cache()",function(o){return this.iterator("column-rows",function(e,t,n,i,s){return nt(e.aoData,s,"search"===o?"_aFilterData":"_aSortData",t)},1)}),e("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,i,s){return nt(e.aoData,s,"anCells",t)},1)}),e("columns().visible()","column().visible()",function(c,h){return this.iterator("column",function(e,t){if(c===Lt)return e.aoColumns[t].bVisible;var n,i=e.aoColumns,s=i[t],o=e.aoData;if(c!==Lt&&s.bVisible!==c){if(c)for(var a=M.inArray(!0,g(i,"bVisible"),t+1),r=0,l=o.length;r<l;r++)n=o[r].nTr,i=o[r].anCells,n&&n.insertBefore(i[t],i[a]||null);else M(g(e.aoData,"anCells",t)).detach();s.bVisible=c,u(e,e.aoHeader),u(e,e.aoFooter),(h===Lt||h)&&(v(e),e.oScroll.sX||e.oScroll.sY)&&Me(e),I(e,null,"column-visibility",[e,t,c]),Be(e)}})}),e("columns().indexes()","column().index()",function(n){return this.iterator("column",function(e,t){return"visible"===n?c(e,t):t},1)}),t("columns.adjust()",function(){return this.iterator("table",function(e){v(e)},1)}),t("column.index()",function(e,t){var n;if(0!==this.context.length)return n=this.context[0],"fromVisible"===e||"toData"===e?B(n,t):"fromData"===e||"toVisible"===e?c(n,t):void 0}),t("column()",function(e,t){return rt(this.columns(e,t))}),t("cells()",function(g,e,m){var n,i,s,o,a,r,l,t;return M.isPlainObject(g)&&(g.row===Lt?(m=g,g=null):(m=e,e=null)),M.isPlainObject(e)&&(m=e,e=null),null===e||e===Lt?this.iterator("table",function(n){var i,s,o,a,r,l,c,e=g,t=at(m),h=n.aoData,u=kt(n,t),d=it(nt(h,u,"anCells")),p=M([].concat.apply([],d)),f=n.aoColumns.length;return ot("cell",e,function(e){var t="function"==typeof e;if(null===e||e===Lt||t){for(s=[],o=0,a=u.length;o<a;o++)for(i=u[o],r=0;r<f;r++)l={row:i,column:r},(!t||(c=n.aoData[i],e(l,w(n,i,r),c.anCells?c.anCells[r]:null)))&&s.push(l);return s}return M.isPlainObject(e)?[e]:p.filter(e).map(function(e,t){return{row:i=t.parentNode._DT_RowIndex,column:M.inArray(t,h[i].anCells)}}).toArray()},n,t)}):(n=this.columns(e,m),i=this.rows(g,m),t=this.iterator("table",function(e,t){for(s=[],o=0,a=i[t].length;o<a;o++)for(r=0,l=n[t].length;r<l;r++)s.push({row:i[t][o],column:n[t][r]});return s},1),M.extend(t.selector,{cols:e,rows:g,opts:m}),t)}),e("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){return(e=e.aoData[t].anCells)?e[n]:Lt},1)}),t("cells().data()",function(){return this.iterator("cell",function(e,t,n){return w(e,t,n)},1)}),e("cells().cache()","cell().cache()",function(i){return i="search"===i?"_aFilterData":"_aSortData",this.iterator("cell",function(e,t,n){return e.aoData[t][i][n]},1)}),e("cells().render()","cell().render()",function(i){return this.iterator("cell",function(e,t,n){return w(e,t,n,i)},1)}),e("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:c(e,n)}},1)}),e("cells().invalidate()","cell().invalidate()",function(i){return this.iterator("cell",function(e,t,n){s(e,t,i,n)})}),t("cell()",function(e,t,n){return rt(this.cells(e,t,n))}),t("cell().data()",function(e){var t=this.context,n=this[0];return e===Lt?t.length&&n.length?w(t[0],n[0].row,n[0].column):Lt:(G(t[0],n[0].row,n[0].column,e),s(t[0],n[0].row,"data",n[0].column),this)}),t("order()",function(t,e){var n=this.context;return t===Lt?0!==n.length?n[0].aaSorting:Lt:("number"==typeof t?t=[[t,e]]:M.isArray(t[0])||(t=Array.prototype.slice.call(arguments)),this.iterator("table",function(e){e.aaSorting=t.slice()}))}),t("order.listener()",function(t,n,i){return this.iterator("table",function(e){ze(e,t,n,i)})}),t(["columns().order()","column().order()"],function(i){var s=this;return this.iterator("table",function(e,t){var n=[];M.each(s[t],function(e,t){n.push([t,i])}),e.aaSorting=n})}),t("search()",function(t,n,i,s){var e=this.context;return t===Lt?0!==e.length?e[0].oPreviousSearch.sSearch:Lt:this.iterator("table",function(e){e.oFeatures.bFilter&&he(e,M.extend({},e.oPreviousSearch,{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===s||s}),1)})}),e("columns().search()","column().search()",function(i,s,o,a){return this.iterator("column",function(e,t){var n=e.aoPreSearchCols;if(i===Lt)return n[t].sSearch;e.oFeatures.bFilter&&(M.extend(n[t],{sSearch:i+"",bRegex:null!==s&&s,bSmart:null===o||o,bCaseInsensitive:null===a||a}),he(e,e.oPreviousSearch,1))})}),t("state()",function(){return this.context.length?this.context[0].oSavedState:null}),t("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})}),t("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),t("state.save()",function(){return this.iterator("table",function(e){Be(e)})}),R.versionCheck=R.fnVersionCheck=function(e){for(var t,n,i=R.version.split("."),s=0,o=(e=e.split(".")).length;s<o;s++)if((t=parseInt(i[s],10)||0)!==(n=parseInt(e[s],10)||0))return n<t;return!0},R.isDataTable=R.fnIsDataTable=function(e){var s=M(e).get(0),o=!1;return M.each(R.settings,function(e,t){var n=t.nScrollHead?M("table",t.nScrollHead)[0]:null,i=t.nScrollFoot?M("table",t.nScrollFoot)[0]:null;t.nTable!==s&&n!==s&&i!==s||(o=!0)}),o},R.tables=R.fnTables=function(t){var e=!1,n=(M.isPlainObject(t)&&(e=t.api,t=t.visible),M.map(R.settings,function(e){if(!t||M(e.nTable).is(":visible"))return e.nTable}));return e?new F(n):n},R.util={throttle:Ee,escapeRegex:ge},R.camelToHungarian=b,t("$()",function(e,t){t=this.rows(t).nodes(),t=M(t);return M([].concat(t.filter(e).toArray(),t.find(e).toArray()))}),M.each(["on","one","off"],function(e,n){t(n+"()",function(){var e=Array.prototype.slice.call(arguments),t=(e[0].match(/\.dt\b/)||(e[0]+=".dt"),M(this.tables().nodes()));return t[n].apply(t,e),this})}),t("clear()",function(){return this.iterator("table",function(e){J(e)})}),t("settings()",function(){return new F(this.context,this.context)}),t("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),t("data()",function(){return this.iterator("table",function(e){return g(e.aoData,"_aData")}).flatten()}),t("destroy()",function(u){return u=u||!1,this.iterator("table",function(t){var n,e=t.nTableWrapper.parentNode,i=t.oClasses,s=t.nTable,o=t.nTBody,a=t.nTHead,r=t.nTFoot,l=M(s),o=M(o),c=M(t.nTableWrapper),h=M.map(t.aoData,function(e){return e.nTr});t.bDestroying=!0,I(t,"aoDestroyCallback","destroy",[t]),u||new F(t).columns().visible(!0),c.unbind(".DT").find(":not(tbody *)").unbind(".DT"),M(Pt).unbind(".DT-"+t.sInstance),s!=a.parentNode&&(l.children("thead").detach(),l.append(a)),r&&s!=r.parentNode&&(l.children("tfoot").detach(),l.append(r)),t.aaSorting=[],t.aaSortingFixed=[],We(t),M(h).removeClass(t.asStripeClasses.join(" ")),M("th, td",a).removeClass(i.sSortable+" "+i.sSortableAsc+" "+i.sSortableDesc+" "+i.sSortableNone),t.bJUI&&(M("th span."+i.sSortIcon+", td span."+i.sSortIcon,a).detach(),M("th, td",a).each(function(){var e=M("div."+i.sSortJUIWrapper,this);M(this).append(e.contents()),e.detach()})),o.children().detach(),o.append(h),l[a=u?"remove":"detach"](),c[a](),!u&&e&&(e.insertBefore(s,t.nTableReinsertBefore),l.css("width",t.sDestroyWidth).removeClass(i.sTable),n=t.asDestroyStripes.length)&&o.children().each(function(e){M(this).addClass(t.asDestroyStripes[e%n])}),-1!==(e=M.inArray(t,R.settings))&&R.settings.splice(e,1)})}),M.each(["column","row","cell"],function(e,a){t(a+"s().every()",function(o){return this.iterator(a,function(e,t,n,i,s){o.call(new F(e)[a](t,"cell"===a?n:Lt),t,n,i,s)})})}),t("i18n()",function(e,t,n){var i=this.context[0];return(e=C(e)(i.oLanguage))===Lt&&(e=t),(e=n!==Lt&&M.isPlainObject(e)?e[n]!==Lt?e[n]:e._:e).replace("%d",n)}),R.version="1.10.8",R.settings=[],R.models={},R.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},R.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},R.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},R.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:M.extend({},R.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(R.defaults),R.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(R.defaults.column),R.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:Lt,oAjaxData:Lt,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==A(this)?+this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==A(this)?+this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,i=this.aiDisplay.length,s=this.oFeatures,o=s.bPaginate;return s.bServerSide?!1===o||-1===e?t+i:Math.min(t+e,this._iRecordsDisplay):!o||i<n||-1===e?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},R.ext=O={buttons:{},classes:{},errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:R.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:R.version},M.extend(O,{afnFiltering:O.search,aTypes:O.type.detect,ofnSearch:O.type.search,oSort:O.type.order,afnSortData:O.order,aoFeatures:O.feature,oApi:O.internal,oStdClasses:O.classes,oPagination:O.pager}),M.extend(R.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),"ui-state-default"),It="css_right ui-icon ui-icon-",At="fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix",Mt=(M.extend(R.ext.oJUIClasses,R.ext.classes,{sPageButton:"fg-button ui-button "+e,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:e+" sorting_asc",sSortDesc:e+" sorting_desc",sSortable:e+" sorting",sSortableAsc:e+" sorting_asc_disabled",sSortableDesc:e+" sorting_desc_disabled",sSortableNone:e+" sorting_disabled",sSortJUIAsc:It+"triangle-1-n",sSortJUIDesc:It+"triangle-1-s",sSortJUI:It+"carat-2-n-s",sSortJUIAscAllowed:It+"carat-1-n",sSortJUIDescAllowed:It+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+e,sScrollFoot:"dataTables_scrollFoot "+e,sHeaderTH:e,sFooterTH:e,sJUIHeader:At+" ui-corner-tl ui-corner-tr",sJUIFooter:At+" ui-corner-bl ui-corner-br"}),R.ext.pager);return M.extend(Mt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[Je(e,t)]},simple_numbers:function(e,t){return["previous",Je(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Je(e,t),"next","last"]},_numbers:Je,numbers_length:7}),M.extend(!0,R.ext.renderer,{pageButton:{_:function(r,e,l,t,c,h){var u,d,n,p=r.oClasses,f=r.oLanguage.oPaginate,g=0,m=function(e,t){for(var n,i,s=function(e){De(r,e.data.action,!0)},o=0,a=t.length;o<a;o++)if(i=t[o],M.isArray(i))n=M("<"+(i.DT_el||"div")+"/>").appendTo(e),m(n,i);else{switch(u=null,d="",i){case"ellipsis":e.append('<span class="ellipsis">&#x2026;</span>');break;case"first":u=f.sFirst,d=i+(0<c?"":" "+p.sPageButtonDisabled);break;case"previous":u=f.sPrevious,d=i+(0<c?"":" "+p.sPageButtonDisabled);break;case"next":u=f.sNext,d=i+(c<h-1?"":" "+p.sPageButtonDisabled);break;case"last":u=f.sLast,d=i+(c<h-1?"":" "+p.sPageButtonDisabled);break;default:u=i+1,d=c===i?p.sPageButtonActive:""}null!==u&&(Ge(n=M("<a>",{class:p.sPageButton+" "+d,"aria-controls":r.sTableId,"data-dt-idx":g,tabindex:r.iTabIndex,id:0===l&&"string"==typeof i?r.sTableId+"_"+i:null}).html(u).appendTo(e),{action:i},s),g++)}};try{n=M(e).find(Et.activeElement).data("dt-idx")}catch(e){}m(M(e).empty(),t),n&&M(e).find("[data-dt-idx="+n+"]").focus()}}}),M.extend(R.ext.type.detect,[function(e,t){t=t.oLanguage.sDecimal;return et(e,t)?"num"+t:null},function(e){var t;return(!e||e instanceof Date||gt.test(e)&&mt.test(e))&&(null!==(t=Date.parse(e))&&!isNaN(t)||a(e))?"date":null},function(e,t){t=t.oLanguage.sDecimal;return et(e,t,!0)?"num-fmt"+t:null},function(e,t){t=t.oLanguage.sDecimal;return tt(e,t)?"html-num"+t:null},function(e,t){t=t.oLanguage.sDecimal;return tt(e,t,!0)?"html-num-fmt"+t:null},function(e){return a(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),M.extend(R.ext.type.search,{html:function(e){return a(e)?e:"string"==typeof e?e.replace(pt," ").replace(ft,""):""},string:function(e){return!a(e)&&"string"==typeof e?e.replace(pt," "):e}}),M.extend(O.type.order,{"date-pre":function(e){return Date.parse(e)||0},"html-pre":function(e){return a(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return a(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e<t?-1:t<e?1:0},"string-desc":function(e,t){return e<t?1:t<e?-1:0}}),Ye(""),M.extend(!0,R.ext.renderer,{header:{_:function(s,o,a,r){M(s.nTable).on("order.dt.DT",function(e,t,n,i){s===t&&(e=a.idx,o.removeClass(a.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[e]?r.sSortAsc:"desc"==i[e]?r.sSortDesc:a.sSortingClass))})},jqueryui:function(s,o,a,r){M("<div/>").addClass(r.sSortJUIWrapper).append(o.contents()).append(M("<span/>").addClass(r.sSortIcon+" "+a.sSortingClassJUI)).appendTo(o),M(s.nTable).on("order.dt.DT",function(e,t,n,i){s===t&&(e=a.idx,o.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[e]?r.sSortAsc:"desc"==i[e]?r.sSortDesc:a.sSortingClass),o.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==i[e]?r.sSortJUIAsc:"desc"==i[e]?r.sSortJUIDesc:a.sSortingClassJUI))})}}}),R.render={number:function(i,s,o,a,r){return{display:function(e){var t,n;return"number"!=typeof e&&"string"!=typeof e?e:(t=e<0?"-":"",e=Math.abs(parseFloat(e)),n=parseInt(e,10),e=o?s+(e-n).toFixed(o).substring(2):"",t+(a||"")+n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,i)+e+(r||""))}}}},M.extend(R.ext.internal,{_fnExternApiFunc:Ke,_fnBuildAjax:se,_fnAjaxUpdate:oe,_fnAjaxParameters:ae,_fnAjaxUpdateDraw:re,_fnAjaxDataSrc:le,_fnAddColumn:W,_fnColumnOptions:$,_fnAdjustColumnSizing:v,_fnVisibleToColumnIndex:B,_fnColumnIndexToVisible:c,_fnVisbleColumns:y,_fnGetColumns:S,_fnColumnTypes:U,_fnApplyColumnDefs:V,_fnHungarianMap:o,_fnCamelToHungarian:b,_fnLanguageCompat:j,_fnBrowserDetect:z,_fnAddData:_,_fnAddTr:q,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==Lt?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,t,n){return M.inArray(n,e.aoData[t].anCells)},_fnGetCellData:w,_fnSetCellData:G,_fnSplitObjNotation:X,_fnGetObjectDataFn:C,_fnSetObjectDataFn:f,_fnGetDataMaster:Z,_fnClearTable:J,_fnDeleteIndex:Y,_fnInvalidate:s,_fnGetRowElements:K,_fnCreateTr:Q,_fnBuildHead:te,_fnDrawHead:u,_fnDraw:h,_fnReDraw:r,_fnAddOptionsHtml:ne,_fnDetectHeader:x,_fnGetUniqueThs:ie,_fnFeatureHtmlFilter:ce,_fnFilterComplete:he,_fnFilterCustom:ue,_fnFilterColumn:de,_fnFilter:pe,_fnFilterCreateSearch:fe,_fnEscapeRegex:ge,_fnFilterData:me,_fnFeatureHtmlInfo:ye,_fnUpdateInfo:Se,_fnInfoMacros:_e,_fnInitialise:we,_fnInitComplete:Ce,_fnLengthChange:xe,_fnFeatureHtmlLength:Te,_fnFeatureHtmlPaginate:ke,_fnPageChange:De,_fnFeatureHtmlProcessing:Ie,_fnProcessingDisplay:p,_fnFeatureHtmlTable:Ae,_fnScrollDraw:Me,_fnApplyToChildren:P,_fnCalculateColumnWidths:Pe,_fnThrottle:Ee,_fnConvertToWidth:Le,_fnGetWidestNode:Oe,_fnGetMaxLenString:Re,_fnStringToCss:E,_fnScrollBarWidth:Fe,_fnSortFlatten:T,_fnSort:je,_fnSortAria:He,_fnSortListener:Ne,_fnSortAttachListener:ze,_fnSortingClasses:We,_fnSortData:$e,_fnSaveState:Be,_fnLoadState:Ue,_fnSettingsFromNode:Ve,_fnLog:L,_fnMap:k,_fnBindAction:Ge,_fnCallbackReg:D,_fnCallbackFire:I,_fnLengthOverflow:Xe,_fnRenderer:Ze,_fnDataSource:A,_fnRowAttributes:ee,_fnCalculateEnd:function(){}}),M.fn.dataTable=R,M.fn.dataTableSettings=R.settings,M.fn.dataTableExt=R.ext,M.fn.DataTable=function(e){return M(this).dataTable(e).api()},M.each(R,function(e,t){M.fn.DataTable[e]=t}),M.fn.dataTable}"function"==typeof define&&define.amd?define("datatables",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.dataTable&&e(jQuery)}(window,document);
     1function ClusterIcon(e,t){e.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.cluster_=e,this.className_=e.getMarkerClusterer().getClusterClass(),this.styles_=t,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(e.getMap())}function Cluster(e){this.markerClusterer_=e,this.map_=e.getMap(),this.gridSize_=e.getGridSize(),this.minClusterSize_=e.getMinimumClusterSize(),this.averageCenter_=e.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,e.getStyles())}function MarkerClusterer(e,t,n){this.extend(MarkerClusterer,google.maps.OverlayView),t=t||[],n=n||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=n.gridSize||60,this.minClusterSize_=n.minimumClusterSize||2,this.maxZoom_=n.maxZoom||null,this.styles_=n.styles||[],this.title_=n.title||"",this.zoomOnClick_=!0,void 0!==n.zoomOnClick&&(this.zoomOnClick_=n.zoomOnClick),this.averageCenter_=!1,void 0!==n.averageCenter&&(this.averageCenter_=n.averageCenter),this.ignoreHidden_=!1,void 0!==n.ignoreHidden&&(this.ignoreHidden_=n.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==n.enableRetinaIcons&&(this.enableRetinaIcons_=n.enableRetinaIcons),this.imagePath_=n.imagePath||MarkerClusterer.IMAGE_PATH,this.imageExtension_=n.imageExtension||MarkerClusterer.IMAGE_EXTENSION,this.imageSizes_=n.imageSizes||MarkerClusterer.IMAGE_SIZES,this.calculator_=n.calculator||MarkerClusterer.CALCULATOR,this.batchSize_=n.batchSize||MarkerClusterer.BATCH_SIZE,this.batchSizeIE_=n.batchSizeIE||MarkerClusterer.BATCH_SIZE_IE,this.clusterClass_=n.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(t,!0),this.setMap(e)}function send_icon_to_map(e,t){jQuery("#remove_image"+t).show(),jQuery("#image_"+t).attr("src",e).show(),jQuery("#input_"+t).val(e),tb_remove()}function ClusterIcon(e,t){e.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.cluster_=e,this.className_=e.getMarkerClusterer().getClusterClass(),this.styles_=t,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(e.getMap())}function Cluster(e){this.markerClusterer_=e,this.map_=e.getMap(),this.gridSize_=e.getGridSize(),this.minClusterSize_=e.getMinimumClusterSize(),this.averageCenter_=e.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,e.getStyles())}function MarkerClusterer(e,t,n){this.extend(MarkerClusterer,google.maps.OverlayView),t=t||[],n=n||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=n.gridSize||60,this.minClusterSize_=n.minimumClusterSize||2,this.maxZoom_=n.maxZoom||null,this.styles_=n.styles||[],this.title_=n.title||"",this.zoomOnClick_=!0,void 0!==n.zoomOnClick&&(this.zoomOnClick_=n.zoomOnClick),this.averageCenter_=!1,void 0!==n.averageCenter&&(this.averageCenter_=n.averageCenter),this.ignoreHidden_=!1,void 0!==n.ignoreHidden&&(this.ignoreHidden_=n.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==n.enableRetinaIcons&&(this.enableRetinaIcons_=n.enableRetinaIcons),this.imagePath_=n.imagePath||MarkerClusterer.IMAGE_PATH,this.imageExtension_=n.imageExtension||MarkerClusterer.IMAGE_EXTENSION,this.imageSizes_=n.imageSizes||MarkerClusterer.IMAGE_SIZES,this.calculator_=n.calculator||MarkerClusterer.CALCULATOR,this.batchSize_=n.batchSize||MarkerClusterer.BATCH_SIZE,this.batchSizeIE_=n.batchSizeIE||MarkerClusterer.BATCH_SIZE_IE,this.clusterClass_=n.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(t,!0),this.setMap(e)}!function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t,e,e.document)}:n(jQuery,window,document)}(function(L,$,b,O){function d(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null}function l(e,t,n){var i="string"==typeof e;return!!s(e)||(t&&i&&(e=G(e,t)),n&&i&&(e=e.replace(q,"")),!isNaN(parseFloat(e))&&isFinite(e))}function n(e,t,n){var i;return!!s(e)||(s(i=e)||"string"==typeof i)&&!!l(e.replace(B,""),t,n)||null}function v(e,t,n,i){var s=[],o=0,a=t.length;if(i!==O)for(;o<a;o++)e[t[o]][n]&&s.push(e[t[o]][n][i]);else for(;o<a;o++)s.push(e[t[o]][n]);return s}function u(e,t){var n,i=[];t===O?(t=0,n=e):(n=t,t=e);for(var s=t;s<n;s++)i.push(s);return i}function _(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&t.push(e[n]);return t}var f,t,e,C=function(y){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new W(e?ut(this[f.iApiIndex]):this)},this.fnAddData=function(e,t){var n=this.api(!0),e=(L.isArray(e)&&(L.isArray(e[0])||L.isPlainObject(e[0]))?n.rows:n.row).add(e);return t!==O&&!t||n.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],i=n.oScroll;e===O||e?t.draw(!1):""===i.sX&&""===i.sY||Je(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();e!==O&&!e||t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var i=this.api(!0),e=i.rows(e),s=e.settings()[0],o=s.aoData[e[0][0]];return e.remove(),t&&t.call(this,s,o),n!==O&&!n||i.draw(),o},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,i,s,o){var a=this.api(!0);(null===t||t===O?a:a.column(t)).search(e,n,i,o),a.draw()},this.fnGetData=function(e,t){var n,i=this.api(!0);return e!==O?(n=e.nodeName?e.nodeName.toLowerCase():"",t!==O||"td"==n||"th"==n?i.cell(e,t).data():i.row(e).data()||null):i.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==O?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(n=t.cell(e).index()).row,n.columnVisible,n.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){e=this.api(!0).page(e);t!==O&&!t||e.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t);n!==O&&!n||e.columns.adjust().draw()},this.fnSettings=function(){return ut(this[f.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,i,s){var o=this.api(!0);return(n===O||null===n?o.row(t):o.cell(t,n)).data(e),s!==O&&!s||o.columns.adjust(),i!==O&&!i||o.draw(),0},this.fnVersionCheck=f.fnVersionCheck;var e,S=this,_=y===O,w=this.length;for(e in _&&(y={}),this.oApi=this.internal=f.internal,C.ext.internal)e&&(this[e]=Ot(e));return this.each(function(){var i=1<w?dt({},y,!0):y,s=0,e=this.getAttribute("id"),o=!1,t=C.defaults,a=L(this);if("table"!=this.nodeName.toLowerCase())z(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{Y(t),K(t.column),x(t,t,!0),x(t.column,t.column,!0),x(t,L.extend(i,a.data()));for(var n=C.settings,s=0,r=n.length;s<r;s++){var l=n[s];if(l.nTable==this||l.nTHead&&l.nTHead.parentNode==this||l.nTFoot&&l.nTFoot.parentNode==this){var c=(i.bRetrieve!==O?i:t).bRetrieve,h=(i.bDestroy!==O?i:t).bDestroy;if(_||c)return l.oInstance;if(h){l.oInstance.fnDestroy();break}return void z(l,0,"Cannot reinitialise DataTable",3)}if(l.sTableId==this.id){n.splice(s,1);break}}null!==e&&""!==e||(e="DataTables_Table_"+C.ext._unique++,this.id=e);var u,d,p=L.extend(!0,{},C.models.oSettings,{sDestroyWidth:a[0].style.width,sInstance:e,sTableId:e}),f=(p.nTable=this,p.oApi=S.internal,p.oInit=i,n.push(p),p.oInstance=1===S.length?S:a.dataTable(),Y(i),J(i.oLanguage),i.aLengthMenu&&!i.iDisplayLength&&(i.iDisplayLength=(L.isArray(i.aLengthMenu[0])?i.aLengthMenu[0]:i.aLengthMenu)[0]),i=dt(L.extend(!0,{},t),i),A(p.oFeatures,i,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),A(p,i,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),A(p.oScroll,i,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),A(p.oLanguage,i,"fnInfoCallback"),M(p,"aoDrawCallback",i.fnDrawCallback,"user"),M(p,"aoServerParams",i.fnServerParams,"user"),M(p,"aoStateSaveParams",i.fnStateSaveParams,"user"),M(p,"aoStateLoadParams",i.fnStateLoadParams,"user"),M(p,"aoStateLoaded",i.fnStateLoaded,"user"),M(p,"aoRowCallback",i.fnRowCallback,"user"),M(p,"aoRowCreatedCallback",i.fnCreatedRow,"user"),M(p,"aoHeaderCallback",i.fnHeaderCallback,"user"),M(p,"aoFooterCallback",i.fnFooterCallback,"user"),M(p,"aoInitComplete",i.fnInitComplete,"user"),M(p,"aoPreDrawCallback",i.fnPreDrawCallback,"user"),p.rowIdFn=D(i.rowId),Q(p),p.oClasses),g=(L.extend(f,C.ext.classes,i.oClasses),a.addClass(f.sTable),p.iInitDisplayStart===O&&(p.iInitDisplayStart=i.iDisplayStart,p._iDisplayStart=i.iDisplayStart),null!==i.iDeferLoading&&(p.bDeferLoading=!0,e=L.isArray(i.iDeferLoading),p._iRecordsDisplay=e?i.iDeferLoading[0]:i.iDeferLoading,p._iRecordsTotal=e?i.iDeferLoading[1]:i.iDeferLoading),p.oLanguage),e=(L.extend(!0,g,i.oLanguage),g.sUrl&&(L.ajax({dataType:"json",url:g.sUrl,success:function(e){J(e),x(t.oLanguage,e),L.extend(!0,g,e),$e(p)},error:function(){$e(p)}}),o=!0),null===i.asStripeClasses&&(p.asStripeClasses=[f.sStripeOdd,f.sStripeEven]),p.asStripeClasses),m=a.children("tbody").find("tr").eq(0),v=(-1!==L.inArray(!0,L.map(e,function(e,t){return m.hasClass(e)}))&&(L("tbody tr",this).removeClass(e.join(" ")),p.asDestroyStripes=e.slice()),[]),e=this.getElementsByTagName("thead");if(0!==e.length&&(Se(p.aoHeader,e[0]),v=_e(p)),null===i.aoColumns)for(u=[],s=0,r=v.length;s<r;s++)u.push(null);else u=i.aoColumns;for(s=0,r=u.length;s<r;s++)te(p,v?v[s]:null);oe(p,i.aoColumnDefs,u,function(e,t){ne(p,e,t)}),m.length&&(d=function(e,t){return null!==e.getAttribute("data-"+t)?t:null},L(m[0]).children("th, td").each(function(e,t){var n,i=p.aoColumns[e];i.mData===e&&(n=d(t,"sort")||d(t,"order"),t=d(t,"filter")||d(t,"search"),null===n&&null===t||(i.mData={_:e+".display",sort:null!==n?e+".@data-"+n:O,type:null!==n?e+".@data-"+n:O,filter:null!==t?e+".@data-"+t:O},ne(p,e)))}));var b=p.oFeatures,e=function(){if(i.aaSorting===O){var e=p.aaSorting;for(s=0,r=e.length;s<r;s++)e[s][1]=p.aoColumns[s].asSorting[0]}rt(p),b.bSort&&M(p,"aoDrawCallback",function(){var e,n;p.bSorted&&(e=I(p),n={},L.each(e,function(e,t){n[t.src]=t.dir}),P(p,null,"order",[p,e,n]),st(p))}),M(p,"aoDrawCallback",function(){(p.bSorted||"ssp"===E(p)||b.bDeferRender)&&rt(p)},"sc");var t=a.children("caption").each(function(){this._captionSide=L(this).css("caption-side")}),n=a.children("thead"),n=(0===n.length&&(n=L("<thead/>").appendTo(a)),p.nTHead=n[0],a.children("tbody")),n=(0===n.length&&(n=L("<tbody/>").appendTo(a)),p.nTBody=n[0],a.children("tfoot"));if(0===(n=0===n.length&&0<t.length&&(""!==p.oScroll.sX||""!==p.oScroll.sY)?L("<tfoot/>").appendTo(a):n).length||0===n.children().length?a.addClass(f.sNoFooter):0<n.length&&(p.nTFoot=n[0],Se(p.aoFooter,p.nTFoot)),i.aaData)for(s=0;s<i.aaData.length;s++)k(p,i.aaData[s]);else!p.bDeferLoading&&"dom"!=E(p)||ae(p,L(p.nTBody).children("tr"));p.aiDisplay=p.aiDisplayMaster.slice(),!(p.bInitialised=!0)===o&&$e(p)};i.bStateSave?(b.bStateSave=!0,M(p,"aoDrawCallback",ct,"state_save"),ht(p,0,e)):e()}}),S=null,this},i={},w=/[\r\n]/g,B=/<.*?>/g,U=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,V=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),q=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,s=function(e){return!e||!0===e||"-"===e},G=function(e,t){return i[t]||(i[t]=new RegExp(Le(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(i[t],"."):e},R=function(e,t,n){var i=[],s=0,o=e.length;if(n!==O)for(;s<o;s++)e[s]&&e[s][t]&&i.push(e[s][t][n]);else for(;s<o;s++)e[s]&&i.push(e[s][t]);return i},X=function(e){if(!(e.length<2))for(var t=e.slice().sort(),n=t[0],i=1,s=t.length;i<s;i++){if(t[i]===n)return!1;n=t[i]}return!0},Z=function(e){if(X(e))return e.slice();var t,n,i,s=[],o=e.length,a=0;e:for(n=0;n<o;n++){for(t=e[n],i=0;i<a;i++)if(s[i]===t)continue e;s.push(t),a++}return s};function a(n){var i,s,o={};L.each(n,function(e,t){(i=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(i[1]+" ")&&(s=e.replace(i[0],i[2].toLowerCase()),o[s]=e,"o"===i[1])&&a(n[e])}),n._hungarianMap=o}function x(n,i,s){var o;n._hungarianMap||a(n),L.each(i,function(e,t){(o=n._hungarianMap[e])===O||!s&&i[o]!==O||("o"===o.charAt(0)?(i[o]||(i[o]={}),L.extend(!0,i[o],i[e]),x(n[o],i[o],s)):i[o]=i[e])})}function J(e){var t,n=C.defaults.oLanguage,i=n.sDecimal;i&&Et(i),e&&(t=e.sZeroRecords,!e.sEmptyTable&&t&&"No data available in table"===n.sEmptyTable&&A(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&t&&"Loading..."===n.sLoadingRecords&&A(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),t=e.sDecimal)&&i!==t&&Et(t)}C.util={throttle:function(i,e){var s,o,a=e!==O?e:200;return function(){var e=this,t=+new Date,n=arguments;s&&t<s+a?(clearTimeout(o),o=setTimeout(function(){s=O,i.apply(e,n)},a)):(s=t,i.apply(e,n))}},escapeRegex:function(e){return e.replace(V,"\\$1")}};var o=function(e,t,n){e[t]!==O&&(e[n]=e[t])};function Y(e){o(e,"ordering","bSort"),o(e,"orderMulti","bSortMulti"),o(e,"orderClasses","bSortClasses"),o(e,"orderCellsTop","bSortCellsTop"),o(e,"order","aaSorting"),o(e,"orderFixed","aaSortingFixed"),o(e,"paging","bPaginate"),o(e,"pagingType","sPaginationType"),o(e,"pageLength","iDisplayLength"),o(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":"");var t=e.aoSearchCols;if(t)for(var n=0,i=t.length;n<i;n++)t[n]&&x(C.models.oSearch,t[n])}function K(e){o(e,"orderable","bSortable"),o(e,"orderData","aDataSort"),o(e,"orderSequence","asSorting"),o(e,"orderDataType","sortDataType");var t=e.aDataSort;"number"!=typeof t||L.isArray(t)||(e.aDataSort=[t])}function Q(e){var t,n,i,s;C.__browser||(C.__browser=t={},s=(i=(n=L("<div/>").css({position:"fixed",top:0,left:-1*L($).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(L("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(L("<div/>").css({width:"100%",height:10}))).appendTo("body")).children()).children(),t.barWidth=i[0].offsetWidth-i[0].clientWidth,t.bScrollOversize=100===s[0].offsetWidth&&100!==i[0].clientWidth,t.bScrollbarLeft=1!==Math.round(s.offset().left),t.bBounding=!!n[0].getBoundingClientRect().width,n.remove()),L.extend(e.oBrowser,C.__browser),e.oScroll.iBarWidth=C.__browser.barWidth}function ee(e,t,n,i,s,o){var a,r=i,l=!1;for(n!==O&&(a=n,l=!0);r!==s;)e.hasOwnProperty(r)&&(a=l?t(a,e[r],r,e):e[r],l=!0,r+=o);return a}function te(e,t){var n=C.defaults.column,i=e.aoColumns.length,n=L.extend({},C.models.oColumn,n,{nTh:t||b.createElement("th"),sTitle:n.sTitle||(t?t.innerHTML:""),aDataSort:n.aDataSort||[i],mData:n.mData||i,idx:i}),n=(e.aoColumns.push(n),e.aoPreSearchCols);n[i]=L.extend({},C.models.oSearch,n[i]),ne(e,i,L(t).data())}function ne(e,t,n){function i(e){return"string"==typeof e&&-1!==e.indexOf("@")}var t=e.aoColumns[t],s=e.oClasses,o=L(t.nTh),a=(!t.sWidthOrig&&(t.sWidthOrig=o.attr("width")||null,c=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(t.sWidthOrig=c[1]),n!==O&&null!==n&&(K(n),x(C.defaults.column,n),n.mDataProp===O||n.mData||(n.mData=n.mDataProp),n.sType&&(t._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&o.addClass(n.sClass),L.extend(t,n),A(t,n,"sWidth","sWidthOrig"),n.iDataSort!==O&&(t.aDataSort=[n.iDataSort]),A(t,n,"aDataSort")),t.mData),r=D(a),l=t.mRender?D(t.mRender):null,c=(t._bAttrSrc=L.isPlainObject(a)&&(i(a.sort)||i(a.type)||i(a.filter)),t._setter=null,t.fnGetData=function(e,t,n){var i=r(e,t,O,n);return l&&t?l(i,t,e,n):i},t.fnSetData=function(e,t,n){return m(a)(e,t,n)},"number"!=typeof a&&(e._rowReadObject=!0),e.oFeatures.bSort||(t.bSortable=!1,o.addClass(s.sSortableNone)),-1!==L.inArray("asc",t.asSorting)),n=-1!==L.inArray("desc",t.asSorting);t.bSortable&&(c||n)?c&&!n?(t.sSortingClass=s.sSortableAsc,t.sSortingClassJUI=s.sSortJUIAscAllowed):!c&&n?(t.sSortingClass=s.sSortableDesc,t.sSortingClassJUI=s.sSortJUIDescAllowed):(t.sSortingClass=s.sSortable,t.sSortingClassJUI=s.sSortJUI):(t.sSortingClass=s.sSortableNone,t.sSortingClassJUI="")}function F(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;Ke(e);for(var n=0,i=t.length;n<i;n++)t[n].nTh.style.width=t[n].sWidth}var s=e.oScroll;""===s.sY&&""===s.sX||Je(e),P(e,null,"column-sizing",[e])}function j(e,t){e=ie(e,"bVisible");return"number"==typeof e[t]?e[t]:null}function h(e,t){e=ie(e,"bVisible"),t=L.inArray(t,e);return-1!==t?t:null}function T(e){var n=0;return L.each(e.aoColumns,function(e,t){t.bVisible&&"none"!==L(t.nTh).css("display")&&n++}),n}function ie(e,n){var i=[];return L.map(e.aoColumns,function(e,t){e[n]&&i.push(t)}),i}function se(e){for(var t,n,i,s,o,a,r,l=e.aoColumns,c=e.aoData,h=C.ext.type.detect,u=0,d=l.length;u<d;u++)if(r=[],!(o=l[u]).sType&&o._sManualType)o.sType=o._sManualType;else if(!o.sType){for(t=0,n=h.length;t<n;t++){for(i=0,s=c.length;i<s&&(r[i]===O&&(r[i]=y(e,i,u,"type")),(a=h[t](r[i],e))||t===h.length-1)&&"html"!==a;i++);if(a){o.sType=a;break}}o.sType||(o.sType="string")}}function oe(e,t,n,i){var s,o,a,r,l=e.aoColumns;if(t)for(s=t.length-1;0<=s;s--)for(var c,h=(c=t[s]).targets!==O?c.targets:c.aTargets,u=0,d=(h=L.isArray(h)?h:[h]).length;u<d;u++)if("number"==typeof h[u]&&0<=h[u]){for(;l.length<=h[u];)te(e);i(h[u],c)}else if("number"==typeof h[u]&&h[u]<0)i(l.length+h[u],c);else if("string"==typeof h[u])for(a=0,r=l.length;a<r;a++)"_all"!=h[u]&&!L(l[a].nTh).hasClass(h[u])||i(a,c);if(n)for(s=0,o=n.length;s<o;s++)i(s,n[s])}function k(e,t,n,i){for(var s=e.aoData.length,o=L.extend(!0,{},C.models.oRow,{src:n?"dom":"data",idx:s}),a=(o._aData=t,e.aoData.push(o),e.aoColumns),r=0,l=a.length;r<l;r++)a[r].sType=null;e.aiDisplayMaster.push(s);t=e.rowIdFn(t);return t!==O&&(e.aIds[t]=o),!n&&e.oFeatures.bDeferRender||ge(e,s,n,i),s}function ae(n,e){var i;return(e=e instanceof L?e:L(e)).map(function(e,t){return i=fe(n,t),k(n,i.data,t,i.cells)})}function y(e,t,n,i){var s=e.iDraw,o=e.aoColumns[n],a=e.aoData[t]._aData,r=o.sDefaultContent,l=o.fnGetData(a,i,{settings:e,row:t,col:n});if(l===O)return e.iDrawError!=s&&null===r&&(z(e,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+t+", column "+n,4),e.iDrawError=s),r;if(l!==a&&null!==l||null===r||i===O){if("function"==typeof l)return l.call(a)}else l=r;return null===l&&"display"==i?"":l}function re(e,t,n,i){var s=e.aoColumns[n],o=e.aoData[t]._aData;s.fnSetData(o,i,{settings:e,row:t,col:n})}var le=/\[.*?\]$/,p=/\(\)$/;function ce(e){return L.map(e.match(/(\\.|[^\.])+/g)||[""],function(e){return e.replace(/\\\./g,".")})}function D(s){var o,d;return L.isPlainObject(s)?(o={},L.each(s,function(e,t){t&&(o[e]=D(t))}),function(e,t,n,i){var s=o[t]||o._;return s!==O?s(e,t,n,i):e}):null===s?function(e){return e}:"function"==typeof s?function(e,t,n,i){return s(e,t,n,i)}:"string"!=typeof s||-1===s.indexOf(".")&&-1===s.indexOf("[")&&-1===s.indexOf("(")?function(e,t){return e[s]}:(d=function(e,t,n){var i,s,o;if(""!==n)for(var a=ce(n),r=0,l=a.length;r<l;r++){if(u=a[r].match(le),i=a[r].match(p),u){if(a[r]=a[r].replace(le,""),""!==a[r]&&(e=e[a[r]]),s=[],a.splice(0,r+1),o=a.join("."),L.isArray(e))for(var c=0,h=e.length;c<h;c++)s.push(d(e[c],t,o));var u=u[0].substring(1,u[0].length-1);e=""===u?s:s.join(u);break}if(i)a[r]=a[r].replace(p,""),e=e[a[r]]();else{if(null===e||e[a[r]]===O)return O;e=e[a[r]]}}return e},function(e,t){return d(e,t,s)})}function m(i){var d;return L.isPlainObject(i)?m(i._):null===i?function(){}:"function"==typeof i?function(e,t,n){i(e,"set",t,n)}:"string"!=typeof i||-1===i.indexOf(".")&&-1===i.indexOf("[")&&-1===i.indexOf("(")?function(e,t){e[i]=t}:(d=function(e,t,n){for(var i,s,o,a,r=ce(n),n=r[r.length-1],l=0,c=r.length-1;l<c;l++){if(i=r[l].match(le),s=r[l].match(p),i){if(r[l]=r[l].replace(le,""),e[r[l]]=[],(i=r.slice()).splice(0,l+1),a=i.join("."),L.isArray(t))for(var h=0,u=t.length;h<u;h++)d(o={},t[h],a),e[r[l]].push(o);else e[r[l]]=t;return}s&&(r[l]=r[l].replace(p,""),e=e[r[l]](t)),null!==e[r[l]]&&e[r[l]]!==O||(e[r[l]]={}),e=e[r[l]]}n.match(p)?e[n.replace(p,"")](t):e[n.replace(le,"")]=t},function(e,t){return d(e,t,i)})}function he(e){return R(e.aoData,"_aData")}function ue(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function de(e,t,n){for(var i=-1,s=0,o=e.length;s<o;s++)e[s]==t?i=s:e[s]>t&&e[s]--;-1!=i&&n===O&&e.splice(i,1)}function pe(n,i,e,t){function s(e,t){for(;e.childNodes.length;)e.removeChild(e.firstChild);e.innerHTML=y(n,i,t,"display")}var o,a,r=n.aoData[i];if("dom"!==e&&(e&&"auto"!==e||"dom"!==r.src)){var l=r.anCells;if(l)if(t!==O)s(l[t],t);else for(o=0,a=l.length;o<a;o++)s(l[o],o)}else r._aData=fe(n,r,t,t===O?O:r._aData).data;r._aSortData=null,r._aFilterData=null;var c=n.aoColumns;if(t!==O)c[t].sType=null;else{for(o=0,a=c.length;o<a;o++)c[o].sType=null;me(n,r)}}function fe(e,t,n,i){function s(e,t){var n;"string"==typeof e&&-1!==(n=e.indexOf("@"))&&(n=e.substring(n+1),m(e)(i,t.getAttribute(n)))}function o(e){n!==O&&n!==u||(r=d[u],l=L.trim(e.innerHTML),r&&r._bAttrSrc?(m(r.mData._)(i,l),s(r.mData.sort,e),s(r.mData.type,e),s(r.mData.filter,e)):p?(r._setter||(r._setter=m(r.mData)),r._setter(i,l)):i[u]=l),u++}var a,r,l,c=[],h=t.firstChild,u=0,d=e.aoColumns,p=e._rowReadObject;i=i!==O?i:p?{}:[];if(h)for(;h;)"TD"!=(a=h.nodeName.toUpperCase())&&"TH"!=a||(o(h),c.push(h)),h=h.nextSibling;else for(var f=0,g=(c=t.anCells).length;f<g;f++)o(c[f]);var t=t.firstChild?t:t.nTr;return t&&(t=t.getAttribute("id"))&&m(e.rowId)(i,t),{data:i,cells:c}}function ge(e,t,n,i){var s,o,a,r,l,c=e.aoData[t],h=c._aData,u=[];if(null===c.nTr){for(s=n||b.createElement("tr"),c.nTr=s,c.anCells=u,s._DT_RowIndex=t,me(e,c),r=0,l=e.aoColumns.length;r<l;r++)a=e.aoColumns[r],(o=n?i[r]:b.createElement(a.sCellType))._DT_CellIndex={row:t,column:r},u.push(o),n&&!a.mRender&&a.mData===r||L.isPlainObject(a.mData)&&a.mData._===r+".display"||(o.innerHTML=y(e,t,r,"display")),a.sClass&&(o.className+=" "+a.sClass),a.bVisible&&!n?s.appendChild(o):!a.bVisible&&n&&o.parentNode.removeChild(o),a.fnCreatedCell&&a.fnCreatedCell.call(e.oInstance,o,y(e,t,r),h,t,r);P(e,"aoRowCreatedCallback",null,[s,h,t,u])}c.nTr.setAttribute("role","row")}function me(e,t){var n=t.nTr,i=t._aData;n&&((e=e.rowIdFn(i))&&(n.id=e),i.DT_RowClass&&(e=i.DT_RowClass.split(" "),t.__rowc=t.__rowc?Z(t.__rowc.concat(e)):e,L(n).removeClass(t.__rowc.join(" ")).addClass(i.DT_RowClass)),i.DT_RowAttr&&L(n).attr(i.DT_RowAttr),i.DT_RowData)&&L(n).data(i.DT_RowData)}function ve(e){var t,n,i,s=e.nTHead,o=e.nTFoot,a=0===L("th, td",s).length,r=e.oClasses,l=e.aoColumns;for(a&&(n=L("<tr/>").appendTo(s)),h=0,u=l.length;h<u;h++)i=l[h],t=L(i.nTh).addClass(i.sClass),a&&t.appendTo(n),e.oFeatures.bSort&&(t.addClass(i.sSortingClass),!1!==i.bSortable)&&(t.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),at(e,i.nTh,h)),i.sTitle!=t[0].innerHTML&&t.html(i.sTitle),gt(e,"header")(e,t,i,r);if(a&&Se(e.aoHeader,s),L(s).find(">tr").attr("role","row"),L(s).find(">tr>th, >tr>td").addClass(r.sHeaderTH),L(o).find(">tr>th, >tr>td").addClass(r.sFooterTH),null!==o)for(var c=e.aoFooter[0],h=0,u=c.length;h<u;h++)(i=l[h]).nTf=c[h].cell,i.sClass&&L(i.nTf).addClass(i.sClass)}function be(e,t,n){var i,s,o,a,r,l,c,h,u,d=[],p=[],f=e.aoColumns.length;if(t){for(n===O&&(n=!1),i=0,s=t.length;i<s;i++){for(d[i]=t[i].slice(),d[i].nTr=t[i].nTr,o=f-1;0<=o;o--)e.aoColumns[o].bVisible||n||d[i].splice(o,1);p.push([])}for(i=0,s=d.length;i<s;i++){if(c=d[i].nTr)for(;l=c.firstChild;)c.removeChild(l);for(o=0,a=d[i].length;o<a;o++)if(u=h=1,p[i][o]===O){for(c.appendChild(d[i][o].cell),p[i][o]=1;d[i+h]!==O&&d[i][o].cell==d[i+h][o].cell;)p[i+h][o]=1,h++;for(;d[i][o+u]!==O&&d[i][o].cell==d[i][o+u].cell;){for(r=0;r<h;r++)p[i+r][o+u]=1;u++}L(d[i][o].cell).attr("rowspan",h).attr("colspan",u)}}}}function g(e){var t=P(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==L.inArray(!1,t))S(e,!1);else{var n=[],i=0,s=e.asStripeClasses,o=s.length,t=(e.aoOpenRows.length,e.oLanguage),a=e.iInitDisplayStart,r="ssp"==E(e),l=e.aiDisplay,a=(e.bDrawing=!0,a!==O&&-1!==a&&(e._iDisplayStart=!r&&a>=e.fnRecordsDisplay()?0:a,e.iInitDisplayStart=-1),e._iDisplayStart),c=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,S(e,!1);else if(r){if(!e.bDestroying&&!Ce(e))return}else e.iDraw++;if(0!==l.length)for(var h=r?e.aoData.length:c,u=r?0:a;u<h;u++){var d,p=l[u],f=e.aoData[p],g=(null===f.nTr&&ge(e,p),f.nTr);0!==o&&(d=s[i%o],f._sRowStripe!=d)&&(L(g).removeClass(f._sRowStripe).addClass(d),f._sRowStripe=d),P(e,"aoRowCallback",null,[g,f._aData,i,u,p]),n.push(g),i++}else{r=t.sZeroRecords;1==e.iDraw&&"ajax"==E(e)?r=t.sLoadingRecords:t.sEmptyTable&&0===e.fnRecordsTotal()&&(r=t.sEmptyTable),n[0]=L("<tr/>",{class:o?s[0]:""}).append(L("<td />",{valign:"top",colSpan:T(e),class:e.oClasses.sRowEmpty}).html(r))[0]}P(e,"aoHeaderCallback","header",[L(e.nTHead).children("tr")[0],he(e),a,c,l]),P(e,"aoFooterCallback","footer",[L(e.nTFoot).children("tr")[0],he(e),a,c,l]);t=L(e.nTBody);t.children().detach(),t.append(L(n)),P(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function c(e,t){var n=e.oFeatures,i=n.bSort,n=n.bFilter;i&&it(e),n?Ie(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,g(e),e._drawHold=!1}function ye(e){for(var t,n,i,s,o,a,r,l=e.oClasses,c=L(e.nTable),c=L("<div/>").insertBefore(c),h=e.oFeatures,u=L("<div/>",{id:e.sTableId+"_wrapper",class:l.sWrapper+(e.nTFoot?"":" "+l.sNoFooter)}),d=(e.nHolding=c[0],e.nTableWrapper=u[0],e.nTableReinsertBefore=e.nTable.nextSibling,e.sDom.split("")),p=0;p<d.length;p++){if(t=null,"<"==(n=d[p])){if(i=L("<div/>")[0],"'"==(s=d[p+1])||'"'==s){for(o="",a=2;d[p+a]!=s;)o+=d[p+a],a++;"H"==o?o=l.sJUIHeader:"F"==o&&(o=l.sJUIFooter),-1!=o.indexOf(".")?(r=o.split("."),i.id=r[0].substr(1,r[0].length-1),i.className=r[1]):"#"==o.charAt(0)?i.id=o.substr(1,o.length-1):i.className=o,p+=a}u.append(i),u=L(i)}else if(">"==n)u=u.parent();else if("l"==n&&h.bPaginate&&h.bLengthChange)t=Ve(e);else if("f"==n&&h.bFilter)t=De(e);else if("r"==n&&h.bProcessing)t=Xe(e);else if("t"==n)t=Ze(e);else if("i"==n&&h.bInfo)t=Ne(e);else if("p"==n&&h.bPaginate)t=qe(e);else if(0!==C.ext.feature.length)for(var f=C.ext.feature,g=0,m=f.length;g<m;g++)if(n==f[g].cFeature){t=f[g].fnInit(e);break}t&&((r=e.aanFeatures)[n]||(r[n]=[]),r[n].push(t),u.append(t))}c.replaceWith(u),e.nHolding=null}function Se(e,t){var n,i,s,o,a,r,l,c,h,u,d=L(t).children("tr");for(e.splice(0,e.length),s=0,r=d.length;s<r;s++)e.push([]);for(s=0,r=d.length;s<r;s++)for(i=(n=d[s]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase())for(c=(c=+i.getAttribute("colspan"))&&0!=c&&1!=c?c:1,h=(h=+i.getAttribute("rowspan"))&&0!=h&&1!=h?h:1,l=function(e,t,n){for(var i=e[t];i[n];)n++;return n}(e,s,0),u=1==c,a=0;a<c;a++)for(o=0;o<h;o++)e[s+o][l+a]={cell:i,unique:u},e[s+o].nTr=n;i=i.nextSibling}}function _e(e,t,n){var i=[];n||(n=e.aoHeader,t&&Se(n=[],t));for(var s=0,o=n.length;s<o;s++)for(var a=0,r=n[s].length;a<r;a++)!n[s][a].unique||i[a]&&e.bSortCellsTop||(i[a]=n[s][a].cell);return i}function we(s,e,t){function n(e){P(s,null,"xhr",[s,e,s.jqXHR]),t(e)}P(s,"aoServerParams","serverParams",[e]),e&&L.isArray(e)&&(i={},o=/(.*?)\[\]$/,L.each(e,function(e,t){var n=t.name.match(o);n?(n=n[0],i[n]||(i[n]=[]),i[n].push(t.value)):i[t.name]=t.value}),e=i);var i,o,a,r=s.ajax,l=s.oInstance,c=(L.isPlainObject(r)&&r.data&&(c="function"==typeof(a=r.data)?a(e,s):a,e="function"==typeof a&&c?c:L.extend(!0,e,c),delete r.data),{data:e,success:function(e){var t=e.error||e.sError;t&&z(s,0,t),s.json=e,n(e)},dataType:"json",cache:!1,type:s.sServerMethod,error:function(e,t,n){var i=P(s,null,"xhr",[s,null,s.jqXHR]);-1===L.inArray(!0,i)&&("parsererror"==t?z(s,0,"Invalid JSON response",1):4===e.readyState&&z(s,0,"Ajax error",7)),S(s,!1)}});s.oAjaxData=e,P(s,null,"preXhr",[s,e]),s.fnServerData?s.fnServerData.call(l,s.sAjaxSource,L.map(e,function(e,t){return{name:t,value:e}}),n,s):s.sAjaxSource||"string"==typeof r?s.jqXHR=L.ajax(L.extend(c,{url:r||s.sAjaxSource})):"function"==typeof r?s.jqXHR=r.call(l,e,n,s):(s.jqXHR=L.ajax(L.extend(c,r)),r.data=a)}function Ce(t){return!t.bAjaxDataGet||(t.iDraw++,S(t,!0),we(t,xe(t),function(e){Te(t,e)}),!1)}function xe(e){for(var t,n,i,s=e.aoColumns,o=s.length,a=e.oFeatures,r=e.oPreviousSearch,l=e.aoPreSearchCols,c=[],h=I(e),u=e._iDisplayStart,d=!1!==a.bPaginate?e._iDisplayLength:-1,p=function(e,t){c.push({name:e,value:t})},f=(p("sEcho",e.iDraw),p("iColumns",o),p("sColumns",R(s,"sName").join(",")),p("iDisplayStart",u),p("iDisplayLength",d),{draw:e.iDraw,columns:[],order:[],start:u,length:d,search:{value:r.sSearch,regex:r.bRegex}}),g=0;g<o;g++)n=s[g],i=l[g],t="function"==typeof n.mData?"function":n.mData,f.columns.push({data:t,name:n.sName,searchable:n.bSearchable,orderable:n.bSortable,search:{value:i.sSearch,regex:i.bRegex}}),p("mDataProp_"+g,t),a.bFilter&&(p("sSearch_"+g,i.sSearch),p("bRegex_"+g,i.bRegex),p("bSearchable_"+g,n.bSearchable)),a.bSort&&p("bSortable_"+g,n.bSortable);a.bFilter&&(p("sSearch",r.sSearch),p("bRegex",r.bRegex)),a.bSort&&(L.each(h,function(e,t){f.order.push({column:t.col,dir:t.dir}),p("iSortCol_"+e,t.col),p("sSortDir_"+e,t.dir)}),p("iSortingCols",h.length));u=C.ext.legacy.ajax;return null===u?e.sAjaxSource?c:f:u?c:f}function Te(e,n){function t(e,t){return n[e]!==O?n[e]:n[t]}var i=ke(e,n),s=t("sEcho","draw"),o=t("iTotalRecords","recordsTotal"),a=t("iTotalDisplayRecords","recordsFiltered");if(s){if(+s<e.iDraw)return;e.iDraw=+s}ue(e),e._iRecordsTotal=parseInt(o,10),e._iRecordsDisplay=parseInt(a,10);for(var r=0,l=i.length;r<l;r++)k(e,i[r]);e.aiDisplay=e.aiDisplayMaster.slice(),e.bAjaxDataGet=!1,g(e),e._bInitComplete||Be(e,n),e.bAjaxDataGet=!0,S(e,!1)}function ke(e,t){e=L.isPlainObject(e.ajax)&&e.ajax.dataSrc!==O?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===e?t.aaData||t[e]:""!==e?D(e)(t):t}function De(n){function e(){a.f;var e=this.value||"";e!=o.sSearch&&(Ie(n,{sSearch:e,bRegex:o.bRegex,bSmart:o.bSmart,bCaseInsensitive:o.bCaseInsensitive}),n._iDisplayStart=0,g(n))}var t=n.oClasses,i=n.sTableId,s=n.oLanguage,o=n.oPreviousSearch,a=n.aanFeatures,r='<input type="search" class="'+t.sFilterInput+'"/>',l=(l=s.sSearch).match(/_INPUT_/)?l.replace("_INPUT_",r):l+r,r=L("<div/>",{id:a.f?null:i+"_filter",class:t.sFilter}).append(L("<label/>").append(l)),t=null!==n.searchDelay?n.searchDelay:"ssp"===E(n)?400:0,c=L("input",r).val(o.sSearch).attr("placeholder",s.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",t?Qe(e,t):e).on("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",i);return L(n.nTable).on("search.dt.DT",function(e,t){if(n===t)try{c[0]!==b.activeElement&&c.val(o.sSearch)}catch(e){}}),r[0]}function Ie(e,t,n){function i(e){o.sSearch=e.sSearch,o.bRegex=e.bRegex,o.bSmart=e.bSmart,o.bCaseInsensitive=e.bCaseInsensitive}function s(e){return e.bEscapeRegex!==O?!e.bEscapeRegex:e.bRegex}var o=e.oPreviousSearch,a=e.aoPreSearchCols;if(se(e),"ssp"!=E(e)){Pe(e,t.sSearch,n,s(t),t.bSmart,t.bCaseInsensitive),i(t);for(var r=0;r<a.length;r++)Me(e,a[r].sSearch,r,s(a[r]),a[r].bSmart,a[r].bCaseInsensitive);Ae(e)}else i(t);e.bFiltered=!0,P(e,null,"search",[e])}function Ae(e){for(var t,n,i=C.ext.search,s=e.aiDisplay,o=0,a=i.length;o<a;o++){for(var r=[],l=0,c=s.length;l<c;l++)n=s[l],t=e.aoData[n],i[o](e,t._aFilterData,n,t._aData,l)&&r.push(n);s.length=0,L.merge(s,r)}}function Me(e,t,n,i,s,o){if(""!==t){for(var a,r=[],l=e.aiDisplay,c=Ee(t,i,s,o),h=0;h<l.length;h++)a=e.aoData[l[h]]._aFilterData[n],c.test(a)&&r.push(l[h]);e.aiDisplay=r}}function Pe(e,t,n,i,s,o){var a,r,l=Ee(t,i,s,o),i=e.oPreviousSearch.sSearch,s=e.aiDisplayMaster,c=[];if(0!==C.ext.search.length&&(n=!0),o=Fe(e),t.length<=0)e.aiDisplay=s.slice();else{for((o||n||i.length>t.length||0!==t.indexOf(i)||e.bSorted)&&(e.aiDisplay=s.slice()),a=e.aiDisplay,r=0;r<a.length;r++)l.test(e.aoData[a[r]]._sFilterRow)&&c.push(a[r]);e.aiDisplay=c}}function Ee(e,t,n,i){return e=t?e:Le(e),n&&(e="^(?=.*?"+L.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(e){var t;return(e='"'===e.charAt(0)?(t=e.match(/^"(.*)"$/))?t[1]:e:e).replace('"',"")}).join(")(?=.*?")+").*$"),new RegExp(e,i?"i":"")}var Le=C.util.escapeRegex,Oe=L("<div>")[0],Re=Oe.textContent!==O;function Fe(e){for(var t,n,i,s,o,a,r=e.aoColumns,l=C.ext.type.search,c=!1,h=0,u=e.aoData.length;h<u;h++)if(!(a=e.aoData[h])._aFilterData){for(s=[],n=0,i=r.length;n<i;n++)(t=r[n]).bSearchable?(o=y(e,h,n,"filter"),"string"!=typeof(o=null===(o=l[t.sType]?l[t.sType](o):o)?"":o)&&o.toString&&(o=o.toString())):o="",o.indexOf&&-1!==o.indexOf("&")&&(Oe.innerHTML=o,o=Re?Oe.textContent:Oe.innerText),o.replace&&(o=o.replace(/[\r\n]/g,"")),s.push(o);a._aFilterData=s,a._sFilterRow=s.join("  "),c=!0}return c}function je(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function He(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function Ne(e){var t=e.sTableId,n=e.aanFeatures.i,i=L("<div/>",{class:e.oClasses.sInfo,id:n?null:t+"_info"});return n||(e.aoDrawCallback.push({fn:ze,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),L(e.nTable).attr("aria-describedby",t+"_info")),i[0]}function ze(e){var t,n,i,s,o,a,r=e.aanFeatures.i;0!==r.length&&(a=e.oLanguage,t=e._iDisplayStart+1,n=e.fnDisplayEnd(),i=e.fnRecordsTotal(),o=(s=e.fnRecordsDisplay())?a.sInfo:a.sInfoEmpty,s!==i&&(o+=" "+a.sInfoFiltered),o=We(e,o+=a.sInfoPostFix),null!==(a=a.fnInfoCallback)&&(o=a.call(e.oInstance,e,t,n,i,s,o)),L(r).html(o))}function We(e,t){var n=e.fnFormatNumber,i=e._iDisplayStart+1,s=e._iDisplayLength,o=e.fnRecordsDisplay(),a=-1===s;return t.replace(/_START_/g,n.call(e,i)).replace(/_END_/g,n.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,n.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(e,o)).replace(/_PAGE_/g,n.call(e,a?1:Math.ceil(i/s))).replace(/_PAGES_/g,n.call(e,a?1:Math.ceil(o/s)))}function $e(n){var i,e,t,s=n.iInitDisplayStart,o=n.aoColumns,a=n.oFeatures,r=n.bDeferLoading;if(n.bInitialised){for(ye(n),ve(n),be(n,n.aoHeader),be(n,n.aoFooter),S(n,!0),a.bAutoWidth&&Ke(n),i=0,e=o.length;i<e;i++)(t=o[i]).sWidth&&(t.nTh.style.width=N(t.sWidth));P(n,null,"preInit",[n]),c(n);a=E(n);"ssp"==a&&!r||("ajax"==a?we(n,[],function(e){var t=ke(n,e);for(i=0;i<t.length;i++)k(n,t[i]);n.iInitDisplayStart=s,c(n),S(n,!1),Be(n,e)}):(S(n,!1),Be(n)))}else setTimeout(function(){$e(n)},200)}function Be(e,t){e._bInitComplete=!0,(t||e.oInit.aaData)&&F(e),P(e,null,"plugin-init",[e,t]),P(e,"aoInitComplete","init",[e,t])}function Ue(e,t){t=parseInt(t,10);e._iDisplayLength=t,ft(e),P(e,null,"length",[e,t])}function Ve(i){for(var e=i.oClasses,t=i.sTableId,n=i.aLengthMenu,s=L.isArray(n[0]),o=s?n[0]:n,a=s?n[1]:n,r=L("<select/>",{name:t+"_length","aria-controls":t,class:e.sLengthSelect}),l=0,c=o.length;l<c;l++)r[0][l]=new Option("number"==typeof a[l]?i.fnFormatNumber(a[l]):a[l],o[l]);var h=L("<div><label/></div>").addClass(e.sLength);return i.aanFeatures.l||(h[0].id=t+"_length"),h.children().append(i.oLanguage.sLengthMenu.replace("_MENU_",r[0].outerHTML)),L("select",h).val(i._iDisplayLength).on("change.DT",function(e){Ue(i,L(this).val()),g(i)}),L(i.nTable).on("length.dt.DT",function(e,t,n){i===t&&L("select",h).val(n)}),h[0]}function qe(e){function h(e){g(e)}var t=e.sPaginationType,u=C.ext.pager[t],d="function"==typeof u,t=L("<div/>").addClass(e.oClasses.sPaging+t)[0],p=e.aanFeatures;return d||u.fnInit(e,t,h),p.p||(t.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(e){if(d)for(var t=e._iDisplayStart,n=e._iDisplayLength,i=e.fnRecordsDisplay(),s=-1===n,o=s?0:Math.ceil(t/n),a=s?1:Math.ceil(i/n),r=u(o,a),l=0,c=p.p.length;l<c;l++)gt(e,"pageButton")(e,p.p[l],l,r,o,a);else u.fnUpdate(e,h)},sName:"pagination"})),t}function Ge(e,t,n){var i=e._iDisplayStart,s=e._iDisplayLength,o=e.fnRecordsDisplay(),o=(0===o||-1===s?i=0:"number"==typeof t?o<(i=t*s)&&(i=0):"first"==t?i=0:"previous"==t?(i=0<=s?i-s:0)<0&&(i=0):"next"==t?i+s<o&&(i+=s):"last"==t?i=Math.floor((o-1)/s)*s:z(e,0,"Unknown paging action: "+t,5),e._iDisplayStart!==i);return e._iDisplayStart=i,o&&(P(e,null,"page",[e]),n)&&g(e),o}function Xe(e){return L("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function S(e,t){e.oFeatures.bProcessing&&L(e.aanFeatures.r).css("display",t?"block":"none"),P(e,null,"processing",[e,t])}function Ze(e){var t,n,i,s,o,a,r,l,c,h,u,d,p=L(e.nTable),f=(p.attr("role","grid"),e.oScroll);return""===f.sX&&""===f.sY?e.nTable:(t=f.sX,n=f.sY,i=e.oClasses,o=(s=p.children("caption")).length?s[0]._captionSide:null,l=L(p[0].cloneNode(!1)),a=L(p[0].cloneNode(!1)),c=function(e){return e?N(e):null},(r=p.children("tfoot")).length||(r=null),l=L(u="<div/>",{class:i.sScrollWrapper}).append(L(u,{class:i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:t?c(t):"100%"}).append(L(u,{class:i.sScrollHeadInner}).css({"box-sizing":"content-box",width:f.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===o?s:null).append(p.children("thead"))))).append(L(u,{class:i.sScrollBody}).css({position:"relative",overflow:"auto",width:c(t)}).append(p)),r&&l.append(L(u,{class:i.sScrollFoot}).css({overflow:"hidden",border:0,width:t?c(t):"100%"}).append(L(u,{class:i.sScrollFootInner}).append(a.removeAttr("id").css("margin-left",0).append("bottom"===o?s:null).append(p.children("tfoot"))))),c=l.children(),h=c[0],u=c[1],d=r?c[2]:null,t&&L(u).on("scroll.DT",function(e){var t=this.scrollLeft;h.scrollLeft=t,r&&(d.scrollLeft=t)}),L(u).css(n&&f.bCollapse?"max-height":"height",n),e.nScrollHead=h,e.nScrollBody=u,e.nScrollFoot=d,e.aoDrawCallback.push({fn:Je,sName:"scrolling"}),l[0])}function Je(n){function e(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0}var t,i,s,o,a,r=n.oScroll,l=r.sX,c=r.sXInner,h=r.sY,r=r.iBarWidth,u=L(n.nScrollHead),d=u[0].style,p=u.children("div"),f=p[0].style,p=p.children("table"),g=n.nScrollBody,m=L(g),v=g.style,b=L(n.nScrollFoot).children("div"),y=b.children("table"),S=L(n.nTHead),_=L(n.nTable),w=_[0],C=w.style,x=n.nTFoot?L(n.nTFoot):null,T=n.oBrowser,k=T.bScrollOversize,D=R(n.aoColumns,"nTh"),I=[],A=[],M=[],P=[],E=g.scrollHeight>g.clientHeight;n.scrollBarVis!==E&&n.scrollBarVis!==O?(n.scrollBarVis=E,F(n)):(n.scrollBarVis=E,_.children("thead, tfoot").remove(),x&&(E=x.clone().prependTo(_),a=x.find("tr"),i=E.find("tr")),E=S.clone().prependTo(_),S=S.find("tr"),t=E.find("tr"),E.find("th, td").removeAttr("tabindex"),l||(v.width="100%",u[0].style.width="100%"),L.each(_e(n,E),function(e,t){s=j(n,e),t.style.width=n.aoColumns[s].sWidth}),x&&H(function(e){e.style.width=""},i),u=_.outerWidth(),""===l?(C.width="100%",k&&(_.find("tbody").height()>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=N(_.outerWidth()-r)),u=_.outerWidth()):""!==c&&(C.width=N(c),u=_.outerWidth()),H(e,t),H(function(e){M.push(e.innerHTML),I.push(N(L(e).css("width")))},t),H(function(e,t){-1!==L.inArray(e,D)&&(e.style.width=I[t])},S),L(t).height(0),x&&(H(e,i),H(function(e){P.push(e.innerHTML),A.push(N(L(e).css("width")))},i),H(function(e,t){e.style.width=A[t]},a),L(i).height(0)),H(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+M[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=I[t]},t),x&&H(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+P[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=A[t]},i),_.outerWidth()<u?(o=g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y")?u+r:u,k&&(g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=N(o-r)),""!==l&&""===c||z(n,1,"Possible column misalignment",6)):o="100%",v.width=N(o),d.width=N(o),x&&(n.nScrollFoot.style.width=N(o)),h||k&&(v.height=N(w.offsetHeight+r)),E=_.outerWidth(),p[0].style.width=N(E),f.width=N(E),S=_.height()>g.clientHeight||"scroll"==m.css("overflow-y"),f[a="padding"+(T.bScrollbarLeft?"Left":"Right")]=S?r+"px":"0px",x&&(y[0].style.width=N(E),b[0].style.width=N(E),b[0].style[a]=S?r+"px":"0px"),_.children("colgroup").insertBefore(_.children("thead")),m.scroll(),!n.bSorted&&!n.bFiltered||n._drawHold||(g.scrollTop=0))}function H(e,t,n){for(var i,s,o=0,a=0,r=t.length;a<r;){for(i=t[a].firstChild,s=n?n[a].firstChild:null;i;)1===i.nodeType&&(n?e(i,s,o):e(i,o),o++),i=i.nextSibling,s=n?s.nextSibling:null;a++}}var Ye=/<.*?>/g;function Ke(e){var t,n,i=e.nTable,s=e.aoColumns,o=e.oScroll,a=o.sY,r=o.sX,o=o.sXInner,l=s.length,c=ie(e,"bVisible"),h=L("th",e.nTHead),u=i.getAttribute("width"),d=i.parentNode,p=!1,f=e.oBrowser,g=f.bScrollOversize,m=i.style.width;for(m&&-1!==m.indexOf("%")&&(u=m),_=0;_<c.length;_++)null!==(t=s[c[_]]).sWidth&&(t.sWidth=et(t.sWidthOrig,d),p=!0);if(g||!p&&!r&&!a&&l==T(e)&&l==h.length)for(_=0;_<l;_++){var v=j(e,_);null!==v&&(s[v].sWidth=N(h.eq(_).width()))}else{var m=L(i).clone().css("visibility","hidden").removeAttr("id"),b=(m.find("tbody tr").remove(),L("<tr/>").appendTo(m.find("tbody")));for(m.find("thead, tfoot").remove(),m.append(L(e.nTHead).clone()).append(L(e.nTFoot).clone()),m.find("tfoot th, tfoot td").css("width",""),h=_e(e,m.find("thead")[0]),_=0;_<c.length;_++)t=s[c[_]],h[_].style.width=null!==t.sWidthOrig&&""!==t.sWidthOrig?N(t.sWidthOrig):"",t.sWidthOrig&&r&&L(h[_]).append(L("<div/>").css({width:t.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(e.aoData.length)for(_=0;_<c.length;_++)t=s[n=c[_]],L(tt(e,n)).clone(!1).append(t.sContentPadding).appendTo(b);L("[name]",m).removeAttr("name");for(var y=L("<div/>").css(r||a?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(m).appendTo(d),S=(r&&o?m.width(o):r?(m.css("width","auto"),m.removeAttr("width"),m.width()<d.clientWidth&&u&&m.width(d.clientWidth)):a?m.width(d.clientWidth):u&&m.width(u),0),_=0;_<c.length;_++){var w=L(h[_]),C=w.outerWidth()-w.width(),w=f.bBounding?Math.ceil(h[_].getBoundingClientRect().width):w.outerWidth();S+=w,s[c[_]].sWidth=N(w-C)}i.style.width=N(S),y.remove()}u&&(i.style.width=N(u)),!u&&!r||e._reszEvt||(o=function(){L($).on("resize.DT-"+e.sInstance,Qe(function(){F(e)}))},g?setTimeout(o,1e3):o(),e._reszEvt=!0)}var Qe=C.util.throttle;function et(e,t){return e?(t=(e=L("<div/>").css("width",N(e)).appendTo(t||b.body))[0].offsetWidth,e.remove(),t):0}function tt(e,t){var n,i=nt(e,t);return i<0?null:(n=e.aoData[i]).nTr?n.anCells[t]:L("<td/>").html(y(e,i,t,"display"))[0]}function nt(e,t){for(var n,i=-1,s=-1,o=0,a=e.aoData.length;o<a;o++)(n=(n=(n=y(e,o,t,"display")+"").replace(Ye,"")).replace(/&nbsp;/g," ")).length>i&&(i=n.length,s=o);return s}function N(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function I(e){function t(e){e.length&&!L.isArray(e[0])?p.push(e):L.merge(p,e)}var n,i,s,o,a,r,l,c=[],h=e.aoColumns,u=e.aaSortingFixed,d=L.isPlainObject(u),p=[];for(L.isArray(u)&&t(u),d&&u.pre&&t(u.pre),t(e.aaSorting),d&&u.post&&t(u.post),n=0;n<p.length;n++)for(s=(o=h[l=p[n][i=0]].aDataSort).length;i<s;i++)r=h[a=o[i]].sType||"string",p[n]._idx===O&&(p[n]._idx=L.inArray(p[n][1],h[a].asSorting)),c.push({src:l,col:a,dir:p[n][1],index:p[n]._idx,type:r,formatter:C.ext.type.order[r+"-pre"]});return c}function it(e){var t,n,i,s,h,u=[],c=C.ext.type.order,d=e.aoData,o=(e.aoColumns,0),a=e.aiDisplayMaster;for(se(e),t=0,n=(h=I(e)).length;t<n;t++)(s=h[t]).formatter&&o++,lt(e,s.col);if("ssp"!=E(e)&&0!==h.length){for(t=0,i=a.length;t<i;t++)u[a[t]]=t;o===h.length?a.sort(function(e,t){for(var n,i,s,o,a=h.length,r=d[e]._aSortData,l=d[t]._aSortData,c=0;c<a;c++)if(0!=(s=(n=r[(o=h[c]).col])<(i=l[o.col])?-1:i<n?1:0))return"asc"===o.dir?s:-s;return(n=u[e])<(i=u[t])?-1:i<n?1:0}):a.sort(function(e,t){for(var n,i,s,o=h.length,a=d[e]._aSortData,r=d[t]._aSortData,l=0;l<o;l++)if(n=a[(s=h[l]).col],i=r[s.col],0!==(s=(c[s.type+"-"+s.dir]||c["string-"+s.dir])(n,i)))return s;return(n=u[e])<(i=u[t])?-1:i<n?1:0})}e.bSorted=!0}function st(e){for(var t=e.aoColumns,n=I(e),i=e.oLanguage.oAria,s=0,o=t.length;s<o;s++){var a=t[s],r=a.asSorting,l=a.sTitle.replace(/<.*?>/g,""),c=a.nTh;c.removeAttribute("aria-sort"),a=a.bSortable?l+("asc"===(0<n.length&&n[0].col==s&&(c.setAttribute("aria-sort","asc"==n[0].dir?"ascending":"descending"),r[n[0].index+1])||r[0])?i.sSortAscending:i.sSortDescending):l,c.setAttribute("aria-label",a)}}function ot(e,t,n,i){function s(e,t){var n=e._idx;return(n=n===O?L.inArray(e[1],l):n)+1<l.length?n+1:t?null:0}var o,a=e.aoColumns[t],r=e.aaSorting,l=a.asSorting;"number"==typeof r[0]&&(r=e.aaSorting=[r]),n&&e.oFeatures.bSortMulti?-1!==(a=L.inArray(t,R(r,"0")))?null===(o=null===(o=s(r[a],!0))&&1===r.length?0:o)?r.splice(a,1):(r[a][1]=l[o],r[a]._idx=o):(r.push([t,l[0],0]),r[r.length-1]._idx=0):r.length&&r[0][0]==t?(o=s(r[0]),r.length=1,r[0][1]=l[o],r[0]._idx=o):(r.length=0,r.push([t,l[0]]),r[0]._idx=0),c(e),"function"==typeof i&&i(e)}function at(t,e,n,i){var s=t.aoColumns[n];pt(e,{},function(e){!1!==s.bSortable&&(t.oFeatures.bProcessing?(S(t,!0),setTimeout(function(){ot(t,n,e.shiftKey,i),"ssp"!==E(t)&&S(t,!1)},0)):ot(t,n,e.shiftKey,i))})}function rt(e){var t,n,i,s=e.aLastSort,o=e.oClasses.sSortColumn,a=I(e),r=e.oFeatures;if(r.bSort&&r.bSortClasses){for(t=0,n=s.length;t<n;t++)i=s[t].src,L(R(e.aoData,"anCells",i)).removeClass(o+(t<2?t+1:3));for(t=0,n=a.length;t<n;t++)i=a[t].src,L(R(e.aoData,"anCells",i)).addClass(o+(t<2?t+1:3))}e.aLastSort=a}function lt(e,t){for(var n,i,s,o=e.aoColumns[t],a=C.ext.order[o.sSortDataType],r=(a&&(n=a.call(e.oInstance,e,t,h(e,t))),C.ext.type.order[o.sType+"-pre"]),l=0,c=e.aoData.length;l<c;l++)(i=e.aoData[l])._aSortData||(i._aSortData=[]),i._aSortData[t]&&!a||(s=a?n[l]:y(e,l,t,"sort"),i._aSortData[t]=r?r(s):s)}function ct(n){var e;n.oFeatures.bStateSave&&!n.bDestroying&&(e={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:L.extend(!0,[],n.aaSorting),search:je(n.oPreviousSearch),columns:L.map(n.aoColumns,function(e,t){return{visible:e.bVisible,search:je(n.aoPreSearchCols[t])}})},P(n,"aoStateSaveParams","stateSaveParams",[n,e]),n.oSavedState=e,n.fnStateSaveCallback.call(n.oInstance,n,e))}function ht(i,e,s){function t(e){if(e&&e.time){var t=P(i,"aoStateLoadParams","stateLoadParams",[i,e]);if(-1===L.inArray(!1,t)){t=i.iStateDuration;if(!(0<t&&e.time<+new Date-1e3*t||e.columns&&r.length!==e.columns.length)){if(i.oLoadedState=L.extend(!0,{},e),e.start!==O&&(i._iDisplayStart=e.start,i.iInitDisplayStart=e.start),e.length!==O&&(i._iDisplayLength=e.length),e.order!==O&&(i.aaSorting=[],L.each(e.order,function(e,t){i.aaSorting.push(t[0]>=r.length?[0,t[1]]:t)})),e.search!==O&&L.extend(i.oPreviousSearch,He(e.search)),e.columns)for(o=0,a=e.columns.length;o<a;o++){var n=e.columns[o];n.visible!==O&&(r[o].bVisible=n.visible),n.search!==O&&L.extend(i.aoPreSearchCols[o],He(n.search))}P(i,"aoStateLoaded","stateLoaded",[i,e])}}}s()}var o,a,n,r=i.aoColumns;i.oFeatures.bStateSave?(n=i.fnStateLoadCallback.call(i.oInstance,i,t))!==O&&t(n):s()}function ut(e){var t=C.settings,e=L.inArray(e,R(t,"nTable"));return-1!==e?t[e]:null}function z(e,t,n,i){if(n="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+n,i&&(n+=". For more information about this error, please see http://datatables.net/tn/"+i),t)$.console&&console.log&&console.log(n);else{t=C.ext,t=t.sErrMode||t.errMode;if(e&&P(e,null,"error",[e,i,n]),"alert"==t)alert(n);else{if("throw"==t)throw new Error(n);"function"==typeof t&&t(e,i,n)}}}function A(n,i,e,t){L.isArray(e)?L.each(e,function(e,t){L.isArray(t)?A(n,i,t[0],t[1]):A(n,i,t)}):(t===O&&(t=e),i[e]!==O&&(n[t]=i[e]))}function dt(e,t,n){var i,s;for(s in t)t.hasOwnProperty(s)&&(i=t[s],L.isPlainObject(i)?(L.isPlainObject(e[s])||(e[s]={}),L.extend(!0,e[s],i)):n&&"data"!==s&&"aaData"!==s&&L.isArray(i)?e[s]=i.slice():e[s]=i);return e}function pt(t,e,n){L(t).on("click.DT",e,function(e){L(t).blur(),n(e)}).on("keypress.DT",e,function(e){13===e.which&&(e.preventDefault(),n(e))}).on("selectstart.DT",function(){return!1})}function M(e,t,n,i){n&&e[t].push({fn:n,sName:i})}function P(n,e,t,i){var s=[];return e&&(s=L.map(n[e].slice().reverse(),function(e,t){return e.fn.apply(n.oInstance,i)})),null!==t&&(e=L.Event(t+".dt"),L(n.nTable).trigger(e,i),s.push(e.result)),s}function ft(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),i=e._iDisplayLength;n<=t&&(t=n-i),t-=t%i,e._iDisplayStart=t=-1===i||t<0?0:t}function gt(e,t){var e=e.renderer,n=C.ext.renderer[t];return L.isPlainObject(e)&&e[t]?n[e[t]]||n._:"string"==typeof e&&n[e]||n._}function E(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function mt(s,o,e){var t,n;e&&(t=new W(s)).one("draw",function(){e(t.ajax.json())}),"ssp"==E(s)?c(s,o):(S(s,!0),(n=s.jqXHR)&&4!==n.readyState&&n.abort(),we(s,[],function(e){ue(s);for(var t=ke(s,e),n=0,i=t.length;n<i;n++)k(s,t[n]);c(s,o),S(s,!1)}))}function vt(e,t,n,i,s){for(var o,a,r,l,c=[],h=typeof t,u=0,d=(t=t&&"string"!=h&&"function"!=h&&t.length!==O?t:[t]).length;u<d;u++)for(r=0,l=(a=t[u]&&t[u].split&&!t[u].match(/[\[\(:]/)?t[u].split(","):[t[u]]).length;r<l;r++)(o=n("string"==typeof a[r]?L.trim(a[r]):a[r]))&&o.length&&(c=c.concat(o));var p=f.selector[e];if(p.length)for(u=0,d=p.length;u<d;u++)c=p[u](i,s,c);return Z(c)}function bt(e){return(e=e||{}).filter&&e.search===O&&(e.search=e.filter),L.extend({search:"none",order:"current",page:"all"},e)}function yt(e){for(var t=0,n=e.length;t<n;t++)if(0<e[t].length)return e[0]=e[t],e[0].length=1,e.length=1,e.context=[e.context[t]],e;return e.length=0,e}function St(o,e,t,n){function a(e,t){var n;if(L.isArray(e)||e instanceof L)for(var i=0,s=e.length;i<s;i++)a(e[i],t);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?r.push(e):(n=L("<tr><td/></tr>").addClass(t),L("td",n).addClass(t).html(e)[0].colSpan=T(o),r.push(n[0]))}var r=[];a(t,n),e._details&&e._details.detach(),e._details=L(r),e._detailsShow&&e._details.insertAfter(e.nTr)}function _t(e,t){if((n=e.context).length&&e.length){e=n[0].aoData[e[0]];if(e._details){(e._detailsShow=t)?e._details.insertAfter(e.nTr):e._details.detach();var l=n[0],s=new W(l),t=".dt.DT_details",e="draw"+t,n="column-visibility"+t,t="destroy"+t,c=l.aoData;if(s.off(e+" "+n+" "+t),R(c,"_details").length>0){s.on(e,function(e,t){if(l!==t)return;s.rows({page:"current"}).eq(0).each(function(e){var t=c[e];if(t._detailsShow)t._details.insertAfter(t.nTr)})});s.on(n,function(e,t,n,i){if(l!==t)return;var s,o=T(t);for(var a=0,r=c.length;a<r;a++){s=c[a];if(s._details)s._details.children("td[colspan]").attr("colspan",o)}});s.on(t,function(e,t){if(l!==t)return;for(var n=0,i=c.length;n<i;n++)if(c[n]._details)Tt(s,n)})}}}}function wt(e,t,n,i,s){for(var o=[],a=0,r=s.length;a<r;a++)o.push(y(e,s[a],t));return o}var Ct=[],r=Array.prototype,W=function(e,t){if(!(this instanceof W))return new W(e,t);function n(e){var t,n,i,s;e=e,i=C.settings,s=L.map(i,function(e,t){return e.nTable}),(e=e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(t=L.inArray(e,s))?[i[t]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=L(e):e instanceof L&&(n=e),n?n.map(function(e){return-1!==(t=L.inArray(this,s))?i[t]:null}).toArray():void 0):[])&&(o=o.concat(e))}var o=[];if(L.isArray(e))for(var i=0,s=e.length;i<s;i++)n(e[i]);else n(e);this.context=Z(o),t&&L.merge(this,t),this.selector={rows:null,cols:null,opts:null},W.extend(this,this,Ct)},xt=(C.Api=W,L.extend(W.prototype,{any:function(){return 0!==this.count()},concat:r.concat,context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new W(t[e],this[e]):null},filter:function(e){var t=[];if(r.filter)t=r.filter.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)e.call(this,this[n],n,this)&&t.push(this[n]);return new W(this.context,t)},flatten:function(){var e=[];return new W(this.context,e.concat.apply(e,this.toArray()))},join:r.join,indexOf:r.indexOf||function(e,t){for(var n=t||0,i=this.length;n<i;n++)if(this[n]===e)return n;return-1},iterator:function(e,t,n,i){var s,o,a,r,l,c,h,u,d=[],p=this.context,f=this.selector;for("string"==typeof e&&(i=n,n=t,t=e,e=!1),o=0,a=p.length;o<a;o++){var g=new W(p[o]);if("table"===t)(s=n.call(g,p[o],o))!==O&&d.push(s);else if("columns"===t||"rows"===t)(s=n.call(g,p[o],this[o],o))!==O&&d.push(s);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t)for(h=this[o],"column-rows"===t&&(c=xt(p[o],f.opts)),r=0,l=h.length;r<l;r++)u=h[r],(s="cell"===t?n.call(g,p[o],u.row,u.column,o,r):n.call(g,p[o],u,o,r,c))!==O&&d.push(s)}return d.length||i?((e=(i=new W(p,e?d.concat.apply([],d):d)).selector).rows=f.rows,e.cols=f.cols,e.opts=f.opts,i):this},lastIndexOf:r.lastIndexOf||function(e,t){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(r.map)t=r.map.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)t.push(e.call(this,this[n],n));return new W(this.context,t)},pluck:function(t){return this.map(function(e){return e[t]})},pop:r.pop,push:r.push,reduce:r.reduce||function(e,t){return ee(this,e,t,0,this.length,1)},reduceRight:r.reduceRight||function(e,t){return ee(this,e,t,this.length-1,-1,-1)},reverse:r.reverse,selector:null,shift:r.shift,slice:function(){return new W(this.context,this)},sort:r.sort,splice:r.splice,toArray:function(){return r.slice.call(this)},to$:function(){return L(this)},toJQuery:function(){return L(this)},unique:function(){return new W(this.context,Z(this))},unshift:r.unshift}),W.extend=function(e,t,n){if(n.length&&t&&(t instanceof W||t.__dt_wrapper))for(var i,s=0,o=n.length;s<o;s++)t[(i=n[s]).name]="function"==typeof i.val?function(t,n,i){return function(){var e=n.apply(t,arguments);return W.extend(e,e,i.methodExt),e}}(e,i.val,i):L.isPlainObject(i.val)?{}:i.val,t[i.name].__dt_wrapper=!0,W.extend(e,t[i.name],i.propExt)},W.register=t=function(e,t){if(L.isArray(e))for(var n=0,i=e.length;n<i;n++)W.register(e[n],t);else for(var s=e.split("."),o=Ct,a=0,r=s.length;a<r;a++){var l,c,h=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n].name===t)return e[n];return null}(o,c=(l=-1!==s[a].indexOf("()"))?s[a].replace("()",""):s[a]);h||o.push(h={name:c,val:{},methodExt:[],propExt:[]}),a===r-1?h.val=t:o=l?h.methodExt:h.propExt}},W.registerPlural=e=function(e,t,n){W.register(e,n),W.register(t,function(){var e=n.apply(this,arguments);return e===this?this:e instanceof W?e.length?L.isArray(e[0])?new W(e.context,e[0]):e[0]:O:e})},t("tables()",function(e){return e?new W((e=e,n=this.context,"number"==typeof e?[n[e]]:(i=L.map(n,function(e,t){return e.nTable}),L(i).filter(e).map(function(e){var t=L.inArray(this,i);return n[t]}).toArray()))):this;var n,i}),t("table()",function(e){var e=this.tables(e),t=e.context;return t.length?new W(t[0]):e}),e("tables().nodes()","table().node()",function(){return this.iterator("table",function(e){return e.nTable},1)}),e("tables().body()","table().body()",function(){return this.iterator("table",function(e){return e.nTBody},1)}),e("tables().header()","table().header()",function(){return this.iterator("table",function(e){return e.nTHead},1)}),e("tables().footer()","table().footer()",function(){return this.iterator("table",function(e){return e.nTFoot},1)}),e("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)}),t("draw()",function(t){return this.iterator("table",function(e){"page"===t?g(e):c(e,!1===(t="string"==typeof t?"full-hold"!==t:t))})}),t("page()",function(t){return t===O?this.page.info().page:this.iterator("table",function(e){Ge(e,t)})}),t("page.info()",function(e){var t,n,i,s,o;return 0===this.context.length?O:(n=(t=this.context[0])._iDisplayStart,i=t.oFeatures.bPaginate?t._iDisplayLength:-1,s=t.fnRecordsDisplay(),{page:(o=-1===i)?0:Math.floor(n/i),pages:o?1:Math.ceil(s/i),start:n,end:t.fnDisplayEnd(),length:i,recordsTotal:t.fnRecordsTotal(),recordsDisplay:s,serverSide:"ssp"===E(t)})}),t("page.len()",function(t){return t===O?0!==this.context.length?this.context[0]._iDisplayLength:O:this.iterator("table",function(e){Ue(e,t)})}),t("ajax.json()",function(){var e=this.context;if(0<e.length)return e[0].json}),t("ajax.params()",function(){var e=this.context;if(0<e.length)return e[0].oAjaxData}),t("ajax.reload()",function(t,n){return this.iterator("table",function(e){mt(e,!1===n,t)})}),t("ajax.url()",function(t){var e=this.context;return t===O?0===e.length?O:(e=e[0]).ajax?L.isPlainObject(e.ajax)?e.ajax.url:e.ajax:e.sAjaxSource:this.iterator("table",function(e){L.isPlainObject(e.ajax)?e.ajax.url=t:e.ajax=t})}),t("ajax.url().load()",function(t,n){return this.iterator("table",function(e){mt(e,!1===n,t)})}),function(e,t){var n,i=[],s=e.aiDisplay,o=e.aiDisplayMaster,a=t.search,r=t.order,t=t.page;if("ssp"==E(e))return"removed"===a?[]:u(0,o.length);if("current"==t)for(c=e._iDisplayStart,h=e.fnDisplayEnd();c<h;c++)i.push(s[c]);else if("current"==r||"applied"==r){if("none"==a)i=o.slice();else if("applied"==a)i=s.slice();else if("removed"==a){for(var l={},c=0,h=s.length;c<h;c++)l[s[c]]=null;i=L.map(o,function(e){return l.hasOwnProperty(e)?null:e})}}else if("index"==r||"original"==r)for(c=0,h=e.aoData.length;c<h;c++)("none"==a||-1===(n=L.inArray(c,s))&&"removed"==a||0<=n&&"applied"==a)&&i.push(c);return i}),Tt=(t("rows()",function(t,n){t===O?t="":L.isPlainObject(t)&&(n=t,t=""),n=bt(n);var e=this.iterator("table",function(e){return vt("row",t,function(n){var e=d(n),i=s.aoData;if(null!==e&&!o)return[e];if(a=a||xt(s,o),null!==e&&-1!==L.inArray(e,a))return[e];if(null===n||n===O||""===n)return a;if("function"==typeof n)return L.map(a,function(e){var t=i[e];return n(e,t._aData,t.nTr)?e:null});if(n.nodeName)return e=n._DT_RowIndex,t=n._DT_CellIndex,e!==O?i[e]&&i[e].nTr===n?[e]:[]:t?i[t.row]&&i[t.row].nTr===n?[t.row]:[]:(e=L(n).closest("*[data-dt-row]")).length?[e.data("dt-row")]:[];if("string"==typeof n&&"#"===n.charAt(0)){var t=s.aIds[n.replace(/^#/,"")];if(t!==O)return[t.idx]}e=_(v(s.aoData,a,"nTr"));return L(e).filter(n).map(function(){return this._DT_RowIndex}).toArray()},s=e,o=n);var s,o,a},1);return e.selector.rows=t,e.selector.opts=n,e}),t("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||O},1)}),t("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return v(e.aoData,t,"_aData")},1)}),e("rows().cache()","row().cache()",function(n){return this.iterator("row",function(e,t){e=e.aoData[t];return"search"===n?e._aFilterData:e._aSortData},1)}),e("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(e,t){pe(e,t,n)})}),e("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)}),e("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,i=0,s=n.length;i<s;i++)for(var o=0,a=this[i].length;o<a;o++){var r=n[i].rowIdFn(n[i].aoData[this[i][o]]._aData);t.push((!0===e?"#":"")+r)}return new W(n,t)}),e("rows().remove()","row().remove()",function(){var u=this;return this.iterator("row",function(e,t,n){var i,s,o,a,r,l,c=e.aoData,h=c[t];for(c.splice(t,1),i=0,s=c.length;i<s;i++)if(l=(r=c[i]).anCells,null!==r.nTr&&(r.nTr._DT_RowIndex=i),null!==l)for(o=0,a=l.length;o<a;o++)l[o]._DT_CellIndex.row=i;de(e.aiDisplayMaster,t),de(e.aiDisplay,t),de(u[n],t,!1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,ft(e);n=e.rowIdFn(h._aData);n!==O&&delete e.aIds[n]}),this.iterator("table",function(e){for(var t=0,n=e.aoData.length;t<n;t++)e.aoData[t].idx=t}),this}),t("rows.add()",function(o){var e=this.iterator("table",function(e){for(var t,n=[],i=0,s=o.length;i<s;i++)(t=o[i]).nodeName&&"TR"===t.nodeName.toUpperCase()?n.push(ae(e,t)[0]):n.push(k(e,t));return n},1),t=this.rows(-1);return t.pop(),L.merge(t,e),t}),t("row()",function(e,t){return yt(this.rows(e,t))}),t("row().data()",function(e){var t,n=this.context;return e===O?n.length&&this.length?n[0].aoData[this[0]]._aData:O:((t=n[0].aoData[this[0]])._aData=e,L.isArray(e)&&t.nTr.id&&m(n[0].rowId)(e,t.nTr.id),pe(n[0],this[0],"data"),this)}),t("row().node()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]].nTr||null}),t("row.add()",function(t){t instanceof L&&t.length&&(t=t[0]);var e=this.iterator("table",function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?ae(e,t)[0]:k(e,t)});return this.row(e[0])}),function(e,t){var n=e.context;n.length&&(n=n[0].aoData[t!==O?t:e[0]])&&n._details&&(n._details.remove(),n._detailsShow=O,n._details=O)}),kt="row().child",Dt=kt+"()",It=(t(Dt,function(e,t){var n=this.context;return e===O?n.length&&this.length?n[0].aoData[this[0]]._details:O:(!0===e?this.child.show():!1===e?Tt(this):n.length&&this.length&&St(n[0],n[0].aoData[this[0]],e,t),this)}),t([kt+".show()",Dt+".show()"],function(e){return _t(this,!0),this}),t([kt+".hide()",Dt+".hide()"],function(){return _t(this,!1),this}),t([kt+".remove()",Dt+".remove()"],function(){return Tt(this),this}),t(kt+".isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}),/^([^:]+):(name|visIdx|visible)$/),At=(t("columns()",function(n,i){n===O?n="":L.isPlainObject(n)&&(i=n,n=""),i=bt(i);var e=this.iterator("table",function(e){return t=n,r=i,l=(a=e).aoColumns,c=R(l,"sName"),h=R(l,"nTh"),vt("column",t,function(n){var i,e=d(n);if(""===n)return u(l.length);if(null!==e)return[0<=e?e:l.length+e];if("function"==typeof n)return i=xt(a,r),L.map(l,function(e,t){return n(t,wt(a,t,0,0,i),h[t])?t:null});var s="string"==typeof n?n.match(It):"";if(s)switch(s[2]){case"visIdx":case"visible":var t,o=parseInt(s[1],10);return o<0?[(t=L.map(l,function(e,t){return e.bVisible?t:null}))[t.length+o]]:[j(a,o)];case"name":return L.map(c,function(e,t){return e===s[1]?t:null});default:return[]}return n.nodeName&&n._DT_CellIndex?[n._DT_CellIndex.column]:(e=L(h).filter(n).map(function(){return L.inArray(this,h)}).toArray()).length||!n.nodeName?e:(e=L(n).closest("*[data-dt-column]")).length?[e.data("dt-column")]:[]},a,r);var a,t,r,l,c,h},1);return e.selector.cols=n,e.selector.opts=i,e}),e("columns().header()","column().header()",function(e,t){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),e("columns().footer()","column().footer()",function(e,t){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),e("columns().data()","column().data()",function(){return this.iterator("column-rows",wt,1)}),e("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),e("columns().cache()","column().cache()",function(o){return this.iterator("column-rows",function(e,t,n,i,s){return v(e.aoData,s,"search"===o?"_aFilterData":"_aSortData",t)},1)}),e("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,i,s){return v(e.aoData,s,"anCells",t)},1)}),e("columns().visible()","column().visible()",function(u,n){var e=this.iterator("column",function(e,t){if(u===O)return e.aoColumns[t].bVisible;var n,i,s=t,t=u,o=e.aoColumns,a=o[s],r=e.aoData;if(t===O)a.bVisible;else if(a.bVisible!==t){if(t)for(var l=L.inArray(!0,R(o,"bVisible"),s+1),c=0,h=r.length;c<h;c++)i=r[c].nTr,n=r[c].anCells,i&&i.insertBefore(n[s],n[l]||null);else L(R(e.aoData,"anCells",s)).detach();a.bVisible=t,be(e,e.aoHeader),be(e,e.aoFooter),e.aiDisplay.length||L(e.nTBody).find("td[colspan]").attr("colspan",T(e)),ct(e)}});return u!==O&&(this.iterator("column",function(e,t){P(e,null,"column-visibility",[e,t,u,n])}),n!==O&&!n||this.columns.adjust()),e}),e("columns().indexes()","column().index()",function(n){return this.iterator("column",function(e,t){return"visible"===n?h(e,t):t},1)}),t("columns.adjust()",function(){return this.iterator("table",function(e){F(e)},1)}),t("column.index()",function(e,t){var n;if(0!==this.context.length)return n=this.context[0],"fromVisible"===e||"toData"===e?j(n,t):"fromData"===e||"toVisible"===e?h(n,t):void 0}),t("column()",function(e,t){return yt(this.columns(e,t))}),t("cells()",function(g,e,m){var n,i,s,o,a,r,l,t;return L.isPlainObject(g)&&(g.row===O?(m=g,g=null):(m=e,e=null)),L.isPlainObject(e)&&(m=e,e=null),null===e||e===O?this.iterator("table",function(e){return i=e,e=g,t=bt(m),u=i.aoData,d=xt(i,t),n=_(v(u,d,"anCells")),p=L([].concat.apply([],n)),f=i.aoColumns.length,vt("cell",e,function(e){var t,n="function"==typeof e;if(null===e||e===O||n){for(o=[],a=0,r=d.length;a<r;a++)for(s=d[a],l=0;l<f;l++)c={row:s,column:l},(!n||(h=u[s],e(c,y(i,s,l),h.anCells?h.anCells[l]:null)))&&o.push(c);return o}return L.isPlainObject(e)?e.column!==O&&e.row!==O&&-1!==L.inArray(e.row,d)?[e]:[]:(t=p.filter(e).map(function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}}).toArray()).length||!e.nodeName?t:(h=L(e).closest("*[data-dt-row]")).length?[{row:h.data("dt-row"),column:h.data("dt-column")}]:[]},i,t);var i,t,s,o,a,r,l,c,h,u,d,n,p,f}):(n=this.columns(e),i=this.rows(g),this.iterator("table",function(e,t){for(s=[],o=0,a=i[t].length;o<a;o++)for(r=0,l=n[t].length;r<l;r++)s.push({row:i[t][o],column:n[t][r]})},1),t=this.cells(s,m),L.extend(t.selector,{cols:e,rows:g,opts:m}),t)}),e("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){e=e.aoData[t];return e&&e.anCells?e.anCells[n]:O},1)}),t("cells().data()",function(){return this.iterator("cell",function(e,t,n){return y(e,t,n)},1)}),e("cells().cache()","cell().cache()",function(i){return i="search"===i?"_aFilterData":"_aSortData",this.iterator("cell",function(e,t,n){return e.aoData[t][i][n]},1)}),e("cells().render()","cell().render()",function(i){return this.iterator("cell",function(e,t,n){return y(e,t,n,i)},1)}),e("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:h(e,n)}},1)}),e("cells().invalidate()","cell().invalidate()",function(i){return this.iterator("cell",function(e,t,n){pe(e,t,i,n)})}),t("cell()",function(e,t,n){return yt(this.cells(e,t,n))}),t("cell().data()",function(e){var t=this.context,n=this[0];return e===O?t.length&&n.length?y(t[0],n[0].row,n[0].column):O:(re(t[0],n[0].row,n[0].column,e),pe(t[0],n[0].row,"data",n[0].column),this)}),t("order()",function(t,e){var n=this.context;return t===O?0!==n.length?n[0].aaSorting:O:("number"==typeof t?t=[[t,e]]:t.length&&!L.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",function(e){e.aaSorting=t.slice()}))}),t("order.listener()",function(t,n,i){return this.iterator("table",function(e){at(e,t,n,i)})}),t("order.fixed()",function(t){var e;return t?this.iterator("table",function(e){e.aaSortingFixed=L.extend(!0,{},t)}):(e=(e=this.context).length?e[0].aaSortingFixed:O,L.isArray(e)?{pre:e}:e)}),t(["columns().order()","column().order()"],function(i){var s=this;return this.iterator("table",function(e,t){var n=[];L.each(s[t],function(e,t){n.push([t,i])}),e.aaSorting=n})}),t("search()",function(t,n,i,s){var e=this.context;return t===O?0!==e.length?e[0].oPreviousSearch.sSearch:O:this.iterator("table",function(e){e.oFeatures.bFilter&&Ie(e,L.extend({},e.oPreviousSearch,{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===s||s}),1)})}),e("columns().search()","column().search()",function(i,s,o,a){return this.iterator("column",function(e,t){var n=e.aoPreSearchCols;if(i===O)return n[t].sSearch;e.oFeatures.bFilter&&(L.extend(n[t],{sSearch:i+"",bRegex:null!==s&&s,bSmart:null===o||o,bCaseInsensitive:null===a||a}),Ie(e,e.oPreviousSearch,1))})}),t("state()",function(){return this.context.length?this.context[0].oSavedState:null}),t("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})}),t("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),t("state.save()",function(){return this.iterator("table",function(e){ct(e)})}),C.versionCheck=C.fnVersionCheck=function(e){for(var t,n,i=C.version.split("."),s=e.split("."),o=0,a=s.length;o<a;o++)if((t=parseInt(i[o],10)||0)!==(n=parseInt(s[o],10)||0))return n<t;return!0},C.isDataTable=C.fnIsDataTable=function(e){var s=L(e).get(0),o=!1;return e instanceof C.Api||(L.each(C.settings,function(e,t){var n=t.nScrollHead?L("table",t.nScrollHead)[0]:null,i=t.nScrollFoot?L("table",t.nScrollFoot)[0]:null;t.nTable!==s&&n!==s&&i!==s||(o=!0)}),o)},C.tables=C.fnTables=function(t){var e=!1,n=(L.isPlainObject(t)&&(e=t.api,t=t.visible),L.map(C.settings,function(e){if(!t||L(e.nTable).is(":visible"))return e.nTable}));return e?new W(n):n},C.camelToHungarian=x,t("$()",function(e,t){t=this.rows(t).nodes(),t=L(t);return L([].concat(t.filter(e).toArray(),t.find(e).toArray()))}),L.each(["on","one","off"],function(e,n){t(n+"()",function(){var e=Array.prototype.slice.call(arguments),t=(e[0]=L.map(e[0].split(/\s/),function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" "),L(this.tables().nodes()));return t[n].apply(t,e),this})}),t("clear()",function(){return this.iterator("table",function(e){ue(e)})}),t("settings()",function(){return new W(this.context,this.context)}),t("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),t("data()",function(){return this.iterator("table",function(e){return R(e.aoData,"_aData")}).flatten()}),t("destroy()",function(u){return u=u||!1,this.iterator("table",function(t){var n,e=t.nTableWrapper.parentNode,i=t.oClasses,s=t.nTable,o=t.nTBody,a=t.nTHead,r=t.nTFoot,l=L(s),o=L(o),c=L(t.nTableWrapper),h=L.map(t.aoData,function(e){return e.nTr}),r=(t.bDestroying=!0,P(t,"aoDestroyCallback","destroy",[t]),u||new W(t).columns().visible(!0),c.off(".DT").find(":not(tbody *)").off(".DT"),L($).off(".DT-"+t.sInstance),s!=a.parentNode&&(l.children("thead").detach(),l.append(a)),r&&s!=r.parentNode&&(l.children("tfoot").detach(),l.append(r)),t.aaSorting=[],t.aaSortingFixed=[],rt(t),L(h).removeClass(t.asStripeClasses.join(" ")),L("th, td",a).removeClass(i.sSortable+" "+i.sSortableAsc+" "+i.sSortableDesc+" "+i.sSortableNone),o.children().detach(),o.append(h),u?"remove":"detach"),a=(l[r](),c[r](),!u&&e&&(e.insertBefore(s,t.nTableReinsertBefore),l.css("width",t.sDestroyWidth).removeClass(i.sTable),n=t.asDestroyStripes.length)&&o.children().each(function(e){L(this).addClass(t.asDestroyStripes[e%n])}),L.inArray(t,C.settings));-1!==a&&C.settings.splice(a,1)})}),L.each(["column","row","cell"],function(e,l){t(l+"s().every()",function(o){var a=this.selector.opts,r=this;return this.iterator(l,function(e,t,n,i,s){o.call(r[l](t,"cell"===l?n:a,"cell"===l?a:O),t,n,i,s)})})}),t("i18n()",function(e,t,n){var i=this.context[0],e=D(e)(i.oLanguage);return e===O&&(e=t),(e=n!==O&&L.isPlainObject(e)?e[n]!==O?e[n]:e._:e).replace("%d",n)}),C.version="1.10.18",C.settings=[],C.models={},C.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},C.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},C.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},C.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:L.extend({},C.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},a(C.defaults),C.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},a(C.defaults.column),C.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:O,oAjaxData:O,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==E(this)?+this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==E(this)?+this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,i=this.aiDisplay.length,s=this.oFeatures,o=s.bPaginate;return s.bServerSide?!1===o||-1===e?t+i:Math.min(t+e,this._iRecordsDisplay):!o||i<n||-1===e?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},C.ext=f={buttons:{},classes:{},build:"dt/dt-1.10.18",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:C.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:C.version},L.extend(f,{afnFiltering:f.search,aTypes:f.type.detect,ofnSearch:f.type.search,oSort:f.type.order,afnSortData:f.order,aoFeatures:f.feature,oApi:f.internal,oStdClasses:f.classes,oPagination:f.pager}),L.extend(C.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),C.ext.pager);function Mt(e,t){var n=[],i=At.numbers_length,s=Math.floor(i/2);return t<=i?n=u(0,t):e<=s?((n=u(0,i-2)).push("ellipsis"),n.push(t-1)):((t-1-s<=e?n=u(t-(i-2),t):((n=u(e-s+2,e+s-1)).push("ellipsis"),n.push(t-1),n)).splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}L.extend(At,{simple:function(e,t){return["previous","next"]},full:function(e,t){return["first","previous","next","last"]},numbers:function(e,t){return[Mt(e,t)]},simple_numbers:function(e,t){return["previous",Mt(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Mt(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Mt(e,t),"last"]},_numbers:Mt,numbers_length:7}),L.extend(!0,C.ext.renderer,{pageButton:{_:function(r,e,l,t,c,h){function u(e,t){for(var n,i=function(e){Ge(r,e.data.action,!0)},s=0,o=t.length;s<o;s++)if(n=t[s],L.isArray(n)){var a=L("<"+(n.DT_el||"div")+"/>").appendTo(e);u(a,n)}else{switch(d=null,p="",n){case"ellipsis":e.append('<span class="ellipsis">&#x2026;</span>');break;case"first":d=g.sFirst,p=n+(0<c?"":" "+f.sPageButtonDisabled);break;case"previous":d=g.sPrevious,p=n+(0<c?"":" "+f.sPageButtonDisabled);break;case"next":d=g.sNext,p=n+(c<h-1?"":" "+f.sPageButtonDisabled);break;case"last":d=g.sLast,p=n+(c<h-1?"":" "+f.sPageButtonDisabled);break;default:d=n+1,p=c===n?f.sPageButtonActive:""}null!==d&&(pt(L("<a>",{class:f.sPageButton+" "+p,"aria-controls":r.sTableId,"aria-label":m[n],"data-dt-idx":v,tabindex:r.iTabIndex,id:0===l&&"string"==typeof n?r.sTableId+"_"+n:null}).html(d).appendTo(e),{action:n},i),v++)}}var d,p,n,f=r.oClasses,g=r.oLanguage.oPaginate,m=r.oLanguage.oAria.paginate||{},v=0;try{n=L(e).find(b.activeElement).data("dt-idx")}catch(e){}u(L(e).empty(),t),n!==O&&L(e).find("[data-dt-idx="+n+"]").focus()}}}),L.extend(C.ext.type.detect,[function(e,t){t=t.oLanguage.sDecimal;return l(e,t)?"num"+t:null},function(e,t){var n;return(!e||e instanceof Date||U.test(e))&&(null!==(n=Date.parse(e))&&!isNaN(n)||s(e))?"date":null},function(e,t){t=t.oLanguage.sDecimal;return l(e,t,!0)?"num-fmt"+t:null},function(e,t){t=t.oLanguage.sDecimal;return n(e,t)?"html-num"+t:null},function(e,t){t=t.oLanguage.sDecimal;return n(e,t,!0)?"html-num-fmt"+t:null},function(e,t){return s(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),L.extend(C.ext.type.search,{html:function(e){return s(e)?e:"string"==typeof e?e.replace(w," ").replace(B,""):""},string:function(e){return!s(e)&&"string"==typeof e?e.replace(w," "):e}});function Pt(e,t,n,i){return 0===e||e&&"-"!==e?+(e=(e=t?G(e,t):e).replace&&(n&&(e=e.replace(n,"")),i)?e.replace(i,""):e):-1/0}function Et(n){L.each({num:function(e){return Pt(e,n)},"num-fmt":function(e){return Pt(e,n,q)},"html-num":function(e){return Pt(e,n,B)},"html-num-fmt":function(e){return Pt(e,n,B,q)}},function(e,t){f.type.order[e+n+"-pre"]=t,e.match(/^html\-/)&&(f.type.search[e+n]=f.type.search.html)})}L.extend(f.type.order,{"date-pre":function(e){e=Date.parse(e);return isNaN(e)?-1/0:e},"html-pre":function(e){return s(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return s(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e<t?-1:t<e?1:0},"string-desc":function(e,t){return e<t?1:t<e?-1:0}}),Et(""),L.extend(!0,C.ext.renderer,{header:{_:function(s,o,a,r){L(s.nTable).on("order.dt.DT",function(e,t,n,i){s===t&&(t=a.idx,o.removeClass(a.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[t]?r.sSortAsc:"desc"==i[t]?r.sSortDesc:a.sSortingClass))})},jqueryui:function(s,o,a,r){L("<div/>").addClass(r.sSortJUIWrapper).append(o.contents()).append(L("<span/>").addClass(r.sSortIcon+" "+a.sSortingClassJUI)).appendTo(o),L(s.nTable).on("order.dt.DT",function(e,t,n,i){s===t&&(t=a.idx,o.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[t]?r.sSortAsc:"desc"==i[t]?r.sSortDesc:a.sSortingClass),o.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==i[t]?r.sSortJUIAsc:"desc"==i[t]?r.sSortJUIDesc:a.sSortingClassJUI))})}}});function Lt(e){return"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e}function Ot(t){return function(){var e=[ut(this[C.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return C.ext.internal[t].apply(this,e)}}return C.render={number:function(i,s,o,a,r){return{display:function(e){if("number"!=typeof e&&"string"!=typeof e)return e;var t=e<0?"-":"",n=parseFloat(e);if(isNaN(n))return Lt(e);n=n.toFixed(o),e=Math.abs(n);n=parseInt(e,10),e=o?s+(e-n).toFixed(o).substring(2):"";return t+(a||"")+n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,i)+e+(r||"")}}},text:function(){return{display:Lt}}},L.extend(C.ext.internal,{_fnExternApiFunc:Ot,_fnBuildAjax:we,_fnAjaxUpdate:Ce,_fnAjaxParameters:xe,_fnAjaxUpdateDraw:Te,_fnAjaxDataSrc:ke,_fnAddColumn:te,_fnColumnOptions:ne,_fnAdjustColumnSizing:F,_fnVisibleToColumnIndex:j,_fnColumnIndexToVisible:h,_fnVisbleColumns:T,_fnGetColumns:ie,_fnColumnTypes:se,_fnApplyColumnDefs:oe,_fnHungarianMap:a,_fnCamelToHungarian:x,_fnLanguageCompat:J,_fnBrowserDetect:Q,_fnAddData:k,_fnAddTr:ae,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==O?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,t,n){return L.inArray(n,e.aoData[t].anCells)},_fnGetCellData:y,_fnSetCellData:re,_fnSplitObjNotation:ce,_fnGetObjectDataFn:D,_fnSetObjectDataFn:m,_fnGetDataMaster:he,_fnClearTable:ue,_fnDeleteIndex:de,_fnInvalidate:pe,_fnGetRowElements:fe,_fnCreateTr:ge,_fnBuildHead:ve,_fnDrawHead:be,_fnDraw:g,_fnReDraw:c,_fnAddOptionsHtml:ye,_fnDetectHeader:Se,_fnGetUniqueThs:_e,_fnFeatureHtmlFilter:De,_fnFilterComplete:Ie,_fnFilterCustom:Ae,_fnFilterColumn:Me,_fnFilter:Pe,_fnFilterCreateSearch:Ee,_fnEscapeRegex:Le,_fnFilterData:Fe,_fnFeatureHtmlInfo:Ne,_fnUpdateInfo:ze,_fnInfoMacros:We,_fnInitialise:$e,_fnInitComplete:Be,_fnLengthChange:Ue,_fnFeatureHtmlLength:Ve,_fnFeatureHtmlPaginate:qe,_fnPageChange:Ge,_fnFeatureHtmlProcessing:Xe,_fnProcessingDisplay:S,_fnFeatureHtmlTable:Ze,_fnScrollDraw:Je,_fnApplyToChildren:H,_fnCalculateColumnWidths:Ke,_fnThrottle:Qe,_fnConvertToWidth:et,_fnGetWidestNode:tt,_fnGetMaxLenString:nt,_fnStringToCss:N,_fnSortFlatten:I,_fnSort:it,_fnSortAria:st,_fnSortListener:ot,_fnSortAttachListener:at,_fnSortingClasses:rt,_fnSortData:lt,_fnSaveState:ct,_fnLoadState:ht,_fnSettingsFromNode:ut,_fnLog:z,_fnMap:A,_fnBindAction:pt,_fnCallbackReg:M,_fnCallbackFire:P,_fnLengthOverflow:ft,_fnRenderer:gt,_fnDataSource:E,_fnRowAttributes:me,_fnExtend:dt,_fnCalculateEnd:function(){}}),((L.fn.dataTable=C).$=L).fn.dataTableSettings=C.settings,L.fn.dataTableExt=C.ext,L.fn.DataTable=function(e){return L(this).dataTable(e).api()},L.each(C,function(e,t){L.fn.DataTable[e]=t}),L.fn.dataTable}),function(){function F(e,t,n){return e.call.apply(e.bind,arguments)}function j(t,n,e){var i;if(t)return 2<arguments.length?(i=Array.prototype.slice.call(arguments,2),function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(e,i),t.apply(n,e)}):function(){return t.apply(n,arguments)};throw Error()}function p(e,t,n){return(p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?F:j).apply(null,arguments)}var r=Date.now||function(){return+new Date};function H(e,t){this.a=e,this.m=t||e,this.c=this.m.document}var N=!!window.FontFace;function l(e,t,n,i){if(t=e.c.createElement(t),n)for(var s in n)n.hasOwnProperty(s)&&("style"==s?t.style.cssText=n[s]:t.setAttribute(s,n[s]));return i&&t.appendChild(e.c.createTextNode(i)),t}function c(e,t,n){(e=(e=e.c.getElementsByTagName(t)[0])||document.documentElement).insertBefore(n,e.lastChild)}function n(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t,n){t=t||[],n=n||[];for(var i=e.className.split(/\s+/),s=0;s<t.length;s+=1){for(var o=!1,a=0;a<i.length;a+=1)if(t[s]===i[a]){o=!0;break}o||i.push(t[s])}for(t=[],s=0;s<i.length;s+=1){for(o=!1,a=0;a<n.length;a+=1)if(i[s]===n[a]){o=!0;break}o||t.push(i[s])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function o(e,t){for(var n=e.className.split(/\s+/),i=0,s=n.length;i<s;i++)if(n[i]==t)return!0;return!1}function x(e){var t;return"string"==typeof e.f?e.f:"https:"==(t="about:"==(t=e.m.location.protocol)?e.a.location.protocol:t)?"https:":"http:"}function T(e,t,n){function i(){a&&s&&(a(o),a=null)}t=l(e,"link",{rel:"stylesheet",href:t,media:"all"});var s=!1,o=null,a=n||null;N?(t.onload=function(){s=!0,i()},t.onerror=function(){s=!0,o=Error("Stylesheet failed to load"),i()}):setTimeout(function(){s=!0,i()},0),c(e,"head",t)}function i(e,t,n,i){var s,o,a=e.c.getElementsByTagName("head")[0];return a?(s=l(e,"script",{src:t}),o=!1,s.onload=s.onreadystatechange=function(){o||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(o=!0,n&&n(null),s.onload=s.onreadystatechange=null,"HEAD"==s.parentNode.tagName&&a.removeChild(s))},a.appendChild(s),setTimeout(function(){o||(o=!0,n&&n(Error("Script load timeout")))},i||5e3),s):null}function k(){this.a=0,this.c=null}function D(e){return e.a++,function(){e.a--,s(e)}}function I(e,t){e.c=t,s(e)}function s(e){0==e.a&&e.c&&(e.c(),e.c=null)}function a(e){this.a=e||"-"}function A(e,t){this.c=e,this.f=4,this.a="n";e=(t||"n4").match(/^([nio])([1-9])$/i);e&&(this.a=e[1],this.f=parseInt(e[2],10))}function h(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var i=e[n].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?t.push("'"+i+"'"):t.push(i)}return t.join(",")}function g(e){return e.a+e.f}function u(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function z(e,t){this.c=e,this.f=e.m.document.documentElement,this.h=t,this.a=new a("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function m(e){var t,n,i;e.g&&(t=o(e.f,e.a.c("wf","active")),n=[],i=[e.a.c("wf","loading")],t||n.push(e.a.c("wf","inactive")),f(e.f,n,i)),v(e,"inactive")}function v(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,g(n)):e.h[t]())}function W(){this.c={}}function d(e,t){this.c=e,this.f=t,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function b(e){c(e.c,"body",e.a)}function y(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+h(e.c)+";font-style:"+u(e)+";font-weight:"+e.f+"00;"}function S(e,t,n,i,s,o){this.g=e,this.j=t,this.a=i,this.c=n,this.f=s||3e3,this.h=o||void 0}function _(e,t,n,i,s,o,a){this.v=e,this.B=t,this.c=n,this.a=i,this.s=a||"BESbswy",this.f={},this.w=s||3e3,this.u=o||null,this.o=this.j=this.h=this.g=null,this.g=new d(this.c,this.s),this.h=new d(this.c,this.s),this.j=new d(this.c,this.s),this.o=new d(this.c,this.s),e=y(e=new A(this.a.c+",serif",g(this.a))),this.g.a.style.cssText=e,e=y(e=new A(this.a.c+",sans-serif",g(this.a))),this.h.a.style.cssText=e,e=y(e=new A("serif",g(this.a))),this.j.a.style.cssText=e,e=y(e=new A("sans-serif",g(this.a))),this.o.a.style.cssText=e,b(this.g),b(this.h),b(this.j),b(this.o)}a.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},S.prototype.start=function(){var s=this.c.m.document,o=this,a=r(),e=new Promise(function(n,i){!function t(){var e;r()-a>=o.f?i():s.fonts.load(u(e=o.a)+" "+e.f+"00 300px "+h(e.c),o.h).then(function(e){1<=e.length?n():setTimeout(t,25)},function(){i()})}()}),t=new Promise(function(e,t){setTimeout(t,o.f)});Promise.race([t,e]).then(function(){o.g(o.a)},function(){o.j(o.a)})};var w={D:"serif",C:"sans-serif"},t=null;function C(){var e;return null===t&&(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),t=!!e&&(parseInt(e[1],10)<536||536===parseInt(e[1],10)&&parseInt(e[2],10)<=11)),t}function M(e,t,n){for(var i in w)if(w.hasOwnProperty(i)&&t===e.f[w[i]]&&n===e.f[w[i]])return!0;return!1}function P(e){var t=e.g.a.offsetWidth,n=e.h.a.offsetWidth;t===e.f.serif&&n===e.f["sans-serif"]||C()&&M(e,t,n)?r()-e.A>=e.w?C()&&M(e,t,n)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?E(e,e.v):E(e,e.B):setTimeout(p(function(){P(this)},e),50):E(e,e.v)}function E(e,t){setTimeout(p(function(){n(this.g.a),n(this.h.a),n(this.j.a),n(this.o.a),t(this.a)},e),0)}function L(e,t,n){this.c=e,this.a=t,this.f=0,this.o=this.j=!1,this.s=n}_.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.o.a.offsetWidth,this.A=r(),P(this)};var O=null;function $(e){0==--e.f&&e.j&&(e.o?((e=e.a).g&&f(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),v(e,"active")):m(e.a))}function B(e){this.j=e,this.a=new W,this.h=0,this.f=this.g=!0}function U(e,t){this.c=e,this.a=t}function V(e,t){this.c=e,this.a=t}function q(e,t,n){this.c=e||t+"//fonts.googleapis.com/css",this.a=[],this.f=[],this.g=n||""}L.prototype.g=function(e){var t=this.a;t.g&&f(t.f,[t.a.c("wf",e.c,g(e).toString(),"active")],[t.a.c("wf",e.c,g(e).toString(),"loading"),t.a.c("wf",e.c,g(e).toString(),"inactive")]),v(t,"fontactive",e),this.o=!0,$(this)},L.prototype.h=function(e){var t,n,i,s=this.a;s.g&&(t=o(s.f,s.a.c("wf",e.c,g(e).toString(),"active")),n=[],i=[s.a.c("wf",e.c,g(e).toString(),"loading")],t||n.push(s.a.c("wf",e.c,g(e).toString(),"inactive")),f(s.f,n,i)),v(s,"fontinactive",e),$(this)},B.prototype.load=function(e){this.c=new H(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes;var i=this,t=new z(this.c,e),n=e,s=[],e=n.timeout,s=(function(e){e.g&&f(e.f,[e.a.c("wf","loading")]),v(e,"loading")}(t),function(e,t,n){var i,s,o=[];for(i in t)t.hasOwnProperty(i)&&(s=e.c[i])&&o.push(s(t[i],n));return o}(i.a,n,i.c)),o=new L(i.c,t,e);for(i.h=s.length,t=0,n=s.length;t<n;t++)s[t].load(function(e,t,n){var l,c,h,u,d;l=o,c=e,h=t,u=n,d=0==--(e=i).h,(e.f||e.g)&&setTimeout(function(){var e=u||null,t=h||{};if(0===c.length&&d)m(l.a);else{l.f+=c.length,d&&(l.j=d);for(var n=[],i=0;i<c.length;i++){var s=c[i],o=t[s.c],a=l.a,r=s;a.g&&f(a.f,[a.a.c("wf",r.c,g(r).toString(),"loading")]),v(a,"fontloading",r),a=(O=(a=null)===O?!!window.FontFace&&(!(r=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))||42<parseInt(r[1],10)):O)?new S(p(l.g,l),p(l.h,l),l.c,s,l.s,o):new _(p(l.g,l),p(l.h,l),l.c,s,l.s,e,o),n.push(a)}for(i=0;i<n.length;i++)n[i].start()}},0)})},U.prototype.load=function(a){var r,e,t=this,l=t.a.projectId,n=t.a.version;l?(r=t.c.m,i(this.c,(e=l,n=n,x(t.c)+"//"+(t.a.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,"")+"/"+e+".js"+(n?"?v="+n:"")),function(e){e?a([]):(r["__MonotypeConfiguration__"+l]=function(){return t.a},function e(){if(r["__mti_fntLst"+l]){var t,n=r["__mti_fntLst"+l](),i=[];if(n)for(var s=0;s<n.length;s++){var o=n[s].fontfamily;null!=n[s].fontStyle&&null!=n[s].fontWeight?(t=n[s].fontStyle+n[s].fontWeight,i.push(new A(o,t))):i.push(new A(o))}a(i)}else setTimeout(function(){e()},50)}())}).id="__MonotypeAPIScript__"+l):a([])},V.prototype.load=function(e){for(var t=this.a.urls||[],n=this.a.families||[],i=this.a.testStrings||{},s=new k,o=0,a=t.length;o<a;o++)T(this.c,t[o],D(s));var r=[];for(o=0,a=n.length;o<a;o++)if((t=n[o].split(":"))[1])for(var l=t[1].split(","),c=0;c<l.length;c+=1)r.push(new A(t[0],l[c]));else r.push(new A(t[0]));I(s,function(){e(r,i)})};function G(e){this.f=e,this.a=[],this.c={}}var X={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},J={i:"i",italic:"i",n:"n",normal:"n"},Y=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function K(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}K.prototype.load=function(e){for(var t=new k,n=this.c,i=new q(this.a.api,x(n),this.a.text),s=this.a.families,o=i,a=s,r=a.length,l=0;l<r;l++){var c=a[l].split(":"),h=(3==c.length&&o.f.push(c.pop()),"");2==c.length&&""!=c[1]&&(h=":"),o.a.push(c.join(h))}for(var u=new G(s),d=u,p=d.f.length,f=0;f<p;f++){var g=d.f[f].split(":"),m=g[0].replace(/\+/g," "),v=["n4"];if(2<=g.length){var b,y,S=g[1],_=[];if(S)for(var w=(S=S.split(",")).length,C=0;C<w;C++)(y=!(y=S[C]).match(/^[\w-]+$/)||null==(b=Y.exec(y.toLowerCase()))?"":[y=null==(y=b[2])||""==y?"n":J[y],b=null==(b=b[1])||""==b?"4":Z[b]||(isNaN(b)?"4":b.substr(0,1))].join(""))&&_.push(y);0<_.length&&(v=_),3==g.length&&(_=[],0<(g=(g=g[2])?g.split(","):_).length)&&(g=X[g[0]])&&(d.c[m]=g)}for(d.c[m]||(g=X[m])&&(d.c[m]=g),g=0;g<v.length;g+=1)d.a.push(new A(m,v[g]))}T(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],i=0;i<t;i++)n.push(e.a[i].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(i),D(t)),I(t,function(){e(u.a,u.c,Q)})},ee.prototype.load=function(a){var e=this.a.id,r=this.c.m;e?i(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",function(e){if(e)a([]);else if(r.Typekit&&r.Typekit.config&&r.Typekit.config.fn){e=r.Typekit.config.fn;for(var t=[],n=0;n<e.length;n+=2)for(var i=e[n],s=e[n+1],o=0;o<s.length;o++)t.push(new A(i,s[o]));try{r.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}a(t)}},2e3):a([])},te.prototype.load=function(l){var e=this.f.id,t=this.c.m,c=this;e?(t.__webfontfontdeckmodule__||(t.__webfontfontdeckmodule__={}),t.__webfontfontdeckmodule__[e]=function(e,t){for(var n,i,s,o=0,a=t.fonts.length;o<a;++o){var r=t.fonts[o];c.a.push(new A(r.name,(r="font-weight:"+r.weight+";font-style:"+r.style,s=i=n=void 0,n=4,i="n",s=null,r&&((s=r.match(/(normal|oblique|italic)/i))&&s[1]&&(i=s[1].substr(0,1).toLowerCase()),s=r.match(/([1-9]00|normal|bold)/i))&&s[1]&&(/bold/i.test(s[1])?n=7:/[1-9]00/.test(s[1])&&(n=parseInt(s[1].substr(0,1),10))),i+n)))}l(c.a)},i(this.c,x(this.c)+(this.f.api||"//f.fontdeck.com/s/css/js/")+((t=this.c).m.location.hostname||t.a.location.hostname)+"/"+e+".js",function(e){e&&l([])})):l([])};var e=new B(window),R=(e.a.c.custom=function(e,t){return new V(t,e)},e.a.c.fontdeck=function(e,t){return new te(t,e)},e.a.c.monotype=function(e,t){return new U(t,e)},e.a.c.typekit=function(e,t){return new ee(t,e)},e.a.c.google=function(e,t){return new K(t,e)},{load:p(e.load,e)});"function"==typeof define&&define.amd?define(function(){return R}):"undefined"!=typeof module&&module.exports?module.exports=R:(window.WebFont=R,window.WebFontConfig&&e.load(window.WebFontConfig))}(),function(s){void 0===s.fn.each2&&s.extend(s.fn,{each2:function(e){for(var t=s([0]),n=-1,i=this.length;++n<i&&(t.context=t[0]=this[n])&&!1!==e.call(t[0],n,t););return this}})}(jQuery),function(v,b){var e,t,n,y,s,r,m,c,i,o,a;function l(e){var t=v(document.createTextNode(""));e.before(t),t.before(e),t.remove()}function h(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return i[e]||e})}function u(e,t){for(var n=0,i=t.length;n<i;n+=1)if(d(e,t[n]))return n;return-1}function d(e,t){return e===t||e!==b&&t!==b&&null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+"")}function p(e,t,n){var i,s,o;if(null===e||e.length<1)return[];for(s=0,o=(i=e.split(t)).length;s<o;s+=1)i[s]=n(i[s]);return i}function f(e){return e.outerWidth(!1)-e.width()}function g(t){var n="keyup-change-value";t.on("keydown",function(){v.data(t,n)===b&&v.data(t,n,t.val())}),t.on("keyup",function(){var e=v.data(t,n);e!==b&&t.val()!==e&&(v.removeData(t,n),t.trigger("keyup-change"))})}function S(t,n,i){var s;return i=i||b,function(){var e=arguments;window.clearTimeout(s),s=window.setTimeout(function(){n.apply(i,e)},t)}}function _(e){e.preventDefault(),e.stopPropagation()}function w(e,t,n){var i,s=[],o=v.trim(e.attr("class"));o&&v((o=""+o).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&s.push(this)}),(o=v.trim(t.attr("class")))&&v((o=""+o).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(i=n(this))&&s.push(i)}),e.attr("class",s.join(" "))}function C(e,t,n,i){var s=h(e.toUpperCase()).indexOf(h(t.toUpperCase())),t=t.length;s<0?n.push(i(e)):(n.push(i(e.substring(0,s))),n.push("<span class='select2-match'>"),n.push(i(e.substring(s,s+t))),n.push("</span>"),n.push(i(e.substring(s+t,e.length))))}function x(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function T(o){var e,a=null,t=o.quietMillis||100,r=o.url,l=this;return function(s){window.clearTimeout(e),e=window.setTimeout(function(){var e=o.data,t=r,n=o.transport||v.fn.select2.ajaxDefaults.transport,i={type:o.type||"GET",cache:o.cache||!1,jsonpCallback:o.jsonpCallback||b,dataType:o.dataType||"json"},i=v.extend({},v.fn.select2.ajaxDefaults.params,i),e=e?e.call(l,s.term,s.page,s.context):null,t="function"==typeof t?t.call(l,s.term,s.page,s.context):t;a&&"function"==typeof a.abort&&a.abort(),o.params&&(v.isFunction(o.params)?v.extend(i,o.params.call(l)):v.extend(i,o.params)),v.extend(i,{url:t,dataType:o.dataType,data:e,success:function(e){e=o.results(e,s.page,s);s.callback(e)},error:function(e,t,n){s.callback({hasError:!0,jqXHR:e,textStatus:t,errorThrown:n})}}),a=n.call(l,i)},t)}}function k(e){var t,n,i=e,r=function(e){return""+e.text},e=(v.isArray(i)&&(i={results:n=i}),!1===v.isFunction(i)&&(n=i,i=function(){return n}),i());return e.text&&(r=e.text,v.isFunction(r)||(t=e.text,r=function(e){return e[t]})),function(s){var o,a=s.term,n={results:[]};""===a?s.callback(i()):(o=function(e,t){var n,i;if((e=e[0]).children){for(i in n={},e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.children=[],v(e.children).each2(function(e,t){o(t,n.children)}),(n.children.length||s.matcher(a,r(n),e))&&t.push(n)}else s.matcher(a,r(e),e)&&t.push(e)},v(i().results).each2(function(e,t){o(t,n.results)}),s.callback(n))}}function D(t){var o=v.isFunction(t);return function(n){var i=n.term,s={results:[]},e=o?t(n):t;v.isArray(e)&&(v(e).each(function(){var e=this.text!==b,t=e?this.text:this;""!==i&&!n.matcher(i,t)||s.results.push(e?this:{id:this,text:this})}),n.callback(s))}}function I(e,t){if(v.isFunction(e))return 1;if(e){if("string"==typeof e)return 1;throw new Error(t+" must be a string, function, or falsy value")}}function A(e,t){var n;return v.isFunction(e)?(n=Array.prototype.slice.call(arguments,2),e.apply(t,n)):e}function M(){var n=this;v.each(arguments,function(e,t){n[t].remove(),n[t]=null})}function P(e,t){function n(){}return((n.prototype=new e).constructor=n).prototype.parent=e.prototype,n.prototype=v.extend(n.prototype,t),n}window.Select2===b&&(r={x:0,y:0},c={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which||e){case c.LEFT:case c.RIGHT:case c.UP:case c.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case c.SHIFT:case c.CTRL:case c.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return 112<=(e=e.which||e)&&e<=123}},i={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},a=v(document),o=1,y=function(){return o++},e=P(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(e){var o,t,n,i,s=".select2-results",a=(this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==b&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=v(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=v("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+y()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",e.element.attr("title")),this.body=v(document.body),w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(A(e.containerCss,this.opts.element)),this.container.addClass(A(e.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",_),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(e.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=o=this.container.find(s),this.search=t=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",_),this.results.on("mousemove",function(e){var t=r;t!==b&&t.x===e.pageX&&t.y===e.pageY||v(e.target).trigger("mousemove-filtered",e)}),this.dropdown.on("mousemove-filtered",s,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",s,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",s,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",s,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),a=80,n=this.results,i=S(a,function(e){n.trigger("scroll-debounced",e)}),n.on("scroll",function(e){0<=u(e.target,n.get())&&i(e)}),this.dropdown.on("scroll-debounced",s,this.bind(this.loadMoreIfNeeded)),v(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),v(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),v.fn.mousewheel&&o.mousewheel(function(e,t,n,i){var s=o.scrollTop();0<i&&s-i<=0?(o.scrollTop(0),_(e)):i<0&&o.get(0).scrollHeight-o.scrollTop()+i<=o.height()&&(o.scrollTop(o.get(0).scrollHeight-o.height()),_(e))}),g(t),t.on("keyup-change input paste",this.bind(this.updateResults)),t.on("focus",function(){t.addClass("select2-focused")}),t.on("blur",function(){t.removeClass("select2-focused")}),this.dropdown.on("mouseup",s,this.bind(function(e){0<v(e.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=b,v.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength),e.element.prop("disabled")),s=(this.enable(!(a=a===b?!1:a)),e.element.prop("readonly"));this.readonly(s=s===b?!1:s),m=m||((a=v("<div class='select2-measure-scrollbar'></div>")).appendTo(document.body),s={width:a.width()-a[0].clientWidth,height:a.height()-a[0].clientHeight},a.remove(),s),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",e.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,t=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,t!==b&&(t.container.remove(),t.liveRegion.remove(),t.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),M.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:d(e.attr("locked"),"locked")||d(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(g){var e,t,n,m=this,a=g.element;if("select"===a.get(0).tagName.toLowerCase()&&(this.select=e=g.element),e&&v.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in g)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),g.debug=g.debug||v.fn.select2.defaults.debug,g.debug&&console&&console.warn&&(null!=g.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=g.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=g.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=g.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=g.ajax&&null!=g.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=g.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=g.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=g.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=g.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=g.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=g.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),g.element.data("select2Tags"))&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0."),null!=g.element.data("tags")&&(n=g.element.data("tags"),v.isArray(n)||(n=[]),g.element.data("select2Tags",n)),null!=g.sorter&&(g.sortResults=g.sorter),null!=g.selectOnClose&&(g.selectOnBlur=g.selectOnClose),null!=g.ajax&&v.isFunction(g.ajax.processResults)&&(g.ajax.results=g.ajax.processResults),null!=g.language&&(n=g.language,v.isFunction(n.noMatches)&&(g.formatNoMatches=n.noMatches),v.isFunction(n.searching)&&(g.formatSearching=n.searching),v.isFunction(n.inputTooShort)&&(g.formatInputTooShort=n.inputTooShort),v.isFunction(n.inputTooLong)&&(g.formatInputTooLong=n.inputTooLong),v.isFunction(n.loadingMore)&&(g.formatLoading=n.loadingMore),v.isFunction(n.maximumSelected))&&(g.formatSelectionTooBig=n.maximumSelected),"function"!=typeof(g=v.extend({},{populateResults:function(e,t,u){var d=this.opts.id,p=this.liveRegion,f=function(e,t,n){for(var i,s,o,a,r,l=[],c=0,h=(e=g.sortResults(e,t,u)).length;c<h;c+=1)a=!(r=!0===(i=e[c]).disabled)&&d(i)!==b,s=i.children&&0<i.children.length,(o=v("<li></li>")).addClass("select2-results-dept-"+n),o.addClass("select2-result"),o.addClass(a?"select2-result-selectable":"select2-result-unselectable"),r&&o.addClass("select2-disabled"),s&&o.addClass("select2-result-with-children"),o.addClass(m.opts.formatResultCssClass(i)),o.attr("role","presentation"),(a=v(document.createElement("div"))).addClass("select2-result-label"),a.attr("id","select2-result-label-"+y()),a.attr("role","option"),(r=g.formatResult(i,a,u,m.opts.escapeMarkup))!==b&&(a.html(r),o.append(a)),s&&((r=v("<ul></ul>")).addClass("select2-result-sub"),f(i.children,r,n+1),o.append(r)),o.data("select2-data",i),l.push(o[0]);t.append(l),p.text(g.formatMatches(e.length))};f(t,e,0)}},v.fn.select2.defaults,g)).id&&(t=g.id,g.id=function(e){return e[t]}),v.isArray(g.element.data("select2Tags"))){if("tags"in g)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+g.element.attr("id");g.tags=g.element.data("select2Tags")}if(e?(g.query=this.bind(function(i){var e,n={results:[],more:!1},s=i.term,o=function(e,t){var n;e.is("option")?i.matcher(s,e.text(),e)&&t.push(m.optionToData(e)):e.is("optgroup")&&(n=m.optionToData(e),e.children().each2(function(e,t){o(t,n.children)}),0<n.children.length)&&t.push(n)},t=a.children();(t=this.getPlaceholder()!==b&&0<t.length&&(e=this.getPlaceholderOption())?t.not(e):t).each2(function(e,t){o(t,n.results)}),i.callback(n)}),g.id=function(e){return e.id}):"query"in g||("ajax"in g?((n=g.element.data("ajax-url"))&&0<n.length&&(g.ajax.url=n),g.query=T.call(g.element,g.ajax)):"data"in g?g.query=k(g.data):"tags"in g&&(g.query=D(g.tags),g.createSearchChoice===b&&(g.createSearchChoice=function(e){return{id:v.trim(e),text:v.trim(e)}}),g.initSelection===b)&&(g.initSelection=function(e,t){var n=[];v(p(e.val(),g.separator,g.transformVal)).each(function(){var e={id:this,text:this},t=g.tags;v.isFunction(t)&&(t=t()),v(t).each(function(){if(d(this.id,e.id))return e=this,!1}),n.push(e)}),t(n)})),"function"!=typeof g.query)throw"query function not defined for Select2 "+g.element.attr("id");if("top"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof g.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return g},monitorSource:function(){var e,t=this.opts.element,n=this;t.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=t.prop("disabled"),e=(this.enable(!(e=e===b?!1:e)),t.prop("readonly"));this.readonly(e=e===b?!1:e),this.container&&(w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(A(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(this.opts.dropdownCssClass,this.opts.element)))}),t.length&&t[0].attachEvent&&t.each(function(){this.attachEvent("onpropertychange",n._sync)}),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==b&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e(function(e){v.each(e,n._sync)}),this.propertyObserver.observe(t.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){e=v.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(e){e=v.extend({},e=e||{},{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){this._enabled!==(e=e===b||e)&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){this._readonly!==(e=e!==b&&e)&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,t,n=this.dropdown,i=this.container,s=i.offset(),o=i.outerHeight(!1),a=i.outerWidth(!1),r=n.outerHeight(!1),l=v(window),c=l.width(),h=l.height(),u=l.scrollLeft()+c,h=l.scrollTop()+h,d=s.top+o,p=s.left,h=d+r<=h,f=s.top-r>=l.scrollTop(),g=n.outerWidth(!1);n.hasClass("select2-drop-above")?(e=!0,!f&&h&&(e=!(t=!0))):(e=!1,!h&&f&&(e=t=!0)),t&&(n.hide(),s=this.container.offset(),o=this.container.outerHeight(!1),a=this.container.outerWidth(!1),r=n.outerHeight(!1),u=l.scrollLeft()+c,l.scrollTop(),d=s.top+o,p=s.left,g=n.outerWidth(!1),n.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(h=v(".select2-results",n)[0],n.addClass("select2-drop-auto-width"),n.css("width",""),a<(g=n.outerWidth(!1)+(h.scrollHeight===h.clientHeight?0:m.width))?a=g:g=a,r=n.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(d-=(f=this.body.offset()).top,p-=f.left),t={left:p=!(p+g<=u)&&s.left+u+i.outerWidth(!1)>g?s.left+this.container.outerWidth(!1)-g:p,width:a},e?(this.container.addClass("select2-drop-above"),n.addClass("select2-drop-above"),r=n.outerHeight(!1),t.top=s.top-r,t.bottom="auto"):(t.top=d,t.bottom="auto",this.container.removeClass("select2-drop-above"),n.removeClass("select2-drop-above")),t=v.extend(t,A(this.opts.dropdownCss,this.opts.element)),n.css(t)},shouldOpen:function(){var e;return!this.opened()&&!1!==this._enabled&&!0!==this._readonly&&(e=v.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),a.on("mousemove.select2Event",function(e){r.x=e.pageX,r.y=e.pageY}),!0)},opening:function(){var n,e=this.containerEventName,t="scroll."+e,i="resize."+e,s="orientationchange."+e,o=(this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(n=v("#select2-drop-mask")).length&&((n=v(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),n.hide(),n.appendTo(this.body),n.on("mousedown touchstart click",function(e){l(n);var t=v("#select2-drop");0<t.length&&((t=t.data("select2")).opts.selectOnBlur&&t.selectHighlighted({noFocus:!0}),t.close(),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==n[0]&&this.dropdown.before(n),v("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),n.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active"),this);this.container.parents().add(window).each(function(){v(this).on(i+" "+t+" "+s,function(e){o.opened()&&o.positionDropdown()})})},close:function(){var e,t,n,i;this.opened()&&(e=this.containerEventName,t="scroll."+e,n="resize."+e,i="orientationchange."+e,this.container.parents().add(window).each(function(){v(this).off(t).off(n).off(i)}),this.clearDropdownAlignmentPreference(),v("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),a.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(v.Event("select2-close")))},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){var e;return""===this.search.val()&&(e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm))!==b&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return A(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,t,n,i,s=this.results,o=this.highlight();o<0||(0==o?s.scrollTop(0):(n=this.findHighlightableChoices().find(".select2-result-label"),t=(i=((e=v(n[o])).offset()||{}).top||0)+e.outerHeight(!0),o===n.length-1&&0<(o=s.find("li.select2-more-results")).length&&(t=o.offset().top+o.outerHeight(!0)),(n=s.offset().top+s.outerHeight(!1))<t&&s.scrollTop(s.scrollTop()+(t-n)),(o=i-s.offset().top)<0&&"none"!=e.css("display")&&s.scrollTop(s.scrollTop()+o)))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var t=this.findHighlightableChoices(),n=this.highlight();-1<n&&n<t.length;){var i=v(t[n+=e]);if(i.hasClass("select2-result-selectable")&&!i.hasClass("select2-disabled")&&!i.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var t=this.findHighlightableChoices();if(0===arguments.length)return u(t.filter(".select2-highlighted")[0],t.get());(e=e>=t.length?t.length-1:e)<0&&(e=0),this.removeHighlight(),(t=v(t[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",t.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(t.text()),(e=t.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(e),choice:e})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var t,e=v(e.target).closest(".select2-result-selectable");0<e.length&&!e.is(".select2-highlighted")?(t=this.findHighlightableChoices(),this.highlight(t.index(e))):0==e.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,n=t.find("li.select2-more-results"),i=this.resultsPage+1,s=this,o=this.search.val(),a=this.context;0!==n.length&&n.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(n.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(e){s.opened()&&(s.opts.populateResults.call(this,t,e.results,{term:o,page:i,context:a}),s.postprocessResults(e,!1,!1),!0===e.more?(n.detach().appendTo(t).html(s.opts.escapeMarkup(A(s.opts.formatLoadMore,s.opts.element,i+1))),window.setTimeout(function(){s.loadMoreIfNeeded()},10)):n.remove(),s.positionDropdown(),s.resultsPage=i,s.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})}))},tokenize:function(){},updateResults:function(n){var i,s=this.search,o=this.results,a=this.opts,r=this,e=s.val(),t=v.data(this.container,"select2-last-term");function l(){s.removeClass("select2-active"),r.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?r.liveRegion.text(o.text()):r.liveRegion.text(r.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function c(e){o.html(e),l()}!0!==n&&t&&d(e,t)||(v.data(this.container,"select2-last-term",e),(!0===n||!1!==this.showSearchInput&&this.opened())&&(i=++this.queryCount,1<=(t=this.getMaximumSelectionSize())&&(e=this.data(),v.isArray(e))&&e.length>=t&&I(a.formatSelectionTooBig,"formatSelectionTooBig")?c("<li class='select2-selection-limit'>"+A(a.formatSelectionTooBig,a.element,t)+"</li>"):s.val().length<a.minimumInputLength?(I(a.formatInputTooShort,"formatInputTooShort")?c("<li class='select2-no-results'>"+A(a.formatInputTooShort,a.element,s.val(),a.minimumInputLength)+"</li>"):c(""),n&&this.showSearch&&this.showSearch(!0)):a.maximumInputLength&&s.val().length>a.maximumInputLength?I(a.formatInputTooLong,"formatInputTooLong")?c("<li class='select2-no-results'>"+A(a.formatInputTooLong,a.element,s.val(),a.maximumInputLength)+"</li>"):c(""):(a.formatSearching&&0===this.findHighlightableChoices().length&&c("<li class='select2-searching'>"+A(a.formatSearching,a.element)+"</li>"),s.addClass("select2-active"),this.removeHighlight(),(e=this.tokenize())!=b&&null!=e&&s.val(e),this.resultsPage=1,a.query({element:a.element,term:s.val(),page:this.resultsPage,context:null,matcher:a.matcher,callback:this.bind(function(e){var t;i==this.queryCount&&(this.opened()?e.hasError!==b&&I(a.formatAjaxError,"formatAjaxError")?c("<li class='select2-ajax-error'>"+A(a.formatAjaxError,a.element,e.jqXHR,e.textStatus,e.errorThrown)+"</li>"):(this.context=e.context===b?null:e.context,this.opts.createSearchChoice&&""!==s.val()&&(t=this.opts.createSearchChoice.call(r,s.val(),e.results))!==b&&null!==t&&r.id(t)!==b&&null!==r.id(t)&&0===v(e.results).filter(function(){return d(r.id(this),r.id(t))}).length&&this.opts.createSearchChoicePosition(e.results,t),0===e.results.length&&I(a.formatNoMatches,"formatNoMatches")?(c("<li class='select2-no-results'>"+A(a.formatNoMatches,a.element,s.val())+"</li>"),this.showSearch&&this.showSearch(s.val())):(o.empty(),r.opts.populateResults.call(this,o,e.results,{term:s.val(),page:this.resultsPage,context:null}),!0===e.more&&I(a.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+a.escapeMarkup(A(a.formatLoadMore,a.element,this.resultsPage))+"</li>"),window.setTimeout(function(){r.loadMoreIfNeeded()},10)),this.postprocessResults(e,n),l(),this.opts.element.trigger({type:"select2-loaded",items:e}))):this.search.removeClass("select2-active"))})}))))},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var n;(n=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e=n[0],t=n.val().length;n.focus(),(0<e.offsetWidth||0<e.offsetHeight)&&e===document.activeElement&&(e.setSelectionRange?e.setSelectionRange(t,t):e.createTextRange&&((t=e.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){var t,n;this._touchMoved?this.clearTouchMoved():(t=this.highlight(),(n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data"))?(this.highlight(t),this.onSelect(n,e)):e&&e.noFocus&&this.close())},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==b?e.text():b)},getPlaceholderOption:function(){var e;if(this.select)return e=this.select.children("option").first(),this.opts.placeholderOption!==b?"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select):""===v.trim(e.text())&&""===e.val()?e:void 0},initContainerWidth:function(){var e=function(){var e,t,n,i,s;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return v.isFunction(this.opts.width)?this.opts.width():this.opts.width;if("string"==typeof(e=this.opts.element.attr("style")))for(i=0,s=(t=e.split(";")).length;i<s;i+=1)if(null!==(n=t[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=n.length)return n[1];return"resolve"===this.opts.width?0<(e=this.opts.element.css("width")).indexOf("%")?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==e&&this.container.css("width",e)}}),t=P(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,t;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(e=this.search.get(0)).createTextRange?((t=e.createTextRange()).collapse(!1),t.select()):e.setSelectionRange&&(t=this.search.val().length,e.setSelectionRange(t,t))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this))&&this.focusser.focus()},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){v("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"selection","focusser")},initContainer:function(){var t,e=this.container,n=this.dropdown,i=y(),i=(this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+i),this.focusser.attr("aria-labelledby","select2-chosen-"+i),this.results.attr("id","select2-results-"+i),this.search.attr("aria-owns","select2-results-"+i),this.focusser.attr("id","s2id_autogen"+i),e=v("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(e.text()).attr("for",this.focusser.attr("id")),this.opts.element.attr("title"));this.opts.element.attr("title",i||e.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(v("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which===c.PAGE_UP||e.which===c.PAGE_DOWN)_(e);else switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void _(e);case c.ENTER:return this.selectHighlighted(),void _(e);case c.TAB:return void this.selectHighlighted({noFocus:!0});case c.ESC:return this.cancel(e),void _(e)}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&1<this.results.length&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.ESC){if(!1!==this.opts.openOnEnter||e.which!==c.ENTER)return e.which==c.DOWN||e.which==c.UP||e.which==c.ENTER&&this.opts.openOnEnter?e.altKey||e.ctrlKey||e.shiftKey||e.metaKey?void 0:(this.open(),void _(e)):void(e.which!=c.DELETE&&e.which!=c.BACKSPACE||(this.opts.allowClear&&this.clear(),_(e)));_(e)}})),g(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){0<=this.opts.minimumResultsForSearch&&(e.stopPropagation(),this.opened()||this.open())})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),(e=e).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection)&&this.selection.focus()})),t.on("mousedown touchstart",this.bind(function(e){l(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(e)})),n.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){_(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(v.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(e){var t,n=this.selection.data("select2-data");n&&(t=v.Event("select2-clearing"),this.opts.element.trigger(t),t.isDefaultPrevented()||(t=this.getPlaceholderOption(),this.opts.element.val(t?t.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}))))},initSelection:function(){var t;this.isPlaceholderOptionSelected()?(this.updateSelection(null),this.close(),this.setPlaceholder()):(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.setPlaceholder(),t.lastSearchTerm=t.search.val())})},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==b&&((e=this.getPlaceholderOption())!==b&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val())},prepareOpts:function(){var a=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===a.element.get(0).tagName.toLowerCase()?a.initSelection=function(e,t){e=e.find("option").filter(function(){return this.selected&&!this.disabled});t(n.optionToData(e))}:"data"in a&&(a.initSelection=a.initSelection||function(e,t){var s=e.val(),o=null;a.query({matcher:function(e,t,n){var i=d(s,a.id(n));return i&&(o=n),i},callback:v.isFunction(t)?function(){t(o)}:v.noop})}),a},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();!this.isPlaceholderOptionSelected()||e===b||this.select&&this.getPlaceholderOption()===b||(this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear"))},postprocessResults:function(e,t,n){var i=0,s=this;this.findHighlightableChoices().each2(function(e,t){if(d(s.id(t.data("select2-data")),s.opts.element.val()))return i=e,!1}),!1!==n&&(!0===t&&0<=i?this.highlight(i):this.highlight(0)),!0===t&&0<=(n=this.opts.minimumResultsForSearch)&&this.showSearch(function n(e){var i=0;return v.each(e,function(e,t){t.children?i+=n(t.children):i++}),i}(e.results)>=n)},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),v(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(e,t){var n,i;this.triggerSelect(e)&&(n=this.opts.element.val(),i=this.data(),this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),d(n,this.id(e))||this.triggerChange({added:e,removed:i}))},updateSelection:function(e){var t,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),n.empty(),(t=null!==e?this.opts.formatSelection(e,n,this.opts.escapeMarkup):t)!==b&&n.append(t),(t=this.opts.formatSelectionCssClass(e,n))!==b&&n.addClass(t),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,n=null,i=this,s=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],1<arguments.length&&(t=arguments[1],this.opts.debug)&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.'),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=i.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),t&&this.triggerChange({added:n,removed:s});else if(e||0===e){if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){i.opts.element.val(e?i.id(e):""),i.updateSelection(e),i.setPlaceholder(),t&&i.triggerChange({added:e,removed:s})})}else this.clear(t)},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,n=!1;if(0===arguments.length)return t=(t=this.selection.data("select2-data"))==b?null:t;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),1<arguments.length&&(n=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:t})):this.clear(n)}}),n=P(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var l=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===l.element.get(0).tagName.toLowerCase()?l.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in l&&(l.initSelection=l.initSelection||function(e,o){var a=p(e.val(),l.separator,l.transformVal),r=[];l.query({matcher:function(e,t,n){var i=v.grep(a,function(e){return d(e,l.id(n))}).length;return i&&r.push(n),i},callback:v.isFunction(o)?function(){for(var e=[],t=0;t<a.length;t++)for(var n=a[t],i=0;i<r.length;i++){var s=r[i];if(d(n,l.id(s))){e.push(s),r.splice(i,1);break}}o(e)}:v.noop})}),l},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){v("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"searchContainer","selection")},initContainer:function(){var l,e=".select2-choices",t=(this.searchContainer=this.container.find(".select2-search-field"),this.selection=l=this.container.find(e),this);this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(e){t.search[0].focus(),t.selectChoice(v(this))}),this.search.attr("id","s2id_autogen"+y()),this.search.prev().text(v("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||!this.isInterfaceEnabled()||this.opened()||this.open()})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var t,n,i,s=l.find(".select2-search-choice-focus"),o=s.prev(".select2-search-choice:not(.select2-locked)"),a=s.next(".select2-search-choice:not(.select2-locked)"),r=(r=this.search,n=t=0,"selectionStart"in(r=v(r)[0])?(t=r.selectionStart,n=r.selectionEnd-t):"selection"in document&&(r.focus(),i=document.selection.createRange(),n=document.selection.createRange().text.length,i.moveStart("character",-r.value.length),t=i.text.length-n),{offset:t,length:n});if(!s.length||e.which!=c.LEFT&&e.which!=c.RIGHT&&e.which!=c.BACKSPACE&&e.which!=c.DELETE&&e.which!=c.ENTER)if((e.which!==c.BACKSPACE||1!=this.keydowns)&&e.which!=c.LEFT||0!=r.offset||r.length){if(this.selectChoice(null),this.opened())switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void _(e);case c.ENTER:return this.selectHighlighted(),void _(e);case c.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case c.ESC:return this.cancel(e),void _(e)}if(e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.BACKSPACE&&e.which!==c.ESC){if(e.which===c.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==c.PAGE_UP&&e.which!==c.PAGE_DOWN||_(e),e.which===c.ENTER&&_(e)}}else this.selectChoice(l.find(".select2-search-choice:not(.select2-locked)").last()),_(e);else i=s,e.which==c.LEFT&&o.length?i=o:e.which==c.RIGHT?i=a.length?a:null:e.which===c.BACKSPACE?this.unselect(s.first())&&(this.search.width(10),i=o.length?o:a):e.which==c.DELETE?this.unselect(s.first())&&(this.search.width(10),i=a.length?a:null):e.which==c.ENTER&&(i=null),this.selectChoice(i),_(e),i&&i.length||this.open()}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(v.Event("select2-blur"))})),this.container.on("click",e,this.bind(function(e){!this.isInterfaceEnabled()||0<v(e.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault())})),this.container.on("focus",e,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){var t;""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),!this.select&&""===this.opts.element.val()||(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.clearSearch())})},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();e!==b&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(0<t?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var t={},n=[],i=this;v(e).each(function(){i.id(this)in t||(t[i.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),i.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=b&&(this.search.val(e),0<e.length)&&this.open()},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),!this.opts.closeOnSelect&&0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var t=this.getVal(),n=this;v(e).each(function(){t.push(n.createChoice(this))}),this.setVal(t)},createChoice:function(e){var t=!e.locked,n=v("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),i=v("<li class='select2-search-choice select2-locked'><div></div></li>"),n=t?n:i,i=this.id(e),s=this.opts.formatSelection(e,n.find("div"),this.opts.escapeMarkup);return s!=b&&n.find("div").replaceWith(v("<div></div>").html(s)),(s=this.opts.formatSelectionCssClass(e,n.find("div")))!=b&&n.addClass(s),t&&n.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(this.unselect(v(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),_(e),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),n.data("select2-data",e),n.insertBefore(this.searchContainer),i},unselect:function(e){var t,n,i=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(t=e.data("select2-data")){var s=v.Event("select2-removing");if(s.val=this.id(t),s.choice=t,this.opts.element.trigger(s),s.isDefaultPrevented())return!1;for(;0<=(n=u(this.id(t),i));)i.splice(n,1),this.setVal(i),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}),!0}},postprocessResults:function(e,t,n){var i=this.getVal(),s=this.results.find(".select2-result"),o=this.results.find(".select2-result-with-children"),a=this;s.each2(function(e,t){0<=u(a.id(t.data("select2-data")),i)&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),o.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==n&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&0<!s.filter(".select2-result:not(.select2-selected)").length&&(e&&(e.more||0!==this.results.find(".select2-no-results").length)||I(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+A(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>"))},getMaxSearchWidth:function(){return this.selection.width()-f(this.search)},resizeSearch:function(){var e,t,n,i=f(this.search);t=this.search,s||(n=t[0].currentStyle||window.getComputedStyle(t[0],null),(s=v(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:n.fontSize,fontFamily:n.fontFamily,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,textTransform:n.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),v(document.body).append(s)),s.text(t.val()),n=s.width()+10,t=this.search.offset().left,(t=(t=(t=(e=this.selection.width())-(t-this.selection.offset().left)-i)<n?e-i:t)<40?e-i:t)<=0&&(t=n),this.search.width(Math.floor(t))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:p(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(e){var t,n;this.select?this.select.val(e):(t=[],n={},v(e).each(function(){this in n||(t.push(this),n[this]=0)}),this.opts.element.val(0===t.length?"":t.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),n=0;n<t.length;n++)for(var i=0;i<e.length;i++)if(d(this.opts.id(t[n]),this.opts.id(e[i]))){t.splice(n,1),n--,e.splice(i,1);break}return{added:t,removed:e}},val:function(e,n){var i,s=this;if(0===arguments.length)return this.getVal();if((i=this.data()).length||(i=[]),e||0===e){if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(i,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var t=v.map(e,s.id);s.setVal(t),s.updateSelection(e),s.clearSearch(),n&&s.triggerChange(s.buildChangeDetails(i,s.data()))})}this.clearSearch()}else this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),n&&this.triggerChange({added:this.data(),removed:i})},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],t=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(t.opts.id(v(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,t){var n,i,s=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return v(this).data("select2-data")}).get();i=this.data(),n=v.map(e=e||[],function(e){return s.opts.id(e)}),this.setVal(n),this.updateSelection(e),this.clearSearch(),t&&this.triggerChange(this.buildChangeDetails(i,this.data()))}}),v.fn.select2=function(){var e,t,n,i,s=Array.prototype.slice.call(arguments,0),o=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],a=["opened","isFocused","container","dropdown"],r=["val","data"],l={search:"externalSearch"};return this.each(function(){if(0===s.length||"object"==typeof s[0])(t=0===s.length?{}:v.extend({},s[0])).element=v(this),"select"===t.element.get(0).tagName.toLowerCase()?i=t.element.prop("multiple"):(i=t.multiple||!1,"tags"in t&&(t.multiple=i=!0)),(e=new(i?window.Select2.class.multi:window.Select2.class.single)).init(t);else{if("string"!=typeof s[0])throw"Invalid arguments to select2 plugin: "+s;if(u(s[0],o)<0)throw"Unknown method: "+s[0];if(n=b,(e=v(this).data("select2"))!==b)return t=s[0],n="container"===t?e.container:"dropdown"===t?e.dropdown:e[t=l[t]?l[t]:t].apply(e,s.slice(1)),!(0<=u(s[0],a)||0<=u(s[0],r)&&1==s.length)&&void 0}}),n===b?this:n},v.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,n,i){var s=[];return C(this.text(e),n.term,s,i),s.join("")},transformVal:function(e){return v.trim(e)},formatSelection:function(e,t,n){return e?n(this.text(e)):b},sortResults:function(e,t,n){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,t){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==b?null:e.id},text:function(e){return e&&this.data&&this.data.text?v.isFunction(this.data.text)?this.data.text(e):e[this.data.text]:e.text},matcher:function(e,t){return 0<=h(""+t).toUpperCase().indexOf(h(""+e).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(e,t,n,i){var s,o,a,r,l,c=e,h=!1;if(!i.createSearchChoice||!i.tokenSeparators||i.tokenSeparators.length<1)return b;for(;;){for(o=-1,a=0,r=i.tokenSeparators.length;a<r&&(l=i.tokenSeparators[a],!(0<=(o=e.indexOf(l))));a++);if(o<0)break;if(s=e.substring(0,o),e=e.substring(o+l.length),0<s.length&&(s=i.createSearchChoice.call(this,s,t))!==b&&null!==s&&i.id(s)!==b&&null!==i.id(s)){for(h=!1,a=0,r=t.length;a<r;a++)if(d(i.id(s),i.id(t[a]))){h=!0;break}h||n(s)}}return c!==e?e:void 0},escapeMarkup:x,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!(("ontouchstart"in window||0<navigator.msMaxTouchPoints)&&e.opts.minimumResultsForSearch<0)}},v.fn.select2.locales=[],v.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,n){return"Loading failed"},formatInputTooShort:function(e,t){t-=e.length;return"Please enter "+t+" or more character"+(1==t?"":"s")},formatInputTooLong:function(e,t){e=e.length-t;return"Please delete "+e+" character"+(1==e?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},v.extend(v.fn.select2.defaults,v.fn.select2.locales.en),v.fn.select2.ajaxDefaults={transport:v.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:T,local:k,tags:D},util:{debounce:S,markMatch:C,escapeMarkup:x,stripDiacritics:h},class:{abstract:e,single:t,multi:n}})}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(c){var i,a=window.Slick||{};i=0,(a=function(e,t){var n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(e),appendDots:c(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return c('<button type="button" data-role="none" role="button" tabindex="0" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=c(e),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,e=c(e).data("slick")||{},n.options=c.extend({},n.defaults,t,e),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=c.proxy(n.autoPlay,n),n.autoPlayClear=c.proxy(n.autoPlayClear,n),n.autoPlayIterator=c.proxy(n.autoPlayIterator,n),n.changeSlide=c.proxy(n.changeSlide,n),n.clickHandler=c.proxy(n.clickHandler,n),n.selectHandler=c.proxy(n.selectHandler,n),n.setPosition=c.proxy(n.setPosition,n),n.swipeHandler=c.proxy(n.swipeHandler,n),n.dragHandler=c.proxy(n.dragHandler,n),n.keyHandler=c.proxy(n.keyHandler,n),n.instanceUid=i++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},a.prototype.addSlide=a.prototype.slickAdd=function(e,t,n){var i=this;if("boolean"==typeof t)n=t,t=null;else if(t<0||t>=i.slideCount)return!1;i.unload(),"number"==typeof t?0===t&&0===i.$slides.length?c(e).appendTo(i.$slideTrack):n?c(e).insertBefore(i.$slides.eq(t)):c(e).insertAfter(i.$slides.eq(t)):!0===n?c(e).prependTo(i.$slideTrack):c(e).appendTo(i.$slideTrack),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slides.each(function(e,t){c(t).attr("data-slick-index",e)}),i.$slidesCache=i.$slides,i.reinit()},a.prototype.animateHeight=function(){var e,t=this;1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical&&(e=t.$slides.eq(t.currentSlide).outerHeight(!0),t.$list.animate({height:e},t.options.speed))},a.prototype.animateSlide=function(e,t){var n={},i=this;i.animateHeight(),!0===i.options.rtl&&!1===i.options.vertical&&(e=-e),!1===i.transformsEnabled?!1===i.options.vertical?i.$slideTrack.animate({left:e},i.options.speed,i.options.easing,t):i.$slideTrack.animate({top:e},i.options.speed,i.options.easing,t):!1===i.cssTransitions?(!0===i.options.rtl&&(i.currentLeft=-i.currentLeft),c({animStart:i.currentLeft}).animate({animStart:e},{duration:i.options.speed,easing:i.options.easing,step:function(e){e=Math.ceil(e),!1===i.options.vertical?n[i.animType]="translate("+e+"px, 0px)":n[i.animType]="translate(0px,"+e+"px)",i.$slideTrack.css(n)},complete:function(){t&&t.call()}})):(i.applyTransition(),e=Math.ceil(e),!1===i.options.vertical?n[i.animType]="translate3d("+e+"px, 0px, 0px)":n[i.animType]="translate3d(0px,"+e+"px, 0px)",i.$slideTrack.css(n),t&&setTimeout(function(){i.disableTransition(),t.call()},i.options.speed))},a.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e=e&&null!==e?c(e).not(this.$slider):e},a.prototype.asNavFor=function(t){var e=this.getNavTarget();null!==e&&"object"==typeof e&&e.each(function(){var e=c(this).slick("getSlick");e.unslicked||e.slideHandler(t,!0)})},a.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,(!1===t.options.fade?t.$slideTrack:t.$slides.eq(e)).css(n)},a.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},a.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},a.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0)&&(e.direction=1)),e.slideHandler(t))},a.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=c(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=c(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},a.prototype.buildDots=function(){var e,t,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),t=c("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)t.append(c("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=t.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},a.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){c(t).attr("data-slick-index",e).data("originalStyling",c(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?c('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),c("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},a.prototype.buildRows=function(){var e,t,n,i=this,s=document.createDocumentFragment(),o=i.$slider.children();if(1<i.options.rows){for(n=i.options.slidesPerRow*i.options.rows,t=Math.ceil(o.length/n),e=0;e<t;e++){for(var a=document.createElement("div"),r=0;r<i.options.rows;r++){for(var l=document.createElement("div"),c=0;c<i.options.slidesPerRow;c++){var h=e*n+(r*i.options.slidesPerRow+c);o.get(h)&&l.appendChild(o.get(h))}a.appendChild(l)}s.appendChild(a)}i.$slider.empty().append(s),i.$slider.children().children().children().css({width:100/i.options.slidesPerRow+"%",display:"inline-block"})}},a.prototype.checkResponsive=function(e,t){var n,i,s,o=this,a=!1,r=o.$slider.width(),l=window.innerWidth||c(window).width();if("window"===o.respondTo?s=l:"slider"===o.respondTo?s=r:"min"===o.respondTo&&(s=Math.min(l,r)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(n in i=null,o.breakpoints)o.breakpoints.hasOwnProperty(n)&&(!1===o.originalSettings.mobileFirst?s<o.breakpoints[n]&&(i=o.breakpoints[n]):s>o.breakpoints[n]&&(i=o.breakpoints[n]));null!==i?null!==o.activeBreakpoint&&i===o.activeBreakpoint&&!t||(o.activeBreakpoint=i,"unslick"===o.breakpointSettings[i]?o.unslick(i):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[i]),!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e)),a=i):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===e&&(o.currentSlide=o.options.initialSlide),o.refresh(e),a=i),e||!1===a||o.$slider.trigger("breakpoint",[o,a])}},a.prototype.changeSlide=function(e,t){var n,i=this,s=c(e.currentTarget);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),n=i.slideCount%i.options.slidesToScroll!=0?0:(i.slideCount-i.currentSlide)%i.options.slidesToScroll,e.data.message){case"previous":o=0==n?i.options.slidesToScroll:i.options.slidesToShow-n,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide-o,!1,t);break;case"next":o=0==n?i.options.slidesToScroll:n,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide+o,!1,t);break;case"index":var o=0===e.data.index?0:e.data.index||s.index()*i.options.slidesToScroll;i.slideHandler(i.checkNavigable(o),!1,t),s.children().trigger("focus");break;default:return}},a.prototype.checkNavigable=function(e){var t=this.getNavigableIndexes(),n=0;if(e>t[t.length-1])e=t[t.length-1];else for(var i in t){if(e<t[i]){e=n;break}n=t[i]}return e},a.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&c("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",c.proxy(e.interrupt,e,!0)).off("mouseleave.slick",c.proxy(e.interrupt,e,!1)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow)&&e.$nextArrow.off("click.slick",e.changeSlide),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),c(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().off("click.slick",e.selectHandler),c(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),c(window).off("resize.slick.slick-"+e.instanceUid,e.resize),c("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),c(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),c(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},a.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",c.proxy(e.interrupt,e,!1))},a.prototype.cleanUpRows=function(){var e;1<this.options.rows&&((e=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(e))},a.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},a.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),c(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow))&&t.$prevArrow.remove(),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow))&&t.$nextArrow.remove(),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},a.prototype.disableTransition=function(e){var t={};t[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(e)).css(t)},a.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},a.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},a.prototype.filterSlides=a.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},a.prototype.focusHandler=function(){var n=this;n.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(e){e.stopImmediatePropagation();var t=c(this);setTimeout(function(){n.options.pauseOnFocus&&(n.focussed=t.is(":focus"),n.autoPlay())},0)})},a.prototype.getCurrent=a.prototype.slickCurrentSlide=function(){return this.currentSlide},a.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(!0===e.options.infinite)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},a.prototype.getLeft=function(e){var t,n=this,i=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,i=t*n.options.slidesToShow*-1),n.slideCount%n.options.slidesToScroll!=0&&e+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i=e>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(e-n.slideCount))*n.slideWidth*-1,(n.options.slidesToShow-(e-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,n.slideCount%n.options.slidesToScroll*t*-1))):e+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(e+n.options.slidesToShow-n.slideCount)*n.slideWidth,i=(e+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(i=n.slideOffset=0),!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),t=!1===n.options.vertical?e*n.slideWidth*-1+n.slideOffset:e*t*-1+i,!0===n.options.variableWidth&&(i=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow),t=!0===n.options.rtl?i[0]?-1*(n.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===n.options.centerMode)&&(i=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow+1),t=!0===n.options.rtl?i[0]?-1*(n.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(n.$list.width()-i.outerWidth())/2),t},a.prototype.getOption=a.prototype.slickGetOption=function(e){return this.options[e]},a.prototype.getNavigableIndexes=function(){for(var e=this,t=0,n=0,i=[],s=!1===e.options.infinite?e.slideCount:(t=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,2*e.slideCount);t<s;)i.push(t),t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return i},a.prototype.getSlick=function(){return this},a.prototype.getSlideCount=function(){var n,i=this,s=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0;return!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each(function(e,t){if(t.offsetLeft-s+c(t).outerWidth()/2>-1*i.swipeLeft)return n=t,!1}),Math.abs(c(n).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},a.prototype.goTo=a.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},a.prototype.init=function(e){var t=this;c(t.$slider).hasClass("slick-initialized")||(c(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},a.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$slideTrack.attr("role","listbox"),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(e){c(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+e})}),null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(e){c(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+e,id:"slick-slide"+t.instanceUid+e})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},a.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide))},a.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&c("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&c("li",e.$dots).on("mouseenter.slick",c.proxy(e.interrupt,e,!0)).on("mouseleave.slick",c.proxy(e.interrupt,e,!1))},a.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",c.proxy(e.interrupt,e,!1)))},a.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),c(document).on(e.visibilityChange,c.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),c(window).on("orientationchange.slick.slick-"+e.instanceUid,c.proxy(e.orientationChange,e)),c(window).on("resize.slick.slick-"+e.instanceUid,c.proxy(e.resize,e)),c("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),c(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),c(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},a.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},a.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},a.prototype.lazyLoad=function(){var e,t,i=this;function n(e){c("img[data-lazy]",e).each(function(){var e=c(this),t=c(this).attr("data-lazy"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")}),i.$slider.trigger("lazyLoaded",[i,e,t])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,e,t])},n.src=t})}!0===i.options.centerMode?t=!0===i.options.infinite?(e=i.currentSlide+(i.options.slidesToShow/2+1))+i.options.slidesToShow+2:(e=Math.max(0,i.currentSlide-(i.options.slidesToShow/2+1)),i.options.slidesToShow/2+1+2+i.currentSlide):(e=i.options.infinite?i.options.slidesToShow+i.currentSlide:i.currentSlide,t=Math.ceil(e+i.options.slidesToShow),!0===i.options.fade&&(0<e&&e--,t<=i.slideCount)&&t++),n(i.$slider.find(".slick-slide").slice(e,t)),i.slideCount<=i.options.slidesToShow?n(i.$slider.find(".slick-slide")):i.currentSlide>=i.slideCount-i.options.slidesToShow?n(i.$slider.find(".slick-cloned").slice(0,i.options.slidesToShow)):0===i.currentSlide&&n(i.$slider.find(".slick-cloned").slice(-1*i.options.slidesToShow))},a.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},a.prototype.next=a.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},a.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},a.prototype.pause=a.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},a.prototype.play=a.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},a.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&t.initADA())},a.prototype.prev=a.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},a.prototype.preventDefault=function(e){e.preventDefault()},a.prototype.progressiveLazyLoad=function(e){e=e||1;var t,n,i=this,s=c("img[data-lazy]",i.$slider);s.length?(t=s.first(),n=t.attr("data-lazy"),(s=document.createElement("img")).onload=function(){t.attr("src",n).removeAttr("data-lazy").removeClass("slick-loading"),!0===i.options.adaptiveHeight&&i.setPosition(),i.$slider.trigger("lazyLoaded",[i,t,n]),i.progressiveLazyLoad()},s.onerror=function(){e<3?setTimeout(function(){i.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,t,n]),i.progressiveLazyLoad())},s.src=n):i.$slider.trigger("allImagesLoaded",[i])},a.prototype.refresh=function(e){var t=this,n=t.slideCount-t.options.slidesToShow;!t.options.infinite&&t.currentSlide>n&&(t.currentSlide=n),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),n=t.currentSlide,t.destroy(!0),c.extend(t,t.initials,{currentSlide:n}),t.init(),e||t.changeSlide({data:{message:"index",index:n}},!1)},a.prototype.registerBreakpoints=function(){var e,t,n,i=this,s=i.options.responsive||null;if("array"===c.type(s)&&s.length){for(e in i.respondTo=i.options.respondTo||"window",s)if(n=i.breakpoints.length-1,t=s[e].breakpoint,s.hasOwnProperty(e)){for(;0<=n;)i.breakpoints[n]&&i.breakpoints[n]===t&&i.breakpoints.splice(n,1),n--;i.breakpoints.push(t),i.breakpointSettings[t]=s[e].settings}i.breakpoints.sort(function(e,t){return i.options.mobileFirst?e-t:t-e})}},a.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},a.prototype.resize=function(){var e=this;c(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=c(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},a.prototype.removeSlide=a.prototype.slickRemove=function(e,t,n){var i=this;if(e="boolean"==typeof e?!0===(t=e)?0:i.slideCount-1:!0===t?--e:e,i.slideCount<1||e<0||e>i.slideCount-1)return!1;i.unload(),(!0===n?i.$slideTrack.children():i.$slideTrack.children(this.options.slide).eq(e)).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},a.prototype.setCSS=function(e){var t,n,i=this,s={};!0===i.options.rtl&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",s[i.positionProp]=e,!1!==i.transformsEnabled&&(!(s={})===i.cssTransitions?s[i.animType]="translate("+t+", "+n+")":s[i.animType]="translate3d("+t+", "+n+", 0px)"),i.$slideTrack.css(s)},a.prototype.setDimensions=function(){var e=this,t=(!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length))),e.$slides.first().outerWidth(!0)-e.$slides.first().width());!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},a.prototype.setFade=function(){var n,i=this;i.$slides.each(function(e,t){n=i.slideWidth*e*-1,!0===i.options.rtl?c(t).css({position:"relative",right:n,top:0,zIndex:i.options.zIndex-2,opacity:0}):c(t).css({position:"relative",left:n,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},a.prototype.setHeight=function(){var e,t=this;1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical&&(e=t.$slides.eq(t.currentSlide).outerHeight(!0),t.$list.css("height",e))},a.prototype.setOption=a.prototype.slickSetOption=function(){var e,t,n,i,s,o=this,a=!1;if("object"===c.type(arguments[0])?(n=arguments[0],a=arguments[1],s="multiple"):"string"===c.type(arguments[0])&&(n=arguments[0],i=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)o.options[n]=i;else if("multiple"===s)c.each(n,function(e,t){o.options[e]=t});else if("responsive"===s)for(t in i)if("array"!==c.type(o.options.responsive))o.options.responsive=[i[t]];else{for(e=o.options.responsive.length-1;0<=e;)o.options.responsive[e].breakpoint===i[t].breakpoint&&o.options.responsive.splice(e,1),e--;o.options.responsive.push(i[t])}a&&(o.unload(),o.reinit())},a.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},a.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty)&&void 0===t.webkitPerspective&&(e.animType=!1),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty)&&void 0===t.MozPerspective&&(e.animType=!1),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty)&&void 0===t.webkitPerspective&&(e.animType=!1),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform)&&(e.animType=!1),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},a.prototype.setSlideClasses=function(e){var t,n,i=this,s=i.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");i.$slides.eq(e).addClass("slick-current"),!0===i.options.centerMode?(n=Math.floor(i.options.slidesToShow/2),!0===i.options.infinite&&((n<=e&&e<=i.slideCount-1-n?i.$slides.slice(e-n,e+n+1):(t=i.options.slidesToShow+e,s.slice(t-n+1,t+n+2))).addClass("slick-active").attr("aria-hidden","false"),0===e?s.eq(s.length-1-i.options.slidesToShow).addClass("slick-center"):e===i.slideCount-1&&s.eq(i.options.slidesToShow).addClass("slick-center")),i.$slides.eq(e).addClass("slick-center")):(0<=e&&e<=i.slideCount-i.options.slidesToShow?i.$slides.slice(e,e+i.options.slidesToShow):s.length<=i.options.slidesToShow?s:(n=i.slideCount%i.options.slidesToShow,t=!0===i.options.infinite?i.options.slidesToShow+e:e,i.options.slidesToShow==i.options.slidesToScroll&&i.slideCount-e<i.options.slidesToShow?s.slice(t-(i.options.slidesToShow-n),t+n):s.slice(t,t+i.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"===i.options.lazyLoad&&i.lazyLoad()},a.prototype.setupInfinite=function(){var e,t,n,i=this;if(!0===i.options.fade&&(i.options.centerMode=!1),!0===i.options.infinite&&!1===i.options.fade&&(t=null,i.slideCount>i.options.slidesToShow)){for(n=!0===i.options.centerMode?i.options.slidesToShow+1:i.options.slidesToShow,e=i.slideCount;e>i.slideCount-n;--e)c(i.$slides[t=e-1]).clone(!0).attr("id","").attr("data-slick-index",t-i.slideCount).prependTo(i.$slideTrack).addClass("slick-cloned");for(e=0;e<n;e+=1)t=e,c(i.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+i.slideCount).appendTo(i.$slideTrack).addClass("slick-cloned");i.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},a.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},a.prototype.selectHandler=function(e){var t=this,e=c(e.target).is(".slick-slide")?c(e.target):c(e.target).parents(".slick-slide"),e=(e=parseInt(e.attr("data-slick-index")))||0;t.slideCount<=t.options.slidesToShow?(t.setSlideClasses(e),t.asNavFor(e)):t.slideHandler(e)},a.prototype.slideHandler=function(e,t,n){var i,s,o,a=this;t=t||!1,!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===e||a.slideCount<=a.options.slidesToShow||(!1===t&&a.asNavFor(e),i=e,t=a.getLeft(i),o=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?o:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(e<0||e>a.getDotCount()*a.options.slidesToScroll)||!1===a.options.infinite&&!0===a.options.centerMode&&(e<0||e>a.slideCount-a.options.slidesToScroll)?!1===a.options.fade&&(i=a.currentSlide,!0!==n?a.animateSlide(o,function(){a.postSlide(i)}):a.postSlide(i)):(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=i<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+i:i>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:i-a.slideCount:i,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),e=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(o=(o=a.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade?(!0!==n?(a.fadeSlideOut(e),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),a.animateHeight()):!0!==n?a.animateSlide(t,function(){a.postSlide(s)}):a.postSlide(s)))},a.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},a.prototype.swipeDirection=function(){var e=this,t=e.touchObject.startX-e.touchObject.curX,n=e.touchObject.startY-e.touchObject.curY,n=Math.atan2(n,t),t=Math.round(180*n/Math.PI);return(t=t<0?360-Math.abs(t):t)<=45&&0<=t||t<=360&&315<=t?!1===e.options.rtl?"left":"right":135<=t&&t<=225?!1===e.options.rtl?"right":"left":!0===e.options.verticalSwiping?35<=t&&t<=135?"down":"up":"vertical"},a.prototype.swipeEnd=function(e){var t,n,i=this;if(i.dragging=!1,i.interrupted=!1,i.shouldClick=!(10<i.touchObject.swipeLength),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(t),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},a.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},a.prototype.swipeMove=function(e){var t,n,i=this,s=void 0!==e.originalEvent?e.originalEvent.touches:null;return!(!i.dragging||s&&1!==s.length)&&(t=i.getLeft(i.currentSlide),i.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,i.touchObject.curY=void 0!==s?s[0].pageY:e.clientY,i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curX-i.touchObject.startX,2))),!0===i.options.verticalSwiping&&(i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curY-i.touchObject.startY,2)))),"vertical"!==(s=i.swipeDirection())?(void 0!==e.originalEvent&&4<i.touchObject.swipeLength&&e.preventDefault(),e=(!1===i.options.rtl?1:-1)*(i.touchObject.curX>i.touchObject.startX?1:-1),!0===i.options.verticalSwiping&&(e=i.touchObject.curY>i.touchObject.startY?1:-1),n=i.touchObject.swipeLength,(i.touchObject.edgeHit=!1)===i.options.infinite&&(0===i.currentSlide&&"right"===s||i.currentSlide>=i.getDotCount()&&"left"===s)&&(n=i.touchObject.swipeLength*i.options.edgeFriction,i.touchObject.edgeHit=!0),!1===i.options.vertical?i.swipeLeft=t+n*e:i.swipeLeft=t+n*(i.$list.height()/i.listWidth)*e,!0===i.options.verticalSwiping&&(i.swipeLeft=t+n*e),!0!==i.options.fade&&!1!==i.options.touchMove&&(!0===i.animating?(i.swipeLeft=null,!1):void i.setCSS(i.swipeLeft))):void 0)},a.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return!(n.touchObject={});void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,n.dragging=!0},a.prototype.unfilterSlides=a.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},a.prototype.unload=function(){var e=this;c(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},a.prototype.unslick=function(e){this.$slider.trigger("unslick",[this,e]),this.destroy()},a.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2);!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},a.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},a.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){for(var e,t=this,n=arguments[0],i=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;o++)if("object"==typeof n||void 0===n?t[o].slick=new a(t[o],n):e=t[o].slick[n].apply(t[o].slick,i),void 0!==e)return e;return t}}),ClusterIcon.prototype.onAdd=function(){var s,o,a=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){o=s}),this.div_.addEventListener("mousedown",function(){o=!(s=!0)}),this.div_.addEventListener("click",function(e){var t,n,i;s=!1,o||(i=a.cluster_.getMarkerClusterer(),google.maps.event.trigger(i,"click",a.cluster_),google.maps.event.trigger(i,"clusterclick",a.cluster_),i.getZoomOnClick()&&(n=i.getMaxZoom(),t=a.cluster_.getBounds(),i.getMap().fitBounds(t),setTimeout(function(){i.getMap().fitBounds(t),null!==n&&i.getMap().getZoom()>n&&i.getMap().setZoom(n+1)},100)),e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}),this.div_.addEventListener("mouseover",function(){var e=a.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseover",a.cluster_)}),this.div_.addEventListener("mouseout",function(){var e=a.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseout",a.cluster_)})},ClusterIcon.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},ClusterIcon.prototype.draw=function(){var e;this.visible_&&(e=this.getPosFromLatLng_(this.center_),this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px")},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){var e,t,n,i;this.div_&&(e="",n=this.backgroundPosition_.split(" "),t=parseInt(n[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(n[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng_(this.center_),this.div_.style.cssText=this.createCss(i),e="<img src='"+this.url_+"' style='position: absolute; top: "+n+"px; left: "+t+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_||(e+="clip: rect("+-1*n+"px, "+(-1*t+this.width_)+"px, "+(-1*n+this.height_)+"px, "+-1*t+"px);"),this.div_.innerHTML=(e+="'>")+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>",void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},ClusterIcon.prototype.useStyle=function(e){this.sums_=e;e=Math.max(0,e.index-1),e=Math.min(this.styles_.length-1,e),e=this.styles_[e];this.url_=e.url,this.height_=e.height,this.width_=e.width,this.anchorText_=e.anchorText||[0,0],this.anchorIcon_=e.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=e.textColor||"black",this.textSize_=e.textSize||11,this.textDecoration_=e.textDecoration||"none",this.fontWeight_=e.fontWeight||"bold",this.fontStyle_=e.fontStyle||"normal",this.fontFamily_=e.fontFamily||"Arial,sans-serif",this.backgroundPosition_=e.backgroundPosition||"0 0"},ClusterIcon.prototype.setCenter=function(e){this.center_=e},ClusterIcon.prototype.createCss=function(e){var t=[];return t.push("cursor: pointer;"),t.push("position: absolute; top: "+e.y+"px; left: "+e.x+"px;"),t.push("width: "+this.width_+"px; height: "+this.height_+"px;"),t.join("")},ClusterIcon.prototype.getPosFromLatLng_=function(e){e=this.getProjection().fromLatLngToDivPixel(e);return e.x-=this.anchorIcon_[1],e.y-=this.anchorIcon_[0],e.x=parseInt(e.x,10),e.y=parseInt(e.y,10),e},Cluster.prototype.getSize=function(){return this.markers_.length},Cluster.prototype.getMarkers=function(){return this.markers_},Cluster.prototype.getCenter=function(){return this.center_},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),t=this.getMarkers(),n=0;n<t.length;n++)e.extend(t[n].getPosition());return e},Cluster.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},Cluster.prototype.addMarker=function(e){var t,n,i,s;if(this.isMarkerAlreadyAdded_(e))return!1;if(this.center_?this.averageCenter_&&(s=this.markers_.length+1,i=(this.center_.lat()*(s-1)+e.getPosition().lat())/s,s=(this.center_.lng()*(s-1)+e.getPosition().lng())/s,this.center_=new google.maps.LatLng(i,s),this.calculateBounds_()):(this.center_=e.getPosition(),this.calculateBounds_()),e.isAdded=!0,this.markers_.push(e),n=this.markers_.length,null!==(i=this.markerClusterer_.getMaxZoom())&&this.map_.getZoom()>i)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n===this.minClusterSize_)for(t=0;t<n;t++)this.markers_[t].setMap(null);else e.setMap(null);return this.updateIcon_(),!0},Cluster.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},Cluster.prototype.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},Cluster.prototype.updateIcon_=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();null!==t&&this.map_.getZoom()>t||e<this.minClusterSize_?this.clusterIcon_.hide():(t=this.markerClusterer_.getStyles().length,e=this.markerClusterer_.getCalculator()(this.markers_,t),this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(e),this.clusterIcon_.show())},Cluster.prototype.isMarkerAlreadyAdded_=function(e){var t;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(e);for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},MarkerClusterer.prototype.onAdd=function(){var e=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){e.resetViewport_(!1),this.getZoom()!==(this.get("minZoom")||0)&&this.getZoom()!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){e.redraw_()})]},MarkerClusterer.prototype.onRemove=function(){for(var e=0;e<this.markers_.length;e++)this.markers_[e].getMap()!==this.activeMap_&&this.markers_[e].setMap(this.activeMap_);for(e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();for(this.clusters_=[],e=0;e<this.listeners_.length;e++)google.maps.event.removeListener(this.listeners_[e]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){var e,t;if(!(0<this.styles_.length))for(e=0;e<this.imageSizes_.length;e++)t=this.imageSizes_[e],this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},MarkerClusterer.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0;n<e.length;n++)t.extend(e[n].getPosition());this.getMap().fitBounds(t)},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(e){this.gridSize_=e},MarkerClusterer.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinimumClusterSize=function(e){this.minClusterSize_=e},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.setMaxZoom=function(e){this.maxZoom_=e},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.setStyles=function(e){this.styles_=e},MarkerClusterer.prototype.getTitle=function(){return this.title_},MarkerClusterer.prototype.setTitle=function(e){this.title_=e},MarkerClusterer.prototype.getZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.setZoomOnClick=function(e){this.zoomOnClick_=e},MarkerClusterer.prototype.getAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.setAverageCenter=function(e){this.averageCenter_=e},MarkerClusterer.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},MarkerClusterer.prototype.setIgnoreHidden=function(e){this.ignoreHidden_=e},MarkerClusterer.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},MarkerClusterer.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons_=e},MarkerClusterer.prototype.getImageExtension=function(){return this.imageExtension_},MarkerClusterer.prototype.setImageExtension=function(e){this.imageExtension_=e},MarkerClusterer.prototype.getImagePath=function(){return this.imagePath_},MarkerClusterer.prototype.setImagePath=function(e){this.imagePath_=e},MarkerClusterer.prototype.getImageSizes=function(){return this.imageSizes_},MarkerClusterer.prototype.setImageSizes=function(e){this.imageSizes_=e},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.setCalculator=function(e){this.calculator_=e},MarkerClusterer.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},MarkerClusterer.prototype.setBatchSizeIE=function(e){this.batchSizeIE_=e},MarkerClusterer.prototype.getClusterClass=function(){return this.clusterClass_},MarkerClusterer.prototype.setClusterClass=function(e){this.clusterClass_=e},MarkerClusterer.prototype.getMarkers=function(){return this.markers_},MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length},MarkerClusterer.prototype.getClusters=function(){return this.clusters_},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw_()},MarkerClusterer.prototype.addMarkers=function(e,t){for(var n in e)e.hasOwnProperty(n)&&this.pushMarkerTo_(e[n]);t||this.redraw_()},MarkerClusterer.prototype.pushMarkerTo_=function(e){var t;e.getDraggable()&&(t=this,google.maps.event.addListener(e,"dragend",function(){t.ready_&&(this.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers_.push(e)},MarkerClusterer.prototype.removeMarker=function(e,t){e=this.removeMarker_(e);return!t&&e&&this.repaint(),e},MarkerClusterer.prototype.removeMarkers=function(e,t){for(var n,i=!1,s=0;s<e.length;s++)n=this.removeMarker_(e[s]),i=i||n;return!t&&i&&this.repaint(),i},MarkerClusterer.prototype.removeMarker_=function(e){var t,n=-1;if(this.markers_.indexOf)n=this.markers_.indexOf(e);else for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t]){n=t;break}return-1!==n&&(e.setMap(null),this.markers_.splice(n,1),!0)},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},MarkerClusterer.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){for(var e=0;e<t.length;e++)t[e].remove()},0)},MarkerClusterer.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),i=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),n=t.fromLatLngToDivPixel(n),i=(n.x+=this.gridSize_,n.y-=this.gridSize_,t.fromLatLngToDivPixel(i)),n=(i.x-=this.gridSize_,i.y+=this.gridSize_,t.fromDivPixelToLatLng(n)),t=t.fromDivPixelToLatLng(i);return e.extend(n),e.extend(t),e},MarkerClusterer.prototype.redraw_=function(){this.createClusters_(0)},MarkerClusterer.prototype.resetViewport_=function(e){for(var t,n=0;n<this.clusters_.length;n++)this.clusters_[n].remove();for(this.clusters_=[],n=0;n<this.markers_.length;n++)(t=this.markers_[n]).isAdded=!1,e&&t.setMap(null)},MarkerClusterer.prototype.distanceBetweenPoints_=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,i=(t.lng()-e.lng())*Math.PI/180,n=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n)))},MarkerClusterer.prototype.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},MarkerClusterer.prototype.addToClosestCluster_=function(e){for(var t,n,i=4e4,s=null,o=0;o<this.clusters_.length;o++)(n=(t=this.clusters_[o]).getCenter())&&(n=this.distanceBetweenPoints_(n,e.getPosition()))<i&&(i=n,s=t);s&&s.isMarkerInClusterBounds(e)?s.addMarker(e):((t=new Cluster(this)).addMarker(e),this.clusters_.push(t))},MarkerClusterer.prototype.createClusters_=function(e){var t,n=this;if(this.ready_){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic)&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic);for(var i=3<this.getMap().getZoom()?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(i),o=Math.min(e+this.batchSize_,this.markers_.length),a=e;a<o;a++)!(t=this.markers_[a]).isAdded&&this.isMarkerInBounds_(t,s)&&(!this.ignoreHidden_||this.ignoreHidden_&&t.getVisible())&&this.addToClosestCluster_(t);o<this.markers_.length?this.timerRefStatic=setTimeout(function(){n.createClusters_(o)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},MarkerClusterer.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}.apply(e,[t])},MarkerClusterer.CALCULATOR=function(e,t){for(var n=0,e=e.length.toString(),i=e;0!==i;)i=parseInt(i/10,10),n++;return{text:e,index:n=Math.min(n,t),title:""}},MarkerClusterer.BATCH_SIZE=2e3,MarkerClusterer.BATCH_SIZE_IE=500,MarkerClusterer.IMAGE_PATH="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m",MarkerClusterer.IMAGE_EXTENSION="png",MarkerClusterer.IMAGE_SIZES=[53,56,66,78,90],function(a){function n(e){opened=a(document).find("."+e.cssOpen),a.each(opened,function(){a(this).addClass(e.cssClose).removeClass(e.cssOpen),e.animateClose(a(this),e)})}function r(e,t){e.hasClass(t.cssOpen)?(n(t),l(t)&&i("",t)):(n(t),e=e,n(t=t),e.removeClass(t.cssClose).addClass(t.cssOpen),t.animateOpen(e,t),l(t)&&i(id=e.attr("id"),t))}function l(e){return!(!a.cookie||""==e.cookieName)}function i(e,t){l(t)&&a.cookie(t.cookieName,e,t.cookieOptions)}function c(e){return l(e)&&null!=a.cookie(e.cookieName)}a.fn.accordion=function(e){if(!this||this.length<1)return this;var t,s,o;t=this,s=a.extend({},a.fn.accordion.defaults,e),o="",t.each(function(){var e,t,n=a(this),i=(i=s,n.data("accordion-opts",i),"mouseenter"==s.bind&&n.bind("mouseenter",function(e){e.preventDefault(),r(n,s)}),"mouseover"==s.bind&&n.bind("mouseover",function(e){e.preventDefault(),r(n,s)}),"click"==s.bind&&n.bind("click",function(e){e.preventDefault(),r(n,s)}),"dblclick"==s.bind&&n.bind("dblclick",function(e){e.preventDefault(),r(n,s)}),n.attr("id"));l(s)&&c(s)?!1==(e=i,!!l(t=s)&&!!c(t)&&(cookie=unescape(a.cookie(t.cookieName)))==e)?(n.addClass(s.cssClose),s.loadClose(n,s)):(n.addClass(s.cssOpen),s.loadOpen(n,s),o=i):i!=s.defaultOpen?(n.addClass(s.cssClose),s.loadClose(n,s)):(n.addClass(s.cssOpen),s.loadOpen(n,s),o=i)}),0<o.length&&l(s)?i(o,s):i("",s)},a.fn.accordion.defaults={cssClose:"accordion-close",cssOpen:"accordion-open",cookieName:"accordion",cookieOptions:{path:"/",expires:7,domain:"",secure:""},defaultOpen:"",speed:"slow",bind:"click",animateOpen:function(e,t){e.next().stop(!0,!0).slideDown(t.speed)},animateClose:function(e,t){e.next().stop(!0,!0).slideUp(t.speed)},loadOpen:function(e,t){e.next().show()},loadClose:function(e,t){e.next().hide()}}}(jQuery),function(o){o.fn.fcModal=function(e){var s=o.extend({onOpen:function(){},register_fc_modal_handing_events:function(){o(".fc-modal").each(function(e,t){var n,i=o(this).data("initiator");void 0!==i&&o(i.length)&&(o(i).data("target",o(this).attr("id")),n=o(this).attr("id"),o("body").on("click",i,function(){0<o("#"+n).length&&(s.onOpen(),o("#"+n).css("display","block"))}))}),o("body").on("click",".fc-modal-close",function(){var e=o(this).closest("div.fc-modal");o(e).css("display","none")}),window.onclick=function(e){o(e.toElement).hasClass("fc-modal")&&o(".fc-modal").hide()}}},e);return this.each(function(){s.register_fc_modal_handing_events()})}}(jQuery),jQuery(document).ready(function(a){a(".fc-modal").fcModal({});a(".custom-accordion > dd").hide();a(".custom-accordion > dd:first-of-type").show(),a(".custom-accordion > dt:first-of-type").addClass("accordion-active"),a(".fc-help-right .custom-accordion > dd:first-of-type").hide(),a(".fc-help-right .custom-accordion > dt:first-of-type").removeClass("accordion-active"),a(".custom-accordion > dt .get_pro").add(".fc-form-container .fc-form-group.fc-locked .get_pro").on("click",function(e){return e.stopPropagation(),window.open("https://www.wpmapspro.com/?utm_source=wordpress&utm_medium=liteversion&utm_campaign=freemium&utm_id=freemium","_blank"),!1}),a(".custom-accordion > dt > section > div > h4").add(".fc-form-container .fc-form-group.fc-locked").on("click",function(){var e=a(this),t=e.closest("dt").next();return e.closest("dt").find("section").hasClass("fc-locked")||(e.closest("dt").hasClass("accordion-active")?(e.closest("dt").next("dd").slideUp(),e.closest("dt").removeClass("accordion-active")):(e.closest(".custom-accordion").find("dd").slideUp(),e.closest(".custom-accordion").find("dt").removeClass("accordion-active"),e.closest("dt").addClass("accordion-active"),t.addClass("active").slideDown())),!1}),a(".row-actions .copy a").append('<i class="fa fa-copy "></i>'),a('.wp-list-table .check-column input[type="checkbox"]').wrap('<span class="checkbox"></span>'),a('.wp-list-table .check-column input[type="checkbox"]').after("<label></label>"),a(".wp-list-table #the-list").on("click","tr",function(e){a(this).hasClass("active")?a(this).removeClass("active"):a(this).addClass("active")}),($overviewPage=0<a(".fcdoc-product-info").length)&&(settings_obj.urlforajax,a("#user-suggestion,#purchase_code").keyup(function(){a(this).css("border","none")})),a("body").on("click",'input[name="fc-geocoding"]',function(e){e.preventDefault(),a(this).hide(),a(this).parent().parent().find(".fcdoc-loader").show();var s=a(this).parent().parent().find(".fc-location-new-set"),e=JSON.parse(a(this).parent().parent().find(".fc-location-data-set").val()),o=[],t=1e3,n=new google.maps.Geocoder;a.each(e,function(e,t){0});a.each(e,function(i,e){setTimeout(function(){n.geocode({address:e},function(e,t){var n;null!=e&&0<e.length&&(n=e[0].geometry.location.lat()?e[0].geometry.location.lat():"",e=e[0].geometry.location.lng()?e[0].geometry.location.lng():"",n=JSON.parse('{"id":"'+i+'","latitude": "'+n+'", "longitude": "'+e+'"}'),o.push(n),a(s).val(JSON.stringify(o)))})},t),t+=500}),setTimeout(function(){a(".fcdoc-loader").hide(),a(".fc-geocoding").hide(),a(".wpgmp-status").html('<div class="fc-msg fc-success">Geocoding process is completed. Click below to save new changes.</div>').show(),a(".fc-geocoding-updates").show()},t+2e3)}),0<a(".wpgmp_datepicker").length&&a(".wpgmp_datepicker").datepicker({dateFormat:"dd-mm-yy"})}),jQuery(document).ready(function(x){0<x(".fc_view_source").length&&(r=wp.codeEditor.initialize(x(".fc_view_source"),null));var r,e,i="",n=(x(".yes-remove-current-template").on("click",function(){var e=x(this).data("product"),t=x(this).data("templatetype"),n=x(this).data("templatename"),e={action:"core_backend_ajax_calls",product:e,templateName:n,templatetype:t,selector:".default-custom-template",operation:"delete_custom_template"};i=n,$inputs=e,jQuery.ajax({type:"POST",url:settings_obj.urlforajax,dataType:"json",data:e,beforeSend:function(){jQuery(".se-pre-con").fadeIn("slow")},success:function(e){switch(jQuery(".se-pre-con").fadeOut("slow"),$inputs.selector){case".set-default-template":x(".fc_tools").css("display","none"),x(".fc_name").css("display","none"),x(".current_selected").parent().parent().find(".fc_name").css("display","block"),x(".current_selected").closest(".fc_tools").css("display","block"),x(".current-temp-in-use").removeClass("current-temp-in-use"),x(".current_selected").addClass("current-temp-in-use");break;case".default-custom-template":x(".default-custom-template[data-templatename="+i+"]").parent().parent().parent().remove()}}}),x("#remove-current-template").modal("hide")}),x(".default-custom-template").on("click",function(){return x("#remove-current-template").modal("show"),x(".yes-remove-current-template").data("product",x(this).data("product")),x(".yes-remove-current-template").data("templatetype",x(this).data("templatetype")),x(".yes-remove-current-template").data("templatename",x(this).data("templatename")),!1}),"");x("body").on("click",".repeat_button",function(){for(var e=x(this).parent().parent(),t=x(e).clone(),n=x(t).find("input[type='text']"),i=0;i<n.length;i++){var s=x(n[i]).attr("name"),o=new RegExp(/\[([0-9]+)\]/i).exec(s),a=parseInt(o[1])+1,r=s.replace(/\[([0-9]+)\]/i,"["+a+"]");x(n[i]).attr("name",r)}for(n=x(t).find("input[type='number']"),i=0;i<n.length;i++){s=x(n[i]).attr("name"),o=new RegExp(/\[([0-9]+)\]/i).exec(s),a=parseInt(o[1])+1,r=s.replace(/\[([0-9]+)\]/i,"["+a+"]");x(n[i]).attr("name",r)}x(t).find("input[type='text']").val(""),x(t).find("input[type='number']").val(""),x(e).find(".repeat_button").val("Remove"),x(e).find(".repeat_button").removeClass("repeat_button").addClass("repeat_remove_button"),x(e).after(x(t))}),x("body").on("click",".repeat_remove_button",function(){var e=x(this).parent().parent(),t=x(e).clone(),e=(x(e).remove(),x(t).find("input[type='text']"));x.each(e,function(e,t){var n=x(this).attr("name"),i=n.replace(/\[([0-9]+)\]/i,"");x.each(x("*[name^='"+i+"']"),function(e,t){e=(n=x(this).attr("name")).replace(/\[([0-9]+)\]/i,"["+e+"]");x(this).attr("name",e)})}),x(this).data("id")&&(n=n+x(this).data("id")+"|",x("#fc_remove_entities").val(n))}),window.send_to_editor_default=window.send_to_editor,x(".fa-picture-o").click(function(){return window.send_to_editor=function(e){x("body").append('<div id="temp_image">'+e+"</div>");e=x("#temp_image").find("img");imgurl=e.attr("src"),x(".active_element").css("background-image","url("+imgurl+")");try{tb_remove()}catch(e){}x("#temp_image").remove(),window.send_to_editor=window.send_to_editor_default},tb_show("","media-upload.php?post_ID=0&type=image&TB_iframe=true"),!1});x(".choose_image").click(function(){return currentClickedID=x(this).data("ref"),window.send_to_editor=window.attach_image,tb_show("","media-upload.php?post_ID=0&target=marker_category_icon&type=image&TB_iframe=true"),!1}),window.attach_image=function(e){x("body").append('<div id="temp_image'+currentClickedID+'">'+e+"</div>");e=x("#temp_image"+currentClickedID).find("img");imgurl=e.attr("src"),imgclass=e.attr("class"),imgid=parseInt(imgclass.replace(/\D/g,""),10),x("#remove_image"+currentClickedID).show(),x("#image_"+currentClickedID).attr("src",imgurl).show(),x("#input_"+currentClickedID).val(imgurl);try{tb_remove()}catch(e){}x("#temp_image"+currentClickedID).remove(),window.send_to_editor=window.send_to_editor_default},x(".remove_image").click(function(){return e=x(this).parent().parent(),x(e).find(".selected_image").attr("src",""),x(e).find('input[name="'+x(this).data("target")+'"]').val(""),x(this).hide(),!1}),x(".switch_onoff").change(function(){var e=x(this).data("target");"radio"==x(this).attr("type")&&(x(e).closest(".fc-form-group").hide(),e+="_"+x(this).val()),x(this).is(":checked")?x(e).closest(".fc-form-group").show():(x(e).closest(".fc-form-group").hide(),x(e).hasClass("switch_onoff")&&(x(e).attr("checked",!1),x(e).trigger("change")))}),x.each(x(".switch_onoff"),function(e,t){1==x(this).is(":checked")&&x(this).trigger("change")}),x("input[name='wpp_refresh']").trigger("change"),x("body").on("click",".fc-accordion-tab",function(){x(this).hasClass("active")?(x(this).removeClass("active"),x(this).next().removeClass("active")):(x(".fc-accordion-tab").removeClass("active"),x(".fc-acc-child").removeClass("active"),x(this).addClass("active"),x(this).next().addClass("active"))}),0<jQuery(".fc_templates").length&&(x(".fc_load_original").click(function(){var e;confirm("Are you Sure?")&&(e=x(this).closest(".fc_customizer").parent(),x(e).find(".current-temp-in-use").trigger("click"))}),x(".fc_apply_changes").click(function(){var s=x(this).closest(".fc_customizer"),e=x(this).closest(".fc_customizer").parent(),t=(x(s).find(".fc_preview").append('<div class="fc_loading"></div>'),x(s).find(".fc_view_source").val()),o=x(e).find(".current-temp-in-use").data("templatename"),a=x(e).find(".current-temp-in-use").data("templatetype");jQuery.ajax({type:"POST",url:settings_obj.urlforajax,dataType:"json",data:{action:"core_templates",operation:"fc_load_template",nonce:settings_obj.nonce,template_name:o,template_type:a,template_source:t,columns:x(s).find(".fc-grid-active").data("col")},beforeSend:function(){},success:function(e){x(s).parent().find(".fc-bottom-bar").show();var t=settings_obj.text_editable,n=(new DOMParser).parseFromString(e.html,"text/html").body.innerHTML,i=x(s).find(".fc_preview").clone(),n=(x(s).find(".fc_preview").html(n),x(i).find(".editable").each(function(e){var t=x(this),n=(x(this).data("temp-type"),x(t).removeClass("editable"),x(t).removeClass("active_element"),x(t).attr("class").split(" "));n&&n.length&&(x.each(n,function(e,t){0<=t.indexOf("{")&&delete n[e],n[e]="."+t}),n=n.join(""),t=x(t).attr("style"),x(s).find(".fc_preview").find(n).attr("style",t))}),0<t.length&&x.each(t,function(e,t){x(s).find(t).addClass("editable").data("editor","text"),x(s).find(t).data("temp-type",a+"-"+o)}),0<(t=settings_obj.bg_editable).length&&x.each(t,function(e,t){x(s).find(t).addClass("editable").data("editor","bg"),x(s).find(t).data("temp-type",a+"-"+o)}),0<(t=settings_obj.margin_editable).length&&x.each(t,function(e,t){x(s).find(t).addClass("editable").data("editor","margin"),x(s).find(t).data("temp-type",a+"-"+o)}),0<(t=settings_obj.full_editable).length&&x.each(t,function(e,t){x(s).find(t).addClass("editable").data("editor","full"),x(s).find(t).data("temp-type",a+"-"+o)}),(new DOMParser).parseFromString(e.sourcecode,"text/html").body.innerHTML,r.codemirror.getValue());x(s).find(".fc_view_source").val(n),setTimeout(function(){r.codemirror.refresh()},1)}})}),x(".custom-accordion > dt > section > div.fc-type-infowindow > h4").add(".fc-form-container .fc-form-group.fc-locked").on("click",function(){x(this).closest("dt").hasClass("accordion-active")&&setTimeout(function(){r.codemirror.refresh()},50)}),x(".set-default-template").click(function(e){var n=x(this).closest(".fc_templates"),i=(x(".fc_customizer .fc_apply_style").removeClass("show_customizer"),x(".fc_tool_fgc").iris("hide"),x(".fc_tool_bgc").iris("hide"),x(".active_element").removeClass("active_element"),x(n).find(".current_selected").removeClass("current_selected"),x(this).addClass("current_selected"),e.preventDefault(),x(this).data("templatename")),s=x(this).data("templatetype"),e=x(this).data("input"),t=(x('input[name="'+e+'[name]"]').val(i),x('input[name="'+e+'[type]"]').val(s),x(n).find(".fc_tools").css("display","none"),x(n).find(".fc_name").css("display","none"),x(n).find(".current_selected").parent().parent().find(".fc_name").css("display","block"),x(n).find(".current_selected").closest(".fc_tools").css("display","block"),x(n).find(".current-temp-in-use").removeClass("current-temp-in-use"),x(n).find(".current_selected").addClass("current-temp-in-use"),x(n).find(".fc_preview").html('<div class="fc_loading"></div>'),{action:"core_templates",operation:"fc_load_template",nonce:settings_obj.nonce,template_name:i,template_type:s,columns:x(n).parent().find(".fc_customizer").find(".fc-grid-active").data("col")});x(this).hasClass("current-saved")&&(t.template_source=x('input[name="'+e+'[sourcecode]"]').val()),jQuery.ajax({type:"POST",url:settings_obj.urlforajax,dataType:"json",data:t,beforeSend:function(){x(n).append('<div class="fc_loading"></div>'),x(".fc-btn-submit").attr("disabled","disabled"),x(".fc-btn-submit").prop("disabled",!0)},complete:function(){x(".fc_loading").remove(),x(".fc-btn-submit").removeAttr("disabled"),x(".fc-btn-submit").prop("disabled",!1)},success:function(e){x(n).parent().find(".fc_customizer").show(),x(n).parent().find(".fc_source_code_container").show(),x(n).parent().find(".fc_preview").html(e.html);var t=settings_obj.text_editable;0<t.length&&x.each(t,function(e,t){x(n).parent().find(t).addClass("editable").data("editor","text"),x(n).parent().find(t).data("temp-type",s+"-"+i)}),0<(t=settings_obj.bg_editable).length&&x.each(t,function(e,t){x(n).parent().find(t).addClass("editable").data("editor","bg"),x(n).parent().find(t).data("temp-type",s+"-"+i)}),0<(t=settings_obj.margin_editable).length&&x.each(t,function(e,t){x(n).parent().find(t).addClass("editable").data("editor","margin"),x(n).parent().find(t).data("temp-type",s+"-"+i)}),0<(t=settings_obj.full_editable).length&&x.each(t,function(e,t){x(n).parent().find(t).addClass("editable").data("editor","full"),x(n).parent().find(t).data("temp-type",s+"-"+i)}),r.codemirror.setValue(e.sourcecode),setTimeout(function(){r.codemirror.refresh()},50)}})}),0<x(".current-temp-in-use").length&&x(".fc_apply_changes").trigger("click"),x(".current-temp-in-use").length&&(x(".current-temp-in-use").parent().parent().find(".fc_name").css("display","block"),x(".current-temp-in-use").closest(".fc_tools").css("display","block")),x(".fc_templates").slick({slidesToShow:1,infinite:!0,speed:300,centerMode:!0,variableWidth:!0}),x(".fc_preview").on("click","a",function(e){e.preventDefault()}),setTimeout(function(){x(".current-saved").length&&x(" .current-saved.set-default-template").trigger("click")},3e3),x(".fc_preview").on("hover",".editable",function(e){x(".fc-edit-mode").is(":checked")&&e.target===e.currentTarget&&(x(this).attr("class"),x(this).addClass("fc-show-editable"))}),x(".fc_preview").on("click",".editable",function(e){var t,n,i,s,o,a,r,l,c,h,u,d,p,f,g,m,v,b=x(this).closest(".fc_preview").parent().parent().parent();x(b).find(".fc_tool_fgc").iris("hide"),x(b).find(".fc_tool_bgc").iris("hide"),e.target===e.currentTarget&&(x(this).data("editor"),x(".fc-bg-control").show(),x(".fc-forground-control").show(),x(".fc-margin-control").show(),x(b).find(".active_element").removeClass("active_element"),x(this).addClass("fc_inline"),e=x(b).position(),x(b).outerWidth(),t=x(this).position(),x(this).outerWidth(),e.left,x(this).removeClass("fc_inline"),e=x(this).css("font-weight"),n=x(this).css("font-size").replace(/[^-\d\.]/g,""),i=x(this).css("color").replace(")",", 0)").replace("rgb","rgba"),s=x(this).css("line-height").replace(/[^-\d\.]/g,""),o=x(this).css("background-color"),a=x(this).css("background"),r=x(this).css("font-style"),l=x(this).css("text-decoration-line"),0<=(v=0<=(v=x(this).css("font-family")).indexOf(",")?(v=v.split(","))[0]:v).indexOf('"')&&(v=(v=v.replace('"',"")).replace('"',"")),WebFont.load({google:{families:[v]}}),x(".fc-forground-control .fc-font-family select").val(v),v=x(this).css("text-align"),c=x(this).css("margin-top").replace(/[^-\d\.]/g,""),h=x(this).css("margin-bottom").replace(/[^-\d\.]/g,""),u=x(this).css("margin-left").replace(/[^-\d\.]/g,""),d=x(this).css("margin-right").replace(/[^-\d\.]/g,""),p=x(this).css("padding-top").replace(/[^-\d\.]/g,""),f=x(this).css("padding-bottom").replace(/[^-\d\.]/g,""),g=x(this).css("padding-left").replace(/[^-\d\.]/g,""),m=x(this).css("padding-right").replace(/[^-\d\.]/g,""),x(".fc-forground-control .fc_tool_text_align_"+v).addClass("fc-tool-active"),x(b).find(".fc_margin_top").val(c),x(b).find(".fc_margin_bottom").val(h),x(b).find(".fc_margin_left").val(u),x(b).find(".fc_margin_right").val(d),x(b).find(".fc_padding_top").val(p),x(b).find(".fc_padding_bottom").val(f),x(b).find(".fc_padding_left").val(g),x(b).find(".fc_padding_right").val(m),x(".fc-bg-control .fc_tool_bgc").val(o),x(".fc-bg-control .fc_tool_bgc").trigger("change"),x(".fc-forground-control .fc_tool_fgc").val(i),x(".fc-forground-control .fc_tool_fgc").trigger("change"),"bold"==e||"700"==e?x(b).find(".fc_tool_text_bold").addClass("fc-tool-active"):x(b).find(".fc_tool_text_bold").removeClass("fc-tool-active"),console.log(l),"underline"==l?x(b).find(".fc_tool_text_underline").addClass("fc-tool-active"):x(b).find(".fc_tool_text_underline").removeClass("fc-tool-active"),"italic"==r?x(b).find(".fc_tool_text_italic").addClass("fc-tool-active"):x(b).find(".fc_tool_text_italic").removeClass("fc-tool-active"),"none"==a&&x(b).find(".fc_tool_bg_transparent").attr("checked","checked"),x(b).find(".fc_tool_text_lineheight").val(s),x(b).find(".fc_tool_font_size").val(n),t.left,x(b).parent().find(".fc_customizer .fc_apply_style").addClass("show_customizer"),v=x(this).attr("class"),x("editable"!=v?'*[class*="'+v+'"]':this).addClass("active_element"))}),x(".fc_preview").on("mouseout",".editable",function(e){e.target===e.currentTarget&&(x(this).attr("class"),x(this).removeClass("fc-show-editable"))}),x(".fc_tool_text_bold").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("font-weight","inherit")):(x(this).addClass("fc-tool-active"),x(".active_element").css("font-weight","bold"))}),x(".fc_tool_text_align_left").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-align","inherit")):(x(this).parent().find("a").removeClass("fc-tool-active"),x(this).addClass("fc-tool-active"),x(".active_element").css("text-align","left"))}),x(".fc_tool_text_align_right").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-align","inherit")):(x(this).parent().find("a").removeClass("fc-tool-active"),x(this).addClass("fc-tool-active"),x(".active_element").css("text-align","right"))}),x(".fc_tool_text_align_center").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-align","inherit")):(x(this).parent().find("a").removeClass("fc-tool-active"),x(this).addClass("fc-tool-active"),x(".active_element").css("text-align","center"))}),x(".fc-font-family select").change(function(){var e=x(this).val();WebFont.load({google:{families:[e]}}),x(".active_element").css("font-family",e)}),x(".fc_tool_text_align_justify").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-align","inherit")):(x(this).parent().find("a").removeClass("fc-tool-active"),x(this).addClass("fc-tool-active"),x(".active_element").css("text-align","justify"))}),x(".fc_apply_style").click(function(e){e.target===e.currentTarget&&(x(".fc_tool_fgc").iris("hide"),x(".fc_tool_bgc").iris("hide"))}),x(".fc-forground-control .fa-undo").click(function(){x(".active_element").css("color",""),x(".active_element").css("line-height",""),x(".active_element").css("font-size",""),x(".active_element").css("font-style",""),x(".active_element").css("font-weight",""),x(".active_element").css("text-decoration","")}),x(".fc-bg-control .fa-undo").click(function(){x(".active_element").css("background","")}),x(".fc_tool_text_italic").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("font-style","normal")):(x(this).addClass("fc-tool-active"),x(".active_element").css("font-style","italic"))}),x(".fc-forground-control .fc_tool_fgc").wpColorPicker({change:function(e,t){x(".active_element").css("color",x(this).val())}}),x(".fc-bg-control .fc_tool_bgc").wpColorPicker({change:function(e,t){x(".active_element").css("background-color",x(this).val())}}),x(".fc_tool_text_underline").click(function(){x(this).hasClass("fc-tool-active")?(x(this).removeClass("fc-tool-active"),x(".active_element").css("text-decoration","none")):(x(this).addClass("fc-tool-active"),x(".active_element").css("text-decoration","underline"))}),jQuery(".fc-show-placeholder").on("click",function(e){var t=x(this).closest(".fc_supported_placeholder").parent().parent().parent();x(t).find(".fc-hidden-placeholder").toggle("show"),"Show Placeholder"===x.trim(x(this).val())?x(this).val("Hide Placeholder"):x(this).val("Show Placeholder")}),x(".fc-show-source").toggle(function(){var e=x(this).closest(".fc-bottom-bar").parent();x(e).find(".fc_source_code_container").show(),x(this).val("Hide Source")},function(){var e=x(this).closest(".fc-bottom-bar").parent();x(e).find(".fc_source_code_container").hide(),x(this).val("View Source")}),x(".fc_tool_text_lineheight").bind("keyup mouseup",function(){x(".active_element").css("line-height",x(this).val()+"px")}),x(".fc_tool_bg_repeat").change(function(){x(".active_element").css("background-repeat",x(this).val())}),x(".fc-texture").click(function(e){e.preventDefault(),x(".active_element").css({"background-image":"url('"+settings_obj.image_path+"/back-skin/"+x(this).data("image")+".png')","background-repeat":"repeat"})}),x(".fc_tool_font_size").bind("keyup mouseup",function(){x(".active_element").css("font-size",x(this).val()+"px")}),x(".fc_margin_top").bind("keyup mouseup",function(){x(".active_element").css("margin-top",x(this).val()+"px")}),x(".fc_margin_bottom").bind("keyup mouseup",function(){x(".active_element").css("margin-bottom",x(this).val()+"px")}),x(".fc_margin_left").bind("keyup mouseup",function(){x(".active_element").css("margin-left",x(this).val()+"px")}),x(".fc_margin_right").bind("keyup mouseup",function(){x(".active_element").css("margin-right",x(this).val()+"px")}),x(".fc_padding_top").bind("keyup mouseup",function(){x(".active_element").css("padding-top",x(this).val()+"px")}),x(".fc_padding_bottom").bind("keyup mouseup",function(){x(".active_element").css("padding-bottom",x(this).val()+"px")}),x(".fc_padding_left").bind("keyup mouseup",function(){x(".active_element").css("padding-left",x(this).val()+"px")}),x(".fc_padding_right").bind("keyup mouseup",function(){x(".active_element").css("padding-right",x(this).val()+"px")}),x(".fc-show-grid").click(function(){var e=x(this).closest(".fc-bottom-bar").parent().parent(),t=(x(e).find(".fc_preview .fc-component-block .fc-component-content").not(":first").remove(),x(e).find(".fc-grid-active").removeClass("fc-grid-active"),x(this).data("col")),n=x(e).find(".fc_preview .fc-component-block .fc-component-content").clone(!0).off();for(c=1;c<t;c++)x(e).find(".fc_preview .fc-component-block").append(n.clone());x(this).addClass("fc-grid-active")}),x(".fc-reset-design").toggle(function(){var e=x(this).closest(".fc_customizer").parent().find(".fc_templates"),t=x(e).find(".current-temp-in-use").data("templatename"),e="fc-"+x(e).find(".current-temp-in-use").data("templatetype")+"-"+t;x("."+e).addClass("fc-temp-undo").removeClass(e),x(this).removeClass("fa-arrow-circle-left").addClass("fa-arrow-circle-right"),x(this).parent().find(".fc-tooltiptext").text("View Customized")},function(){var e=x(this).closest(".fc_customizer").parent().find(".fc_templates"),t=x(e).find(".current-temp-in-use").data("templatename"),e="fc-"+x(e).find(".current-temp-in-use").data("templatetype")+"-"+t;x(".fc-temp-undo").addClass(e).removeClass("fc-temp-undo"),x(this).removeClass("fa-arrow-circle-right").addClass("fa-arrow-circle-left"),x(this).parent().find(".fc-tooltiptext").text("View Original")}),x(".fc-check-responsive .fa-mobile").click(function(){var e=x(this).closest(".fc-bottom-bar").parent();x(e).find(".fc_preview .fc-component-block").addClass("fc-mobile-view")}),x(".fc-check-responsive .fa-desktop").click(function(){var e=x(this).closest(".fc-bottom-bar").parent();x(e).find(".fc_preview .fc-component-block").removeClass("fc-mobile-view")}),x(".fc_view_source").click(function(){x(".fc_customizer .fc_apply_style").removeClass("show_customizer"),x(".fc_tool_fgc").iris("hide"),x(".fc_tool_bgc").iris("hide"),x(".active_element").removeClass("active_element")}),x(document).keyup(function(e){27==e.keyCode&&(x(".fc_customizer .fc_apply_style").removeClass("show_customizer"),x(".fc_tool_fgc").iris("hide"),x(".fc_tool_bgc").iris("hide"),x(".active_element").removeClass("active_element"))}),x(".wpgmp-overview form").submit(function(){var w={},C=0,n=(x(".editable").each(function(e){var t,n,i,s,o,a,r,l,c,h,u,d,p,f,g,m,v,b={},y=x(this),S=x(this).data("temp-type"),_=(b[S]={},x(y).removeClass("editable"),x(y).removeClass("active_element"),x(y).attr("class").split(" "));_&&_.length&&(x.each(_,function(e,t){0<=t.indexOf("{")&&delete _[e]}),_=_.join("."),t=x(y).css("font-weight"),n=x(y).css("font-size"),i=x(y).css("color"),s=x(y).css("font-family"),o=x(y).css("text-align"),a=x(y).css("line-height"),r=x(y).css("background-color"),l=x(y).css("font-style"),c=x(y).css("text-decoration"),h=x(y).css("background-image"),u=x(y).css("margin-top"),d=x(y).css("margin-bottom"),p=x(y).css("margin-left"),f=x(y).css("margin-right"),g=x(y).css("padding-top"),m=x(y).css("padding-bottom"),v=x(y).css("padding-left"),y=x(y).css("padding-right"),b[S][_]="background-image:"+h+";font-family:"+s+";font-weight:"+t+";font-size:"+n+";color:"+i+";line-height:"+a+";background-color:"+r+";font-style:"+l+";text-align:"+o+";text-decoration:"+c+";margin-top:"+u+";margin-bottom:"+d+";margin-left:"+p+";margin-right:"+f+";padding-top:"+g+";padding-bottom:"+m+";padding-left:"+v+";padding-right:"+y+";",w[C]=b,C++)}),x("#fc_custom_styles").val(JSON.stringify(w)),r.codemirror.getValue());return x(".fc_view_source").each(function(e,t){x(t).closest(".fc_customizer").parent().find(".custom_sourcecode").val(n)}),setTimeout(function(){r.codemirror.refresh()},1),!0})),0<x(".fc-footer").length&&!x("body").hasClass("wp-maps_page_wpgmp_form_group_map")&&!x("body").hasClass("wp-maps_page_wpgmp_manage_settings")&&x(window).scroll(function(){var e;800<x(".flippercode-ui-height").height()&&(0<x(".fc-no-sticky").length||(e=x(window).scrollTop(),x(window).height(),0<=e&&x(".fc-footer").addClass("fc-fixed-footer"),x(window).scrollTop()+x(window).height()>x(document).height()-30&&x(".fc-fixed-footer").removeClass("fc-fixed-footer")))}),jQuery(".fc_select2").length,x(".fc-main").find('[data-toggle="tab"]').click(function(e){e.preventDefault();e=x(this).attr("href");x(".fc-tabs-container .fc-tabs-content").hide(),x(e).show(),x(".fc-tabs .active").removeClass("active"),x(this).parent().addClass("active")})}),function(n){for(var i=new Array,e=function(e,t){if(document.querySelectorAll)t=document.querySelectorAll(e);else{var n=document,i=n.styleSheets[0]||n.createStyleSheet();i.addRule(e,"f:b");for(var s=n.all,o=0,a=[],r=s.length;o<r;o++)s[o].currentStyle.f&&a.push(s[o]);i.removeRule(0),t=a}return t}("img.lazy"),t=function(){for(var e,t=0;t<i.length;t++)0<=(e=(e=i[t]).getBoundingClientRect()).top&&0<=e.left&&e.top<=(n.innerHeight||document.documentElement.clientHeight)&&function(e,t){var n=new Image,i=e.getAttribute("data-src");n.onload=function(){e.parent?e.parent.replaceChild(n,e):e.src=i,t&&t()},n.src=i}(i[t],function(){i.splice(t,t)})},s=0;s<e.length;s++)i.push(e[s]);t(),function(e,t){n.addEventListener?this.addEventListener(e,t,!1):n.attachEvent?this.attachEvent("on"+e,t):this["on"+e]=t}("scroll",t)}(this),function(s){void 0===s.fn.each2&&s.extend(s.fn,{each2:function(e){for(var t=s([0]),n=-1,i=this.length;++n<i&&(t.context=t[0]=this[n])&&!1!==e.call(t[0],n,t););return this}})}(jQuery),function(v,b){var e,t,n,y,s,r,m,c,i,o,a;function l(e){var t=v(document.createTextNode(""));e.before(t),t.before(e),t.remove()}function h(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return i[e]||e})}function u(e,t){for(var n=0,i=t.length;n<i;n+=1)if(d(e,t[n]))return n;return-1}function d(e,t){return e===t||e!==b&&t!==b&&null!==e&&null!==t&&(e.constructor===String?e+""==t+"":t.constructor===String&&t+""==e+"")}function p(e,t,n){var i,s,o;if(null===e||e.length<1)return[];for(s=0,o=(i=e.split(t)).length;s<o;s+=1)i[s]=n(i[s]);return i}function f(e){return e.outerWidth(!1)-e.width()}function g(t){var n="keyup-change-value";t.on("keydown",function(){v.data(t,n)===b&&v.data(t,n,t.val())}),t.on("keyup",function(){var e=v.data(t,n);e!==b&&t.val()!==e&&(v.removeData(t,n),t.trigger("keyup-change"))})}function S(t,n,i){var s;return i=i||b,function(){var e=arguments;window.clearTimeout(s),s=window.setTimeout(function(){n.apply(i,e)},t)}}function _(e){e.preventDefault(),e.stopPropagation()}function w(e,t,n){var i,s=[],o=v.trim(e.attr("class"));o&&v((o=""+o).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&s.push(this)}),(o=v.trim(t.attr("class")))&&v((o=""+o).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(i=n(this))&&s.push(i)}),e.attr("class",s.join(" "))}function C(e,t,n,i){var s=h(e.toUpperCase()).indexOf(h(t.toUpperCase())),t=t.length;s<0?n.push(i(e)):(n.push(i(e.substring(0,s))),n.push("<span class='select2-match'>"),n.push(i(e.substring(s,s+t))),n.push("</span>"),n.push(i(e.substring(s+t,e.length))))}function x(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function T(o){var e,a=null,t=o.quietMillis||100,r=o.url,l=this;return function(s){window.clearTimeout(e),e=window.setTimeout(function(){var e=o.data,t=r,n=o.transport||v.fn.select2.ajaxDefaults.transport,i={type:o.type||"GET",cache:o.cache||!1,jsonpCallback:o.jsonpCallback||b,dataType:o.dataType||"json"},i=v.extend({},v.fn.select2.ajaxDefaults.params,i),e=e?e.call(l,s.term,s.page,s.context):null,t="function"==typeof t?t.call(l,s.term,s.page,s.context):t;a&&"function"==typeof a.abort&&a.abort(),o.params&&(v.isFunction(o.params)?v.extend(i,o.params.call(l)):v.extend(i,o.params)),v.extend(i,{url:t,dataType:o.dataType,data:e,success:function(e){e=o.results(e,s.page,s);s.callback(e)},error:function(e,t,n){s.callback({hasError:!0,jqXHR:e,textStatus:t,errorThrown:n})}}),a=n.call(l,i)},t)}}function k(e){var t,n,i=e,r=function(e){return""+e.text},e=(v.isArray(i)&&(i={results:n=i}),!1===v.isFunction(i)&&(n=i,i=function(){return n}),i());return e.text&&(r=e.text,v.isFunction(r)||(t=e.text,r=function(e){return e[t]})),function(s){var o,a=s.term,n={results:[]};""===a?s.callback(i()):(o=function(e,t){var n,i;if((e=e[0]).children){for(i in n={},e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.children=[],v(e.children).each2(function(e,t){o(t,n.children)}),(n.children.length||s.matcher(a,r(n),e))&&t.push(n)}else s.matcher(a,r(e),e)&&t.push(e)},v(i().results).each2(function(e,t){o(t,n.results)}),s.callback(n))}}function D(t){var o=v.isFunction(t);return function(n){var i=n.term,s={results:[]},e=o?t(n):t;v.isArray(e)&&(v(e).each(function(){var e=this.text!==b,t=e?this.text:this;""!==i&&!n.matcher(i,t)||s.results.push(e?this:{id:this,text:this})}),n.callback(s))}}function I(e,t){if(v.isFunction(e))return 1;if(e){if("string"==typeof e)return 1;throw new Error(t+" must be a string, function, or falsy value")}}function A(e,t){var n;return v.isFunction(e)?(n=Array.prototype.slice.call(arguments,2),e.apply(t,n)):e}function M(){var n=this;v.each(arguments,function(e,t){n[t].remove(),n[t]=null})}function P(e,t){function n(){}return((n.prototype=new e).constructor=n).prototype.parent=e.prototype,n.prototype=v.extend(n.prototype,t),n}window.Select2===b&&(r={x:0,y:0},c={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which||e){case c.LEFT:case c.RIGHT:case c.UP:case c.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case c.SHIFT:case c.CTRL:case c.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return 112<=(e=e.which||e)&&e<=123}},i={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},a=v(document),o=1,y=function(){return o++},e=P(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(e){var o,t,n,i,s=".select2-results",a=(this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==b&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=v(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=v("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+y()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",e.element.attr("title")),this.body=v(document.body),w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(A(e.containerCss,this.opts.element)),this.container.addClass(A(e.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",_),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(e.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=o=this.container.find(s),this.search=t=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",_),this.results.on("mousemove",function(e){var t=r;t!==b&&t.x===e.pageX&&t.y===e.pageY||v(e.target).trigger("mousemove-filtered",e)}),this.dropdown.on("mousemove-filtered",s,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",s,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",s,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",s,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),a=80,n=this.results,i=S(a,function(e){n.trigger("scroll-debounced",e)}),n.on("scroll",function(e){0<=u(e.target,n.get())&&i(e)}),this.dropdown.on("scroll-debounced",s,this.bind(this.loadMoreIfNeeded)),v(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),v(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),v.fn.mousewheel&&o.mousewheel(function(e,t,n,i){var s=o.scrollTop();0<i&&s-i<=0?(o.scrollTop(0),_(e)):i<0&&o.get(0).scrollHeight-o.scrollTop()+i<=o.height()&&(o.scrollTop(o.get(0).scrollHeight-o.height()),_(e))}),g(t),t.on("keyup-change input paste",this.bind(this.updateResults)),t.on("focus",function(){t.addClass("select2-focused")}),t.on("blur",function(){t.removeClass("select2-focused")}),this.dropdown.on("mouseup",s,this.bind(function(e){0<v(e.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=b,v.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength),e.element.prop("disabled")),s=(this.enable(!(a=a===b?!1:a)),e.element.prop("readonly"));this.readonly(s=s===b?!1:s),m=m||((a=v("<div class='select2-measure-scrollbar'></div>")).appendTo(document.body),s={width:a.width()-a[0].clientWidth,height:a.height()-a[0].clientHeight},a.remove(),s),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",e.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,t=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,t!==b&&(t.container.remove(),t.liveRegion.remove(),t.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),M.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:d(e.attr("locked"),"locked")||d(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(g){var e,t,n,m=this,a=g.element;if("select"===a.get(0).tagName.toLowerCase()&&(this.select=e=g.element),e&&v.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in g)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),g.debug=g.debug||v.fn.select2.defaults.debug,g.debug&&console&&console.warn&&(null!=g.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=g.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=g.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=g.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=g.ajax&&null!=g.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=g.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=g.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=g.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=g.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=g.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=g.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),g.element.data("select2Tags"))&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0."),null!=g.element.data("tags")&&(n=g.element.data("tags"),v.isArray(n)||(n=[]),g.element.data("select2Tags",n)),null!=g.sorter&&(g.sortResults=g.sorter),null!=g.selectOnClose&&(g.selectOnBlur=g.selectOnClose),null!=g.ajax&&v.isFunction(g.ajax.processResults)&&(g.ajax.results=g.ajax.processResults),null!=g.language&&(n=g.language,v.isFunction(n.noMatches)&&(g.formatNoMatches=n.noMatches),v.isFunction(n.searching)&&(g.formatSearching=n.searching),v.isFunction(n.inputTooShort)&&(g.formatInputTooShort=n.inputTooShort),v.isFunction(n.inputTooLong)&&(g.formatInputTooLong=n.inputTooLong),v.isFunction(n.loadingMore)&&(g.formatLoading=n.loadingMore),v.isFunction(n.maximumSelected))&&(g.formatSelectionTooBig=n.maximumSelected),"function"!=typeof(g=v.extend({},{populateResults:function(e,t,u){var d=this.opts.id,p=this.liveRegion,f=function(e,t,n){for(var i,s,o,a,r,l=[],c=0,h=(e=g.sortResults(e,t,u)).length;c<h;c+=1)a=!(r=!0===(i=e[c]).disabled)&&d(i)!==b,s=i.children&&0<i.children.length,(o=v("<li></li>")).addClass("select2-results-dept-"+n),o.addClass("select2-result"),o.addClass(a?"select2-result-selectable":"select2-result-unselectable"),r&&o.addClass("select2-disabled"),s&&o.addClass("select2-result-with-children"),o.addClass(m.opts.formatResultCssClass(i)),o.attr("role","presentation"),(a=v(document.createElement("div"))).addClass("select2-result-label"),a.attr("id","select2-result-label-"+y()),a.attr("role","option"),(r=g.formatResult(i,a,u,m.opts.escapeMarkup))!==b&&(a.html(r),o.append(a)),s&&((r=v("<ul></ul>")).addClass("select2-result-sub"),f(i.children,r,n+1),o.append(r)),o.data("select2-data",i),l.push(o[0]);t.append(l),p.text(g.formatMatches(e.length))};f(t,e,0)}},v.fn.select2.defaults,g)).id&&(t=g.id,g.id=function(e){return e[t]}),v.isArray(g.element.data("select2Tags"))){if("tags"in g)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+g.element.attr("id");g.tags=g.element.data("select2Tags")}if(e?(g.query=this.bind(function(i){var e,n={results:[],more:!1},s=i.term,o=function(e,t){var n;e.is("option")?i.matcher(s,e.text(),e)&&t.push(m.optionToData(e)):e.is("optgroup")&&(n=m.optionToData(e),e.children().each2(function(e,t){o(t,n.children)}),0<n.children.length)&&t.push(n)},t=a.children();(t=this.getPlaceholder()!==b&&0<t.length&&(e=this.getPlaceholderOption())?t.not(e):t).each2(function(e,t){o(t,n.results)}),i.callback(n)}),g.id=function(e){return e.id}):"query"in g||("ajax"in g?((n=g.element.data("ajax-url"))&&0<n.length&&(g.ajax.url=n),g.query=T.call(g.element,g.ajax)):"data"in g?g.query=k(g.data):"tags"in g&&(g.query=D(g.tags),g.createSearchChoice===b&&(g.createSearchChoice=function(e){return{id:v.trim(e),text:v.trim(e)}}),g.initSelection===b)&&(g.initSelection=function(e,t){var n=[];v(p(e.val(),g.separator,g.transformVal)).each(function(){var e={id:this,text:this},t=g.tags;v.isFunction(t)&&(t=t()),v(t).each(function(){if(d(this.id,e.id))return e=this,!1}),n.push(e)}),t(n)})),"function"!=typeof g.query)throw"query function not defined for Select2 "+g.element.attr("id");if("top"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===g.createSearchChoicePosition)g.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof g.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return g},monitorSource:function(){var e,t=this.opts.element,n=this;t.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=t.prop("disabled"),e=(this.enable(!(e=e===b?!1:e)),t.prop("readonly"));this.readonly(e=e===b?!1:e),this.container&&(w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(A(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(this.opts.dropdownCssClass,this.opts.element)))}),t.length&&t[0].attachEvent&&t.each(function(){this.attachEvent("onpropertychange",n._sync)}),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==b&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e(function(e){v.each(e,n._sync)}),this.propertyObserver.observe(t.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){e=v.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(e){e=v.extend({},e=e||{},{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){this._enabled!==(e=e===b||e)&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){this._readonly!==(e=e!==b&&e)&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,t,n=this.dropdown,i=this.container,s=i.offset(),o=i.outerHeight(!1),a=i.outerWidth(!1),r=n.outerHeight(!1),l=v(window),c=l.width(),h=l.height(),u=l.scrollLeft()+c,h=l.scrollTop()+h,d=s.top+o,p=s.left,h=d+r<=h,f=s.top-r>=l.scrollTop(),g=n.outerWidth(!1);n.hasClass("select2-drop-above")?(e=!0,!f&&h&&(e=!(t=!0))):(e=!1,!h&&f&&(e=t=!0)),t&&(n.hide(),s=this.container.offset(),o=this.container.outerHeight(!1),a=this.container.outerWidth(!1),r=n.outerHeight(!1),u=l.scrollLeft()+c,l.scrollTop(),d=s.top+o,p=s.left,g=n.outerWidth(!1),n.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(h=v(".select2-results",n)[0],n.addClass("select2-drop-auto-width"),n.css("width",""),a<(g=n.outerWidth(!1)+(h.scrollHeight===h.clientHeight?0:m.width))?a=g:g=a,r=n.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(d-=(f=this.body.offset()).top,p-=f.left),t={left:p=!(p+g<=u)&&s.left+u+i.outerWidth(!1)>g?s.left+this.container.outerWidth(!1)-g:p,width:a},e?(this.container.addClass("select2-drop-above"),n.addClass("select2-drop-above"),r=n.outerHeight(!1),t.top=s.top-r,t.bottom="auto"):(t.top=d,t.bottom="auto",this.container.removeClass("select2-drop-above"),n.removeClass("select2-drop-above")),t=v.extend(t,A(this.opts.dropdownCss,this.opts.element)),n.css(t)},shouldOpen:function(){var e;return!this.opened()&&!1!==this._enabled&&!0!==this._readonly&&(e=v.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),a.on("mousemove.select2Event",function(e){r.x=e.pageX,r.y=e.pageY}),!0)},opening:function(){var n,e=this.containerEventName,t="scroll."+e,i="resize."+e,s="orientationchange."+e,o=(this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(n=v("#select2-drop-mask")).length&&((n=v(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),n.hide(),n.appendTo(this.body),n.on("mousedown touchstart click",function(e){l(n);var t=v("#select2-drop");0<t.length&&((t=t.data("select2")).opts.selectOnBlur&&t.selectHighlighted({noFocus:!0}),t.close(),e.preventDefault(),e.stopPropagation())})),this.dropdown.prev()[0]!==n[0]&&this.dropdown.before(n),v("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),n.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active"),this);this.container.parents().add(window).each(function(){v(this).on(i+" "+t+" "+s,function(e){o.opened()&&o.positionDropdown()})})},close:function(){var e,t,n,i;this.opened()&&(e=this.containerEventName,t="scroll."+e,n="resize."+e,i="orientationchange."+e,this.container.parents().add(window).each(function(){v(this).off(t).off(n).off(i)}),this.clearDropdownAlignmentPreference(),v("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),a.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(v.Event("select2-close")))},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){var e;return""===this.search.val()&&(e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm))!==b&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return A(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,t,n,i,s=this.results,o=this.highlight();o<0||(0==o?s.scrollTop(0):(n=this.findHighlightableChoices().find(".select2-result-label"),t=(i=((e=v(n[o])).offset()||{}).top||0)+e.outerHeight(!0),o===n.length-1&&0<(o=s.find("li.select2-more-results")).length&&(t=o.offset().top+o.outerHeight(!0)),(n=s.offset().top+s.outerHeight(!1))<t&&s.scrollTop(s.scrollTop()+(t-n)),(o=i-s.offset().top)<0&&"none"!=e.css("display")&&s.scrollTop(s.scrollTop()+o)))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var t=this.findHighlightableChoices(),n=this.highlight();-1<n&&n<t.length;){var i=v(t[n+=e]);if(i.hasClass("select2-result-selectable")&&!i.hasClass("select2-disabled")&&!i.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var t=this.findHighlightableChoices();if(0===arguments.length)return u(t.filter(".select2-highlighted")[0],t.get());(e=e>=t.length?t.length-1:e)<0&&(e=0),this.removeHighlight(),(t=v(t[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",t.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(t.text()),(e=t.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(e),choice:e})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var t,e=v(e.target).closest(".select2-result-selectable");0<e.length&&!e.is(".select2-highlighted")?(t=this.findHighlightableChoices(),this.highlight(t.index(e))):0==e.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,n=t.find("li.select2-more-results"),i=this.resultsPage+1,s=this,o=this.search.val(),a=this.context;0!==n.length&&n.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(n.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(e){s.opened()&&(s.opts.populateResults.call(this,t,e.results,{term:o,page:i,context:a}),s.postprocessResults(e,!1,!1),!0===e.more?(n.detach().appendTo(t).html(s.opts.escapeMarkup(A(s.opts.formatLoadMore,s.opts.element,i+1))),window.setTimeout(function(){s.loadMoreIfNeeded()},10)):n.remove(),s.positionDropdown(),s.resultsPage=i,s.context=e.context,this.opts.element.trigger({type:"select2-loaded",items:e}))})}))},tokenize:function(){},updateResults:function(n){var i,s=this.search,o=this.results,a=this.opts,r=this,e=s.val(),t=v.data(this.container,"select2-last-term");function l(){s.removeClass("select2-active"),r.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?r.liveRegion.text(o.text()):r.liveRegion.text(r.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function c(e){o.html(e),l()}!0!==n&&t&&d(e,t)||(v.data(this.container,"select2-last-term",e),(!0===n||!1!==this.showSearchInput&&this.opened())&&(i=++this.queryCount,1<=(t=this.getMaximumSelectionSize())&&(e=this.data(),v.isArray(e))&&e.length>=t&&I(a.formatSelectionTooBig,"formatSelectionTooBig")?c("<li class='select2-selection-limit'>"+A(a.formatSelectionTooBig,a.element,t)+"</li>"):s.val().length<a.minimumInputLength?(I(a.formatInputTooShort,"formatInputTooShort")?c("<li class='select2-no-results'>"+A(a.formatInputTooShort,a.element,s.val(),a.minimumInputLength)+"</li>"):c(""),n&&this.showSearch&&this.showSearch(!0)):a.maximumInputLength&&s.val().length>a.maximumInputLength?I(a.formatInputTooLong,"formatInputTooLong")?c("<li class='select2-no-results'>"+A(a.formatInputTooLong,a.element,s.val(),a.maximumInputLength)+"</li>"):c(""):(a.formatSearching&&0===this.findHighlightableChoices().length&&c("<li class='select2-searching'>"+A(a.formatSearching,a.element)+"</li>"),s.addClass("select2-active"),this.removeHighlight(),(e=this.tokenize())!=b&&null!=e&&s.val(e),this.resultsPage=1,a.query({element:a.element,term:s.val(),page:this.resultsPage,context:null,matcher:a.matcher,callback:this.bind(function(e){var t;i==this.queryCount&&(this.opened()?e.hasError!==b&&I(a.formatAjaxError,"formatAjaxError")?c("<li class='select2-ajax-error'>"+A(a.formatAjaxError,a.element,e.jqXHR,e.textStatus,e.errorThrown)+"</li>"):(this.context=e.context===b?null:e.context,this.opts.createSearchChoice&&""!==s.val()&&(t=this.opts.createSearchChoice.call(r,s.val(),e.results))!==b&&null!==t&&r.id(t)!==b&&null!==r.id(t)&&0===v(e.results).filter(function(){return d(r.id(this),r.id(t))}).length&&this.opts.createSearchChoicePosition(e.results,t),0===e.results.length&&I(a.formatNoMatches,"formatNoMatches")?(c("<li class='select2-no-results'>"+A(a.formatNoMatches,a.element,s.val())+"</li>"),this.showSearch&&this.showSearch(s.val())):(o.empty(),r.opts.populateResults.call(this,o,e.results,{term:s.val(),page:this.resultsPage,context:null}),!0===e.more&&I(a.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+a.escapeMarkup(A(a.formatLoadMore,a.element,this.resultsPage))+"</li>"),window.setTimeout(function(){r.loadMoreIfNeeded()},10)),this.postprocessResults(e,n),l(),this.opts.element.trigger({type:"select2-loaded",items:e}))):this.search.removeClass("select2-active"))})}))))},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var n;(n=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e=n[0],t=n.val().length;n.focus(),(0<e.offsetWidth||0<e.offsetHeight)&&e===document.activeElement&&(e.setSelectionRange?e.setSelectionRange(t,t):e.createTextRange&&((t=e.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){var t,n;this._touchMoved?this.clearTouchMoved():(t=this.highlight(),(n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data"))?(this.highlight(t),this.onSelect(n,e)):e&&e.noFocus&&this.close())},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==b?e.text():b)},getPlaceholderOption:function(){var e;if(this.select)return e=this.select.children("option").first(),this.opts.placeholderOption!==b?"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select):""===v.trim(e.text())&&""===e.val()?e:void 0},initContainerWidth:function(){var e=function(){var e,t,n,i,s;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return v.isFunction(this.opts.width)?this.opts.width():this.opts.width;if("string"==typeof(e=this.opts.element.attr("style")))for(i=0,s=(t=e.split(";")).length;i<s;i+=1)if(null!==(n=t[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=n.length)return n[1];return"resolve"===this.opts.width?0<(e=this.opts.element.css("width")).indexOf("%")?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==e&&this.container.css("width",e)}}),t=P(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,t;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(e=this.search.get(0)).createTextRange?((t=e.createTextRange()).collapse(!1),t.select()):e.setSelectionRange&&(t=this.search.val().length,e.setSelectionRange(t,t))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this))&&this.focusser.focus()},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){v("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"selection","focusser")},initContainer:function(){var t,e=this.container,n=this.dropdown,i=y(),i=(this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+i),this.focusser.attr("aria-labelledby","select2-chosen-"+i),this.results.attr("id","select2-results-"+i),this.search.attr("aria-owns","select2-results-"+i),this.focusser.attr("id","s2id_autogen"+i),e=v("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(e.text()).attr("for",this.focusser.attr("id")),this.opts.element.attr("title"));this.opts.element.attr("title",i||e.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(v("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which===c.PAGE_UP||e.which===c.PAGE_DOWN)_(e);else switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void _(e);case c.ENTER:return this.selectHighlighted(),void _(e);case c.TAB:return void this.selectHighlighted({noFocus:!0});case c.ESC:return this.cancel(e),void _(e)}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&1<this.results.length&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.ESC){if(!1!==this.opts.openOnEnter||e.which!==c.ENTER)return e.which==c.DOWN||e.which==c.UP||e.which==c.ENTER&&this.opts.openOnEnter?e.altKey||e.ctrlKey||e.shiftKey||e.metaKey?void 0:(this.open(),void _(e)):void(e.which!=c.DELETE&&e.which!=c.BACKSPACE||(this.opts.allowClear&&this.clear(),_(e)));_(e)}})),g(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){0<=this.opts.minimumResultsForSearch&&(e.stopPropagation(),this.opened()||this.open())})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),(e=e).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection)&&this.selection.focus()})),t.on("mousedown touchstart",this.bind(function(e){l(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(e)})),n.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){_(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(v.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(e){var t,n=this.selection.data("select2-data");n&&(t=v.Event("select2-clearing"),this.opts.element.trigger(t),t.isDefaultPrevented()||(t=this.getPlaceholderOption(),this.opts.element.val(t?t.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(n),choice:n}),this.triggerChange({removed:n}))))},initSelection:function(){var t;this.isPlaceholderOptionSelected()?(this.updateSelection(null),this.close(),this.setPlaceholder()):(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.setPlaceholder(),t.lastSearchTerm=t.search.val())})},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==b&&((e=this.getPlaceholderOption())!==b&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val())},prepareOpts:function(){var a=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===a.element.get(0).tagName.toLowerCase()?a.initSelection=function(e,t){e=e.find("option").filter(function(){return this.selected&&!this.disabled});t(n.optionToData(e))}:"data"in a&&(a.initSelection=a.initSelection||function(e,t){var s=e.val(),o=null;a.query({matcher:function(e,t,n){var i=d(s,a.id(n));return i&&(o=n),i},callback:v.isFunction(t)?function(){t(o)}:v.noop})}),a},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();!this.isPlaceholderOptionSelected()||e===b||this.select&&this.getPlaceholderOption()===b||(this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear"))},postprocessResults:function(e,t,n){var i=0,s=this;this.findHighlightableChoices().each2(function(e,t){if(d(s.id(t.data("select2-data")),s.opts.element.val()))return i=e,!1}),!1!==n&&(!0===t&&0<=i?this.highlight(i):this.highlight(0)),!0===t&&0<=(n=this.opts.minimumResultsForSearch)&&this.showSearch(function n(e){var i=0;return v.each(e,function(e,t){t.children?i+=n(t.children):i++}),i}(e.results)>=n)},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),v(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(e,t){var n,i;this.triggerSelect(e)&&(n=this.opts.element.val(),i=this.data(),this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),d(n,this.id(e))||this.triggerChange({added:e,removed:i}))},updateSelection:function(e){var t,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),n.empty(),(t=null!==e?this.opts.formatSelection(e,n,this.opts.escapeMarkup):t)!==b&&n.append(t),(t=this.opts.formatSelectionCssClass(e,n))!==b&&n.addClass(t),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var e,t=!1,n=null,i=this,s=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],1<arguments.length&&(t=arguments[1],this.opts.debug)&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.'),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=i.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),t&&this.triggerChange({added:n,removed:s});else if(e||0===e){if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){i.opts.element.val(e?i.id(e):""),i.updateSelection(e),i.setPlaceholder(),t&&i.triggerChange({added:e,removed:s})})}else this.clear(t)},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var t,n=!1;if(0===arguments.length)return t=(t=this.selection.data("select2-data"))==b?null:t;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),1<arguments.length&&(n=arguments[1]),e?(t=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:t})):this.clear(n)}}),n=P(e,{createContainer:function(){return v(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var l=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===l.element.get(0).tagName.toLowerCase()?l.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in l&&(l.initSelection=l.initSelection||function(e,o){var a=p(e.val(),l.separator,l.transformVal),r=[];l.query({matcher:function(e,t,n){var i=v.grep(a,function(e){return d(e,l.id(n))}).length;return i&&r.push(n),i},callback:v.isFunction(o)?function(){for(var e=[],t=0;t<a.length;t++)for(var n=a[t],i=0;i<r.length;i++){var s=r[i];if(d(n,l.id(s))){e.push(s),r.splice(i,1);break}}o(e)}:v.noop})}),l},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){v("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"searchContainer","selection")},initContainer:function(){var l,e=".select2-choices",t=(this.searchContainer=this.container.find(".select2-search-field"),this.selection=l=this.container.find(e),this);this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(e){t.search[0].focus(),t.selectChoice(v(this))}),this.search.attr("id","s2id_autogen"+y()),this.search.prev().text(v("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||!this.isInterfaceEnabled()||this.opened()||this.open()})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var t,n,i,s=l.find(".select2-search-choice-focus"),o=s.prev(".select2-search-choice:not(.select2-locked)"),a=s.next(".select2-search-choice:not(.select2-locked)"),r=(r=this.search,n=t=0,"selectionStart"in(r=v(r)[0])?(t=r.selectionStart,n=r.selectionEnd-t):"selection"in document&&(r.focus(),i=document.selection.createRange(),n=document.selection.createRange().text.length,i.moveStart("character",-r.value.length),t=i.text.length-n),{offset:t,length:n});if(!s.length||e.which!=c.LEFT&&e.which!=c.RIGHT&&e.which!=c.BACKSPACE&&e.which!=c.DELETE&&e.which!=c.ENTER)if((e.which!==c.BACKSPACE||1!=this.keydowns)&&e.which!=c.LEFT||0!=r.offset||r.length){if(this.selectChoice(null),this.opened())switch(e.which){case c.UP:case c.DOWN:return this.moveHighlight(e.which===c.UP?-1:1),void _(e);case c.ENTER:return this.selectHighlighted(),void _(e);case c.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case c.ESC:return this.cancel(e),void _(e)}if(e.which!==c.TAB&&!c.isControl(e)&&!c.isFunctionKey(e)&&e.which!==c.BACKSPACE&&e.which!==c.ESC){if(e.which===c.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==c.PAGE_UP&&e.which!==c.PAGE_DOWN||_(e),e.which===c.ENTER&&_(e)}}else this.selectChoice(l.find(".select2-search-choice:not(.select2-locked)").last()),_(e);else i=s,e.which==c.LEFT&&o.length?i=o:e.which==c.RIGHT?i=a.length?a:null:e.which===c.BACKSPACE?this.unselect(s.first())&&(this.search.width(10),i=o.length?o:a):e.which==c.DELETE?this.unselect(s.first())&&(this.search.width(10),i=a.length?a:null):e.which==c.ENTER&&(i=null),this.selectChoice(i),_(e),i&&i.length||this.open()}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(v.Event("select2-blur"))})),this.container.on("click",e,this.bind(function(e){!this.isInterfaceEnabled()||0<v(e.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault())})),this.container.on("focus",e,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(v.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){var t;""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),!this.select&&""===this.opts.element.val()||(t=this).opts.initSelection.call(null,this.opts.element,function(e){e!==b&&null!==e&&(t.updateSelection(e),t.close(),t.clearSearch())})},clearSearch:function(){var e=this.getPlaceholder(),t=this.getMaxSearchWidth();e!==b&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(0<t?t:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(v.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var t={},n=[],i=this;v(e).each(function(){i.id(this)in t||(t[i.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),i.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=b&&(this.search.val(e),0<e.length)&&this.open()},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),!this.opts.closeOnSelect&&0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var t=this.getVal(),n=this;v(e).each(function(){t.push(n.createChoice(this))}),this.setVal(t)},createChoice:function(e){var t=!e.locked,n=v("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),i=v("<li class='select2-search-choice select2-locked'><div></div></li>"),n=t?n:i,i=this.id(e),s=this.opts.formatSelection(e,n.find("div"),this.opts.escapeMarkup);return s!=b&&n.find("div").replaceWith(v("<div></div>").html(s)),(s=this.opts.formatSelectionCssClass(e,n.find("div")))!=b&&n.addClass(s),t&&n.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(this.unselect(v(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),_(e),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),n.data("select2-data",e),n.insertBefore(this.searchContainer),i},unselect:function(e){var t,n,i=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(t=e.data("select2-data")){var s=v.Event("select2-removing");if(s.val=this.id(t),s.choice=t,this.opts.element.trigger(s),s.isDefaultPrevented())return!1;for(;0<=(n=u(this.id(t),i));)i.splice(n,1),this.setVal(i),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}),!0}},postprocessResults:function(e,t,n){var i=this.getVal(),s=this.results.find(".select2-result"),o=this.results.find(".select2-result-with-children"),a=this;s.each2(function(e,t){0<=u(a.id(t.data("select2-data")),i)&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),o.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==n&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&0<!s.filter(".select2-result:not(.select2-selected)").length&&(e&&(e.more||0!==this.results.find(".select2-no-results").length)||I(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+A(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>"))},getMaxSearchWidth:function(){return this.selection.width()-f(this.search)},resizeSearch:function(){var e,t,n,i=f(this.search);t=this.search,s||(n=t[0].currentStyle||window.getComputedStyle(t[0],null),(s=v(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:n.fontSize,fontFamily:n.fontFamily,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,textTransform:n.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),v(document.body).append(s)),s.text(t.val()),n=s.width()+10,t=this.search.offset().left,(t=(t=(t=(e=this.selection.width())-(t-this.selection.offset().left)-i)<n?e-i:t)<40?e-i:t)<=0&&(t=n),this.search.width(Math.floor(t))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:p(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(e){var t,n;this.select?this.select.val(e):(t=[],n={},v(e).each(function(){this in n||(t.push(this),n[this]=0)}),this.opts.element.val(0===t.length?"":t.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),n=0;n<t.length;n++)for(var i=0;i<e.length;i++)if(d(this.opts.id(t[n]),this.opts.id(e[i]))){t.splice(n,1),n--,e.splice(i,1);break}return{added:t,removed:e}},val:function(e,n){var i,s=this;if(0===arguments.length)return this.getVal();if((i=this.data()).length||(i=[]),e||0===e){if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(i,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var t=v.map(e,s.id);s.setVal(t),s.updateSelection(e),s.clearSearch(),n&&s.triggerChange(s.buildChangeDetails(i,s.data()))})}this.clearSearch()}else this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),n&&this.triggerChange({added:this.data(),removed:i})},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],t=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(t.opts.id(v(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,t){var n,i,s=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return v(this).data("select2-data")}).get();i=this.data(),n=v.map(e=e||[],function(e){return s.opts.id(e)}),this.setVal(n),this.updateSelection(e),this.clearSearch(),t&&this.triggerChange(this.buildChangeDetails(i,this.data()))}}),v.fn.select2=function(){var e,t,n,i,s=Array.prototype.slice.call(arguments,0),o=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],a=["opened","isFocused","container","dropdown"],r=["val","data"],l={search:"externalSearch"};return this.each(function(){if(0===s.length||"object"==typeof s[0])(t=0===s.length?{}:v.extend({},s[0])).element=v(this),"select"===t.element.get(0).tagName.toLowerCase()?i=t.element.prop("multiple"):(i=t.multiple||!1,"tags"in t&&(t.multiple=i=!0)),(e=new(i?window.Select2.class.multi:window.Select2.class.single)).init(t);else{if("string"!=typeof s[0])throw"Invalid arguments to select2 plugin: "+s;if(u(s[0],o)<0)throw"Unknown method: "+s[0];if(n=b,(e=v(this).data("select2"))!==b)return t=s[0],n="container"===t?e.container:"dropdown"===t?e.dropdown:e[t=l[t]?l[t]:t].apply(e,s.slice(1)),!(0<=u(s[0],a)||0<=u(s[0],r)&&1==s.length)&&void 0}}),n===b?this:n},v.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,n,i){var s=[];return C(this.text(e),n.term,s,i),s.join("")},transformVal:function(e){return v.trim(e)},formatSelection:function(e,t,n){return e?n(this.text(e)):b},sortResults:function(e,t,n){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,t){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==b?null:e.id},text:function(e){return e&&this.data&&this.data.text?v.isFunction(this.data.text)?this.data.text(e):e[this.data.text]:e.text},matcher:function(e,t){return 0<=h(""+t).toUpperCase().indexOf(h(""+e).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(e,t,n,i){var s,o,a,r,l,c=e,h=!1;if(!i.createSearchChoice||!i.tokenSeparators||i.tokenSeparators.length<1)return b;for(;;){for(o=-1,a=0,r=i.tokenSeparators.length;a<r&&(l=i.tokenSeparators[a],!(0<=(o=e.indexOf(l))));a++);if(o<0)break;if(s=e.substring(0,o),e=e.substring(o+l.length),0<s.length&&(s=i.createSearchChoice.call(this,s,t))!==b&&null!==s&&i.id(s)!==b&&null!==i.id(s)){for(h=!1,a=0,r=t.length;a<r;a++)if(d(i.id(s),i.id(t[a]))){h=!0;break}h||n(s)}}return c!==e?e:void 0},escapeMarkup:x,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,t){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!(("ontouchstart"in window||0<navigator.msMaxTouchPoints)&&e.opts.minimumResultsForSearch<0)}},v.fn.select2.locales=[],v.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,n){return"Loading failed"},formatInputTooShort:function(e,t){t-=e.length;return"Please enter "+t+" or more character"+(1==t?"":"s")},formatInputTooLong:function(e,t){e=e.length-t;return"Please delete "+e+" character"+(1==e?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},v.extend(v.fn.select2.defaults,v.fn.select2.locales.en),v.fn.select2.ajaxDefaults={transport:v.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:T,local:k,tags:D},util:{debounce:S,markMatch:C,escapeMarkup:x,stripDiacritics:h},class:{abstract:e,single:t,multi:n}})}(jQuery),jQuery(document).ready(function(s){0<s(".toplevel_page_wpgmp_view_overview ul li a").find(".fc-fire-sale").length&&s(".toplevel_page_wpgmp_view_overview ul li a").find(".fc-fire-sale").parent("a").attr("target","_blank");let n=[];if(s(".wp-list-table").find(":checkbox").change(function(){let e=[],t=s(".wp-list-table").find(":checkbox").not("#cb-select-all-1");t.each(function(){s(this).is(":checked")&&e.push(this.value)}),n=e}),s(document).on("click","#doaction",function(e){if(e.preventDefault(),"delete"==s("#bulk-action-selector-top").val()){if(0!=n.length)return confirm(wpgmp_local.confirm_bulk_delete)&&s(".wpgmp_listing_form").submit(),!1;alert(wpgmp_local.no_record_for_bulk_delete)}}),"undefined"!=typeof google_customizer_fonts){var e=Object.keys(google_customizer_fonts).map(function(e){return google_customizer_fonts[e]});if(e&&0<e.length)for(var t in e){t=e[t];0<=(t=0<=t.indexOf(",")?(t=t.split(","))[0]:t).indexOf('"')&&(t=(t=t.replace('"',"")).replace('"',"")),WebFont.load({google:{families:[t]}})}}s(document).on("click",".bulk-delete-btn",function(e){e.preventDefault(),s(".wpgmp_listing_form").submit()}),s(".delete_fc_record").click(function(e){e.preventDefault();var e=jQuery(this),t=e.data("item-id"),n=e.data("page-slug"),e=e.data("record-type"),i=s("#_wpnonce").val();("location_id"==e?confirm(wpgmp_local.confirm_location_delete):"map_id"==e?confirm(wpgmp_local.confirm_map_delete):"group_map_id"==e?confirm(wpgmp_local.confirm_category_delete):confirm(wpgmp_local.confirm_record_delete))&&(window.location.href="?page="+n+"&doaction=delete&"+e+"="+t+"&_wpnonce="+i)});s(".wpgmp_check_backup").click(function(){var e;return 1==confirm(wpgmp_local.confirm_overwrite_db)&&(e=s(this).data("backup"),s(this).closest("form").find("input[name='row_id']").val(e),s(this).closest("form").find("input[name='operation']").val("import_backup"),s(this).closest("form").submit(),!0)}),s(".wp-list-table .copy_to_clipboard").click(function(){s(".fc-tooltip").removeClass("active");var e=s(this).data("clipboard-text"),t=s("<input>");s("body").append(t),t.val(e).select(),document.execCommand("copy"),t.remove(),s(this).closest(".fc-tooltip").addClass("active"),setTimeout(function(){s(".fc-tooltip").removeClass("active"),s("tr").removeClass("active")},2e3)}),s(".wpgmp_check_key").click(function(){s(".wpgmp_apitest").html("...");var e=s("input[name='wpgmp_api_key']").val();s.get("https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key="+e,function(e){"OK"==e.status?s(".wpgmp_apitest").html("<div class='fc-msg fc-success'>Congratulation, the API key you created is perfect. You can now <a class='create_location_link' target='_blank' href='https://www.wpmapspro.com/docs/create-a-location-using-simple-method/'>start</a> creating maps!</div>"):s(".wpgmp_apitest").html("<div class='fc-msg fc-danger'>"+e.error_message+"</div>")})}),s("select[name='map_id']").change(function(){s(this).closest("form").submit()}),s("select[name='filter_location']").change(function(e){e.preventDefault(),(0<s(this).val()?(s("tr[class^='filter_group_cat']").hide(),s(".filter_group_cat"+s(this).val())):s("tr[class^='filter_group_cat']")).show("slow")}),s(".wpgmp_search_input").keyup(function(){map_id=s(this).attr("rel"),s(".wpgmp_locations_listing[rel='"+map_id+"']").addClass("wpgmp_loading"),wpgmp_filter_locations(map_id,1)}),s(".wpgmp_toggle_container").click(function(){s(".wpgmp_toggle_main_container").toggle("slow"),"Hide"==s(this).text()?s(this).text("Show"):s(this).text("Hide")}),s(".wpgmp_mcurrent_loction").click(function(){wpgmp_get_current_location()}),s(".wpgmp-select-all").click(function(){s(".wpgmp-select-all").prop("checked")?s(this).closest("table").find(".wpgmp-location-checkbox").prop("checked",!0):s(this).closest("table").find(".wpgmp-location-checkbox").prop("checked",!1)}),s(".wpgmp-location-checkbox").click(function(){s(".wpgmp-location-checkbox").length==s(".wpgmp-location-checkbox:checked").length?s(".wpgmp-select-all").prop("checked",!0):s(".wpgmp-select-all").prop("checked",!1)});var i=s("#wpgmp_google_map_data_table").dataTable({lengthMenu:[[10,25,50,100,200,500,-1],[10,25,50,100,200,500,"All"]],order:[[1,"desc"]],aoColumns:[{sWidth:"5%",bSortable:!1},{sWidth:"40%"},{sWidth:"30%"},{sWidth:"20%"}]});s("#wpgmp_google_map_route_data_table").dataTable({lengthMenu:[[10,25,50,100,200,500,-1],[10,25,50,100,200,500,"All"]],aoColumns:[{sWidth:"10%"},{sWidth:"35%"},{sWidth:"35%"},{sWidth:"20%"}]});s('input[name="save_entity_data"]').click(function(){var e=i.$('input[type="checkbox"]:checked'),n=[];return 0<e.length&&(s.each(e,function(e,t){n.push(s(t).val())}),s('input[name="map_locations"]').val(n)),!0}),s('select[name="select_all"]').change(function(){"select_all"==s(this).val()?s('input[name="map_locations[]"]').attr("checked",!0):s('input[name="map_locations[]"]').attr("checked",!1)}),s('input[name="save_route_data"]').click(function(){var e=i.$('input[type="checkbox"]:checked'),n=[];return 0<e.length&&(s.each(e,function(e,t){n.push(s(t).val())}),s('input[name="route_way_points"]').val(n)),!0}),s(".switch_onoff").change(function(){var e=s(this).data("target");"radio"==s(this).attr("type")&&(s(e).closest(".form-group").hide(),e+="_"+s(this).val()),s(this).is(":checked")?s(e).closest(".form-group").show():(s(e).closest(".form-group").hide(),s(e).hasClass("switch_onoff")&&(s(e).attr("checked",!1),s(e).trigger("change")))}),s.each(s(".switch_onoff"),function(e,t){1==s(this).is(":checked")&&s(this).trigger("change")}),0<s(".wpgmp-overview .color").length&&s(".wpgmp-overview .color").wpColorPicker(),s(".buy_premium .hide_buy_notice").click(function(){s(".buy_premium").slideUp("slow");var e={action:"wpgmp_hide_buy_notice",ajaxnonce:wpgmp_local.ajaxnonce};jQuery.ajax({url:wpgmp_local.urlforajax,type:"post",dataType:"json",data:e,beforeSend:function(){},success:function(e){}})}),s(".sample_notice .hide_sample_notice").click(function(){s(".sample_notice").slideUp("slow");var e={action:"wpgmp_hide_sample_notice",ajaxnonce:wpgmp_local.ajaxnonce};jQuery.ajax({url:wpgmp_local.urlforajax,type:"post",dataType:"json",data:e,beforeSend:function(){},success:function(e){}})}),s(".wp-maps_page_wpgmp_manage_settings .copy_to_clipboard").click(function(){var e=s(this).parent(".tooltip").prev(".referrer_to_create").val();navigator.clipboard.writeText(e),s("span.tooltiptext").html(wpgmp_local.do_referrer_copy),s(this).find("span.tooltiptext").html(wpgmp_local.referrer_copied)})}),ClusterIcon.prototype.onAdd=function(){var s,o,a=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){o=s}),this.div_.addEventListener("mousedown",function(){o=!(s=!0)}),this.div_.addEventListener("click",function(e){var t,n,i;s=!1,o||(i=a.cluster_.getMarkerClusterer(),google.maps.event.trigger(i,"click",a.cluster_),google.maps.event.trigger(i,"clusterclick",a.cluster_),i.getZoomOnClick()&&(n=i.getMaxZoom(),t=a.cluster_.getBounds(),i.getMap().fitBounds(t),setTimeout(function(){i.getMap().fitBounds(t),null!==n&&i.getMap().getZoom()>n&&i.getMap().setZoom(n+1)},100)),e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}),this.div_.addEventListener("mouseover",function(){var e=a.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseover",a.cluster_)}),this.div_.addEventListener("mouseout",function(){var e=a.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"mouseout",a.cluster_)})},ClusterIcon.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},ClusterIcon.prototype.draw=function(){var e;this.visible_&&(e=this.getPosFromLatLng_(this.center_),this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px")},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){var e,t,n,i;this.div_&&(e="",n=this.backgroundPosition_.split(" "),t=parseInt(n[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(n[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng_(this.center_),this.div_.style.cssText=this.createCss(i),e="<img src='"+this.url_+"' style='position: absolute; top: "+n+"px; left: "+t+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_||(e+="clip: rect("+-1*n+"px, "+(-1*t+this.width_)+"px, "+(-1*n+this.height_)+"px, "+-1*t+"px);"),this.div_.innerHTML=(e+="'>")+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>",void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},ClusterIcon.prototype.useStyle=function(e){this.sums_=e;e=Math.max(0,e.index-1),e=Math.min(this.styles_.length-1,e),e=this.styles_[e];this.url_=e.url,this.height_=e.height,this.width_=e.width,this.anchorText_=e.anchorText||[0,0],this.anchorIcon_=e.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=e.textColor||"black",this.textSize_=e.textSize||11,this.textDecoration_=e.textDecoration||"none",this.fontWeight_=e.fontWeight||"bold",this.fontStyle_=e.fontStyle||"normal",this.fontFamily_=e.fontFamily||"Arial,sans-serif",this.backgroundPosition_=e.backgroundPosition||"0 0"},ClusterIcon.prototype.setCenter=function(e){this.center_=e},ClusterIcon.prototype.createCss=function(e){var t=[];return t.push("cursor: pointer;"),t.push("position: absolute; top: "+e.y+"px; left: "+e.x+"px;"),t.push("width: "+this.width_+"px; height: "+this.height_+"px;"),t.join("")},ClusterIcon.prototype.getPosFromLatLng_=function(e){e=this.getProjection().fromLatLngToDivPixel(e);return e.x-=this.anchorIcon_[1],e.y-=this.anchorIcon_[0],e.x=parseInt(e.x,10),e.y=parseInt(e.y,10),e},Cluster.prototype.getSize=function(){return this.markers_.length},Cluster.prototype.getMarkers=function(){return this.markers_},Cluster.prototype.getCenter=function(){return this.center_},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),t=this.getMarkers(),n=0;n<t.length;n++)e.extend(t[n].getPosition());return e},Cluster.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},Cluster.prototype.addMarker=function(e){var t,n,i,s;if(this.isMarkerAlreadyAdded_(e))return!1;if(this.center_?this.averageCenter_&&(s=this.markers_.length+1,i=(this.center_.lat()*(s-1)+e.getPosition().lat())/s,s=(this.center_.lng()*(s-1)+e.getPosition().lng())/s,this.center_=new google.maps.LatLng(i,s),this.calculateBounds_()):(this.center_=e.getPosition(),this.calculateBounds_()),e.isAdded=!0,this.markers_.push(e),n=this.markers_.length,null!==(i=this.markerClusterer_.getMaxZoom())&&this.map_.getZoom()>i)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(n===this.minClusterSize_)for(t=0;t<n;t++)this.markers_[t].setMap(null);else e.setMap(null);return this.updateIcon_(),!0},Cluster.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},Cluster.prototype.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},Cluster.prototype.updateIcon_=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();null!==t&&this.map_.getZoom()>t||e<this.minClusterSize_?this.clusterIcon_.hide():(t=this.markerClusterer_.getStyles().length,e=this.markerClusterer_.getCalculator()(this.markers_,t),this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(e),this.clusterIcon_.show())},Cluster.prototype.isMarkerAlreadyAdded_=function(e){var t;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(e);for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},MarkerClusterer.prototype.onAdd=function(){var e=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){e.resetViewport_(!1),this.getZoom()!==(this.get("minZoom")||0)&&this.getZoom()!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){e.redraw_()})]},MarkerClusterer.prototype.onRemove=function(){for(var e=0;e<this.markers_.length;e++)this.markers_[e].getMap()!==this.activeMap_&&this.markers_[e].setMap(this.activeMap_);for(e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();for(this.clusters_=[],e=0;e<this.listeners_.length;e++)google.maps.event.removeListener(this.listeners_[e]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){var e,t;if(!(0<this.styles_.length))for(e=0;e<this.imageSizes_.length;e++)t=this.imageSizes_[e],this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},MarkerClusterer.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0;n<e.length;n++)t.extend(e[n].getPosition());this.getMap().fitBounds(t)},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(e){this.gridSize_=e},MarkerClusterer.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinimumClusterSize=function(e){this.minClusterSize_=e},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.setMaxZoom=function(e){this.maxZoom_=e},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.setStyles=function(e){this.styles_=e},MarkerClusterer.prototype.getTitle=function(){return this.title_},MarkerClusterer.prototype.setTitle=function(e){this.title_=e},MarkerClusterer.prototype.getZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.setZoomOnClick=function(e){this.zoomOnClick_=e},MarkerClusterer.prototype.getAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.setAverageCenter=function(e){this.averageCenter_=e},MarkerClusterer.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},MarkerClusterer.prototype.setIgnoreHidden=function(e){this.ignoreHidden_=e},MarkerClusterer.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},MarkerClusterer.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons_=e},MarkerClusterer.prototype.getImageExtension=function(){return this.imageExtension_},MarkerClusterer.prototype.setImageExtension=function(e){this.imageExtension_=e},MarkerClusterer.prototype.getImagePath=function(){return this.imagePath_},MarkerClusterer.prototype.setImagePath=function(e){this.imagePath_=e},MarkerClusterer.prototype.getImageSizes=function(){return this.imageSizes_},MarkerClusterer.prototype.setImageSizes=function(e){this.imageSizes_=e},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.setCalculator=function(e){this.calculator_=e},MarkerClusterer.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},MarkerClusterer.prototype.setBatchSizeIE=function(e){this.batchSizeIE_=e},MarkerClusterer.prototype.getClusterClass=function(){return this.clusterClass_},MarkerClusterer.prototype.setClusterClass=function(e){this.clusterClass_=e},MarkerClusterer.prototype.getMarkers=function(){return this.markers_},MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length},MarkerClusterer.prototype.getClusters=function(){return this.clusters_},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw_()},MarkerClusterer.prototype.addMarkers=function(e,t){for(var n in e)e.hasOwnProperty(n)&&this.pushMarkerTo_(e[n]);t||this.redraw_()},MarkerClusterer.prototype.pushMarkerTo_=function(e){var t;e.getDraggable()&&(t=this,google.maps.event.addListener(e,"dragend",function(){t.ready_&&(this.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers_.push(e)},MarkerClusterer.prototype.removeMarker=function(e,t){e=this.removeMarker_(e);return!t&&e&&this.repaint(),e},MarkerClusterer.prototype.removeMarkers=function(e,t){for(var n,i=!1,s=0;s<e.length;s++)n=this.removeMarker_(e[s]),i=i||n;return!t&&i&&this.repaint(),i},MarkerClusterer.prototype.removeMarker_=function(e){var t,n=-1;if(this.markers_.indexOf)n=this.markers_.indexOf(e);else for(t=0;t<this.markers_.length;t++)if(e===this.markers_[t]){n=t;break}return-1!==n&&(e.setMap(null),this.markers_.splice(n,1),!0)},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},MarkerClusterer.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){for(var e=0;e<t.length;e++)t[e].remove()},0)},MarkerClusterer.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),i=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),n=t.fromLatLngToDivPixel(n),i=(n.x+=this.gridSize_,n.y-=this.gridSize_,t.fromLatLngToDivPixel(i)),n=(i.x-=this.gridSize_,i.y+=this.gridSize_,t.fromDivPixelToLatLng(n)),t=t.fromDivPixelToLatLng(i);return e.extend(n),e.extend(t),e},MarkerClusterer.prototype.redraw_=function(){this.createClusters_(0)},MarkerClusterer.prototype.resetViewport_=function(e){for(var t,n=0;n<this.clusters_.length;n++)this.clusters_[n].remove();for(this.clusters_=[],n=0;n<this.markers_.length;n++)(t=this.markers_[n]).isAdded=!1,e&&t.setMap(null)},MarkerClusterer.prototype.distanceBetweenPoints_=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,i=(t.lng()-e.lng())*Math.PI/180,n=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n)))},MarkerClusterer.prototype.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},MarkerClusterer.prototype.addToClosestCluster_=function(e){for(var t,n,i=4e4,s=null,o=0;o<this.clusters_.length;o++)(n=(t=this.clusters_[o]).getCenter())&&(n=this.distanceBetweenPoints_(n,e.getPosition()))<i&&(i=n,s=t);s&&s.isMarkerInClusterBounds(e)?s.addMarker(e):((t=new Cluster(this)).addMarker(e),this.clusters_.push(t))},MarkerClusterer.prototype.createClusters_=function(e){var t,n=this;if(this.ready_){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic)&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic);for(var i=3<this.getMap().getZoom()?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(i),o=Math.min(e+this.batchSize_,this.markers_.length),a=e;a<o;a++)!(t=this.markers_[a]).isAdded&&this.isMarkerInBounds_(t,s)&&(!this.ignoreHidden_||this.ignoreHidden_&&t.getVisible())&&this.addToClosestCluster_(t);o<this.markers_.length?this.timerRefStatic=setTimeout(function(){n.createClusters_(o)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},MarkerClusterer.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}.apply(e,[t])},MarkerClusterer.CALCULATOR=function(e,t){for(var n=0,e=e.length.toString(),i=e;0!==i;)i=parseInt(i/10,10),n++;return{text:e,index:n=Math.min(n,t),title:""}},MarkerClusterer.BATCH_SIZE=2e3,MarkerClusterer.BATCH_SIZE_IE=500,MarkerClusterer.IMAGE_PATH="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m",MarkerClusterer.IMAGE_EXTENSION="png",MarkerClusterer.IMAGE_SIZES=[53,56,66,78,90],function(Pt,Et,Lt){function e(M){function o(t){var n,i,s={};M.each(t,function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(i=e.replace(n[0],n[2].toLowerCase()),s[i]=e,"o"===n[1])&&o(t[e])}),t._hungarianMap=s}function b(t,n,i){var s;t._hungarianMap||o(t),M.each(n,function(e){(s=t._hungarianMap[e])===Lt||!i&&n[s]!==Lt||("o"===s.charAt(0)?(n[s]||(n[s]={}),M.extend(!0,n[s],n[e]),b(t[s],n[s],i)):n[s]=n[e])})}function j(e){var t=R.defaults.oLanguage,n=e.sZeroRecords;!e.sEmptyTable&&n&&"No data available in table"===t.sEmptyTable&&k(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&n&&"Loading..."===t.sLoadingRecords&&k(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&Ye(e)}function H(e){if(i(e,"ordering","bSort"),i(e,"orderMulti","bSortMulti"),i(e,"orderClasses","bSortClasses"),i(e,"orderCellsTop","bSortCellsTop"),i(e,"order","aaSorting"),i(e,"orderFixed","aaSortingFixed"),i(e,"paging","bPaginate"),i(e,"pagingType","sPaginationType"),i(e,"pageLength","iDisplayLength"),i(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t<n;t++)e[t]&&b(R.models.oSearch,e[t])}function N(e){i(e,"orderable","bSortable"),i(e,"orderData","aDataSort"),i(e,"orderSequence","asSorting"),i(e,"orderDataType","sortDataType");var t=e.aDataSort;t&&!M.isArray(t)&&(e.aDataSort=[t])}function z(e){var e=e.oBrowser,t=M("<div/>").css({position:"fixed",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(M("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(M('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),n=t.find(".test");e.bScrollOversize=100===n[0].offsetWidth,e.bScrollbarLeft=1!==Math.round(n.offset().left),e.bBounding=!!t[0].getBoundingClientRect().width,t.remove()}function n(e,t,n,i,s,o){var a,r=!1;for(n!==Lt&&(a=n,r=!0);i!==s;)e.hasOwnProperty(i)&&(a=r?t(a,e[i],i,e):e[i],r=!0,i+=o);return a}function W(e,t){var n=R.defaults.column,i=e.aoColumns.length,n=M.extend({},R.models.oColumn,n,{nTh:t||Et.createElement("th"),sTitle:n.sTitle||(t?t.innerHTML:""),aDataSort:n.aDataSort||[i],mData:n.mData||i,idx:i});e.aoColumns.push(n),(n=e.aoPreSearchCols)[i]=M.extend({},R.models.oSearch,n[i]),$(e,i,M(t).data())}function $(e,t,n){var i,t=e.aoColumns[t],s=e.oClasses,o=M(t.nTh),a=(!t.sWidthOrig&&(t.sWidthOrig=o.attr("width")||null,i=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(t.sWidthOrig=i[1]),n!==Lt&&null!==n&&(N(n),b(R.defaults.column,n),n.mDataProp===Lt||n.mData||(n.mData=n.mDataProp),n.sType&&(t._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),M.extend(t,n),k(t,n,"sWidth","sWidthOrig"),n.iDataSort!==Lt&&(t.aDataSort=[n.iDataSort]),k(t,n,"aDataSort")),t.mData),r=C(a),l=t.mRender?C(t.mRender):null,n=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};t._bAttrSrc=M.isPlainObject(a)&&(n(a.sort)||n(a.type)||n(a.filter)),t.fnGetData=function(e,t,n){var i=r(e,t,Lt,n);return l&&t?l(i,t,e,n):i},t.fnSetData=function(e,t,n){return f(a)(e,t,n)},"number"!=typeof a&&(e._rowReadObject=!0),e.oFeatures.bSort||(t.bSortable=!1,o.addClass(s.sSortableNone)),e=-1!==M.inArray("asc",t.asSorting),n=-1!==M.inArray("desc",t.asSorting),t.bSortable&&(e||n)?e&&!n?(t.sSortingClass=s.sSortableAsc,t.sSortingClassJUI=s.sSortJUIAscAllowed):!e&&n?(t.sSortingClass=s.sSortableDesc,t.sSortingClassJUI=s.sSortJUIDescAllowed):(t.sSortingClass=s.sSortable,t.sSortingClassJUI=s.sSortJUI):(t.sSortingClass=s.sSortableNone,t.sSortingClassJUI="")}function v(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;Pe(e);for(var n=0,i=t.length;n<i;n++)t[n].nTh.style.width=t[n].sWidth}""===(t=e.oScroll).sY&&""===t.sX||Me(e),I(e,null,"column-sizing",[e])}function B(e,t){e=S(e,"bVisible");return"number"==typeof e[t]?e[t]:null}function c(e,t){e=S(e,"bVisible");return-1!==(e=M.inArray(t,e))?e:null}function y(e){return S(e,"bVisible").length}function S(e,n){var i=[];return M.map(e.aoColumns,function(e,t){e[n]&&i.push(t)}),i}function U(e){for(var t,n,i,s,o,a,r,l=e.aoColumns,c=e.aoData,h=R.ext.type.detect,u=0,d=l.length;u<d;u++)if(r=[],!(o=l[u]).sType&&o._sManualType)o.sType=o._sManualType;else if(!o.sType){for(t=0,n=h.length;t<n;t++){for(i=0,s=c.length;i<s&&(r[i]===Lt&&(r[i]=w(e,i,u,"type")),(a=h[t](r[i],e))||t===h.length-1)&&"html"!==a;i++);if(a){o.sType=a;break}}o.sType||(o.sType="string")}}function V(e,t,n,i){var s,o,a,r=e.aoColumns;if(t)for(s=t.length-1;0<=s;s--)for(var l,c=(l=t[s]).targets!==Lt?l.targets:l.aTargets,h=0,u=(c=M.isArray(c)?c:[c]).length;h<u;h++)if("number"==typeof c[h]&&0<=c[h]){for(;r.length<=c[h];)W(e);i(c[h],l)}else if("number"==typeof c[h]&&c[h]<0)i(r.length+c[h],l);else if("string"==typeof c[h])for(o=0,a=r.length;o<a;o++)"_all"!=c[h]&&!M(r[o].nTh).hasClass(c[h])||i(o,l);if(n)for(s=0,e=n.length;s<e;s++)i(s,n[s])}function _(e,t,n,i){var s=e.aoData.length,o=M.extend(!0,{},R.models.oRow,{src:n?"dom":"data",idx:s});o._aData=t,e.aoData.push(o);for(var a=e.aoColumns,r=0,l=a.length;r<l;r++)n&&G(e,s,r,w(e,s,r)),a[r].sType=null;return e.aiDisplayMaster.push(s),(t=e.rowIdFn(t))!==Lt&&(e.aIds[t]=o),!n&&e.oFeatures.bDeferRender||Q(e,s,n,i),s}function q(n,e){var i;return(e=e instanceof M?e:M(e)).map(function(e,t){return i=K(n,t),_(n,i.data,t,i.cells)})}function w(e,t,n,i){var s=e.iDraw,o=e.aoColumns[n],a=e.aoData[t]._aData,r=o.sDefaultContent;if((n=o.fnGetData(a,i,{settings:e,row:t,col:n}))===Lt)return e.iDrawError!=s&&null===r&&(L(e,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+t,4),e.iDrawError=s),r;if(n!==a&&null!==n||null===r){if("function"==typeof n)return n.call(a)}else n=r;return null===n&&"display"==i?"":n}function G(e,t,n,i){e.aoColumns[n].fnSetData(e.aoData[t]._aData,i,{settings:e,row:t,col:n})}function X(e){return M.map(e.match(/(\\.|[^\.])+/g)||[""],function(e){return e.replace(/\\./g,".")})}function C(s){var o,r;return M.isPlainObject(s)?(o={},M.each(s,function(e,t){t&&(o[e]=C(t))}),function(e,t,n,i){var s=o[t]||o._;return s!==Lt?s(e,t,n,i):e}):null===s?function(e){return e}:"function"==typeof s?function(e,t,n,i){return s(e,t,n,i)}:"string"!=typeof s||-1===s.indexOf(".")&&-1===s.indexOf("[")&&-1===s.indexOf("(")?function(e){return e[s]}:(r=function(e,t,n){var i;if(""!==n)for(var s,o=0,a=(s=X(n)).length;o<a;o++){if(n=s[o].match(_t),i=s[o].match(m),n){for(s[o]=s[o].replace(_t,""),""!==s[o]&&(e=e[s[o]]),i=[],s.splice(0,o+1),s=s.join("."),o=0,a=e.length;o<a;o++)i.push(r(e[o],t,s));e=""===(e=n[0].substring(1,n[0].length-1))?i:i.join(e);break}if(i)s[o]=s[o].replace(m,""),e=e[s[o]]();else{if(null===e||e[s[o]]===Lt)return Lt;e=e[s[o]]}}return e},function(e,t){return r(e,t,s)})}function f(i){var l;return M.isPlainObject(i)?f(i._):null===i?function(){}:"function"==typeof i?function(e,t,n){i(e,"set",t,n)}:"string"!=typeof i||-1===i.indexOf(".")&&-1===i.indexOf("[")&&-1===i.indexOf("(")?function(e,t){e[i]=t}:(l=function(e,t,n){for(var i,s,o=(n=X(n))[n.length-1],a=0,r=n.length-1;a<r;a++){if(i=n[a].match(_t),s=n[a].match(m),i){for(n[a]=n[a].replace(_t,""),e[n[a]]=[],(o=n.slice()).splice(0,a+1),i=o.join("."),s=0,r=t.length;s<r;s++)l(o={},t[s],i),e[n[a]].push(o);return}s&&(n[a]=n[a].replace(m,""),e=e[n[a]](t)),null!==e[n[a]]&&e[n[a]]!==Lt||(e[n[a]]={}),e=e[n[a]]}o.match(m)?e[o.replace(m,"")](t):e[o.replace(_t,"")]=t},function(e,t){return l(e,t,i)})}function Z(e){return g(e.aoData,"_aData")}function J(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0}function Y(e,t,n){for(var i=-1,s=0,o=e.length;s<o;s++)e[s]==t?i=s:e[s]>t&&e[s]--;-1!=i&&n===Lt&&e.splice(i,1)}function s(n,i,e,t){var s,o=n.aoData[i],a=function(e,t){for(;e.childNodes.length;)e.removeChild(e.firstChild);e.innerHTML=w(n,i,t,"display")};if("dom"!==e&&(e&&"auto"!==e||"dom"!==o.src)){var r=o.anCells;if(r)if(t!==Lt)a(r[t],t);else for(e=0,s=r.length;e<s;e++)a(r[e],e)}else o._aData=K(n,o,t,t===Lt?Lt:o._aData).data;if(o._aSortData=null,o._aFilterData=null,a=n.aoColumns,t!==Lt)a[t].sType=null;else{for(e=0,s=a.length;e<s;e++)a[e].sType=null;ee(n,o)}}function K(e,t,n,i){function s(e,t){var n;"string"==typeof e&&-1!==(n=e.indexOf("@"))&&(n=e.substring(n+1),f(e)(i,t.getAttribute(n)))}function o(e){n!==Lt&&n!==u||(r=d[u],l=M.trim(e.innerHTML),r&&r._bAttrSrc?(f(r.mData._)(i,l),s(r.mData.sort,e),s(r.mData.type,e),s(r.mData.filter,e)):p?(r._setter||(r._setter=f(r.mData)),r._setter(i,l)):i[u]=l),u++}var a,r,l,c=[],h=t.firstChild,u=0,d=e.aoColumns,p=e._rowReadObject,i=i||p?{}:[];if(h)for(;h;)"TD"!=(a=h.nodeName.toUpperCase())&&"TH"!=a||(o(h),c.push(h)),h=h.nextSibling;else for(h=0,a=(c=t.anCells).length;h<a;h++)o(c[h]);return(t=t.getAttribute("id"))&&f(e.rowId)(i,t),{data:i,cells:c}}function Q(e,t,n,i){var s,o,a,r,l,c=e.aoData[t],h=c._aData,u=[];if(null===c.nTr){for(s=n||Et.createElement("tr"),c.nTr=s,c.anCells=u,s._DT_RowIndex=t,ee(e,c),r=0,l=e.aoColumns.length;r<l;r++)a=e.aoColumns[r],o=n?i[r]:Et.createElement(a.sCellType),u.push(o),n&&!a.mRender&&a.mData===r||(o.innerHTML=w(e,t,r,"display")),a.sClass&&(o.className+=" "+a.sClass),a.bVisible&&!n?s.appendChild(o):!a.bVisible&&n&&o.parentNode.removeChild(o),a.fnCreatedCell&&a.fnCreatedCell.call(e.oInstance,o,w(e,t,r),h,t,r);I(e,"aoRowCreatedCallback",null,[s,h,t])}c.nTr.setAttribute("role","row")}function ee(e,t){var n=t.nTr,i=t._aData;n&&((e=e.rowIdFn(i))&&(n.id=e),i.DT_RowClass&&(e=i.DT_RowClass.split(" "),t.__rowc=t.__rowc?St(t.__rowc.concat(e)):e,M(n).removeClass(t.__rowc.join(" ")).addClass(i.DT_RowClass)),i.DT_RowAttr&&M(n).attr(i.DT_RowAttr),i.DT_RowData)&&M(n).data(i.DT_RowData)}function te(e){var t,n,i,s,o,a=e.nTHead,r=e.nTFoot,l=0===M("th, td",a).length,c=e.oClasses,h=e.aoColumns;for(l&&(s=M("<tr/>").appendTo(a)),t=0,n=h.length;t<n;t++)o=h[t],i=M(o.nTh).addClass(o.sClass),l&&i.appendTo(s),e.oFeatures.bSort&&(i.addClass(o.sSortingClass),!1!==o.bSortable)&&(i.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),ze(e,o.nTh,t)),o.sTitle!=i[0].innerHTML&&i.html(o.sTitle),Ze(e,"header")(e,i,o,c);if(l&&x(e.aoHeader,a),M(a).find(">tr").attr("role","row"),M(a).find(">tr>th, >tr>td").addClass(c.sHeaderTH),M(r).find(">tr>th, >tr>td").addClass(c.sFooterTH),null!==r)for(n=(e=e.aoFooter[t=0]).length;t<n;t++)(o=h[t]).nTf=e[t].cell,o.sClass&&M(o.nTf).addClass(o.sClass)}function u(e,t,n){var i,s,o,a,r=[],l=[],c=e.aoColumns.length;if(t){for(n===Lt&&(n=!1),i=0,s=t.length;i<s;i++){for(r[i]=t[i].slice(),r[i].nTr=t[i].nTr,o=c-1;0<=o;o--)e.aoColumns[o].bVisible||n||r[i].splice(o,1);l.push([])}for(i=0,s=r.length;i<s;i++){if(e=r[i].nTr)for(;o=e.firstChild;)e.removeChild(o);for(o=0,t=r[i].length;o<t;o++)if(a=c=1,l[i][o]===Lt){for(e.appendChild(r[i][o].cell),l[i][o]=1;r[i+c]!==Lt&&r[i][o].cell==r[i+c][o].cell;)l[i+c][o]=1,c++;for(;r[i][o+a]!==Lt&&r[i][o].cell==r[i][o+a].cell;){for(n=0;n<c;n++)l[i+n][o+a]=1;a++}M(r[i][o].cell).attr("rowspan",c).attr("colspan",a)}}}}function h(e){var t=I(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==M.inArray(!1,t))p(e,!1);else{var t=[],n=0,i=e.asStripeClasses,s=i.length,o=e.oLanguage,a=e.iInitDisplayStart,r="ssp"==A(e),l=e.aiDisplay,a=(e.bDrawing=!0,a!==Lt&&-1!==a&&(e._iDisplayStart=!r&&a>=e.fnRecordsDisplay()?0:a,e.iInitDisplayStart=-1),e._iDisplayStart),c=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,p(e,!1);else if(r){if(!e.bDestroying&&!oe(e))return}else e.iDraw++;if(0!==l.length)for(o=r?e.aoData.length:c,r=r?0:a;r<o;r++){var h,u=l[r],d=e.aoData[u];null===d.nTr&&Q(e,u),u=d.nTr,0!==s&&(h=i[n%s],d._sRowStripe!=h)&&(M(u).removeClass(d._sRowStripe).addClass(h),d._sRowStripe=h),I(e,"aoRowCallback",null,[u,d._aData,n,r]),t.push(u),n++}else n=o.sZeroRecords,1==e.iDraw&&"ajax"==A(e)?n=o.sLoadingRecords:o.sEmptyTable&&0===e.fnRecordsTotal()&&(n=o.sEmptyTable),t[0]=M("<tr/>",{class:s?i[0]:""}).append(M("<td />",{valign:"top",colSpan:y(e),class:e.oClasses.sRowEmpty}).html(n))[0];I(e,"aoHeaderCallback","header",[M(e.nTHead).children("tr")[0],Z(e),a,c,l]),I(e,"aoFooterCallback","footer",[M(e.nTFoot).children("tr")[0],Z(e),a,c,l]),(i=M(e.nTBody)).children().detach(),i.append(M(t)),I(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function r(e,t){var n=e.oFeatures,i=n.bFilter;n.bSort&&je(e),i?he(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,h(e),e._drawHold=!1}function ne(e){var t=e.oClasses,n=M(e.nTable),n=M("<div/>").insertBefore(n),i=e.oFeatures,s=M("<div/>",{id:e.sTableId+"_wrapper",class:t.sWrapper+(e.nTFoot?"":" "+t.sNoFooter)});e.nHolding=n[0],e.nTableWrapper=s[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var o,a,r,l,c,h,u=e.sDom.split(""),d=0;d<u.length;d++){if(o=null,"<"==(a=u[d])){if(r=M("<div/>")[0],"'"==(l=u[d+1])||'"'==l){for(c="",h=2;u[d+h]!=l;)c+=u[d+h],h++;"H"==c?c=t.sJUIHeader:"F"==c&&(c=t.sJUIFooter),-1!=c.indexOf(".")?(l=c.split("."),r.id=l[0].substr(1,l[0].length-1),r.className=l[1]):"#"==c.charAt(0)?r.id=c.substr(1,c.length-1):r.className=c,d+=h}s.append(r),s=M(r)}else if(">"==a)s=s.parent();else if("l"==a&&i.bPaginate&&i.bLengthChange)o=Te(e);else if("f"==a&&i.bFilter)o=ce(e);else if("r"==a&&i.bProcessing)o=Ie(e);else if("t"==a)o=Ae(e);else if("i"==a&&i.bInfo)o=ye(e);else if("p"==a&&i.bPaginate)o=ke(e);else if(0!==R.ext.feature.length)for(h=0,l=(r=R.ext.feature).length;h<l;h++)if(a==r[h].cFeature){o=r[h].fnInit(e);break}o&&((r=e.aanFeatures)[a]||(r[a]=[]),r[a].push(o),s.append(o))}n.replaceWith(s),e.nHolding=null}function x(e,t){var n,i,s,o,a,r,l,c,h,u,d=M(t).children("tr");for(e.splice(0,e.length),s=0,r=d.length;s<r;s++)e.push([]);for(s=0,r=d.length;s<r;s++)for(i=(n=d[s]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase()){for(c=(c=+i.getAttribute("colspan"))&&0!=c&&1!=c?c:1,h=(h=+i.getAttribute("rowspan"))&&0!=h&&1!=h?h:1,o=0,a=e[s];a[o];)o++;for(l=o,u=1==c,a=0;a<c;a++)for(o=0;o<h;o++)e[s+o][l+a]={cell:i,unique:u},e[s+o].nTr=n}i=i.nextSibling}}function ie(e,t,n){var i=[];n||(n=e.aoHeader,t&&x(n=[],t));for(var t=0,s=n.length;t<s;t++)for(var o=0,a=n[t].length;o<a;o++)!n[t][o].unique||i[o]&&e.bSortCellsTop||(i[o]=n[t][o].cell);return i}function se(i,e,t){var s,o;I(i,"aoServerParams","serverParams",[e]),e&&M.isArray(e)&&(s={},o=/(.*?)\[\]$/,M.each(e,function(e,t){var n=t.name.match(o);n?(n=n[0],s[n]||(s[n]=[]),s[n].push(t.value)):s[t.name]=t.value}),e=s);function n(e){I(i,null,"xhr",[i,e,i.jqXHR]),t(e)}var a,r,l=i.ajax,c=i.oInstance;M.isPlainObject(l)&&l.data&&(a=l.data,r=M.isFunction(a)?a(e,i):a,e=M.isFunction(a)&&r?r:M.extend(!0,e,r),delete l.data),r={data:e,success:function(e){var t=e.error||e.sError;t&&L(i,0,t),i.json=e,n(e)},dataType:"json",cache:!1,type:i.sServerMethod,error:function(e,t){var n=I(i,null,"xhr",[i,null,i.jqXHR]);-1===M.inArray(!0,n)&&("parsererror"==t?L(i,0,"Invalid JSON response",1):4===e.readyState&&L(i,0,"Ajax error",7)),p(i,!1)}},i.oAjaxData=e,I(i,null,"preXhr",[i,e]),i.fnServerData?i.fnServerData.call(c,i.sAjaxSource,M.map(e,function(e,t){return{name:t,value:e}}),n,i):i.sAjaxSource||"string"==typeof l?i.jqXHR=M.ajax(M.extend(r,{url:l||i.sAjaxSource})):M.isFunction(l)?i.jqXHR=l.call(c,e,n,i):(i.jqXHR=M.ajax(M.extend(r,l)),l.data=a)}function oe(t){return!t.bAjaxDataGet||(t.iDraw++,p(t,!0),se(t,ae(t),function(e){re(t,e)}),!1)}function ae(e){function n(e,t){c.push({name:e,value:t})}var t,i,s=e.aoColumns,o=s.length,a=e.oFeatures,r=e.oPreviousSearch,l=e.aoPreSearchCols,c=[],h=T(e),u=e._iDisplayStart,d=!1!==a.bPaginate?e._iDisplayLength:-1,p=(n("sEcho",e.iDraw),n("iColumns",o),n("sColumns",g(s,"sName").join(",")),n("iDisplayStart",u),n("iDisplayLength",d),{draw:e.iDraw,columns:[],order:[],start:u,length:d,search:{value:r.sSearch,regex:r.bRegex}});for(u=0;u<o;u++)t=s[u],i=l[u],d="function"==typeof t.mData?"function":t.mData,p.columns.push({data:d,name:t.sName,searchable:t.bSearchable,orderable:t.bSortable,search:{value:i.sSearch,regex:i.bRegex}}),n("mDataProp_"+u,d),a.bFilter&&(n("sSearch_"+u,i.sSearch),n("bRegex_"+u,i.bRegex),n("bSearchable_"+u,t.bSearchable)),a.bSort&&n("bSortable_"+u,t.bSortable);return a.bFilter&&(n("sSearch",r.sSearch),n("bRegex",r.bRegex)),a.bSort&&(M.each(h,function(e,t){p.order.push({column:t.col,dir:t.dir}),n("iSortCol_"+e,t.col),n("sSortDir_"+e,t.dir)}),n("iSortingCols",h.length)),null===(s=R.ext.legacy.ajax)?e.sAjaxSource?c:p:s?c:p}function re(e,t){var n=le(e,t),i=t.sEcho!==Lt?t.sEcho:t.draw,s=t.iTotalRecords!==Lt?t.iTotalRecords:t.recordsTotal,o=t.iTotalDisplayRecords!==Lt?t.iTotalDisplayRecords:t.recordsFiltered;if(i){if(+i<e.iDraw)return;e.iDraw=+i}for(J(e),e._iRecordsTotal=parseInt(s,10),e._iRecordsDisplay=parseInt(o,10),i=0,s=n.length;i<s;i++)_(e,n[i]);e.aiDisplay=e.aiDisplayMaster.slice(),e.bAjaxDataGet=!1,h(e),e._bInitComplete||Ce(e,t),e.bAjaxDataGet=!0,p(e,!1)}function le(e,t){e=M.isPlainObject(e.ajax)&&e.ajax.dataSrc!==Lt?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===e?t.aaData||t[e]:""!==e?C(e)(t):t}function ce(n){var e=n.oClasses,t=n.sTableId,i=n.oLanguage,s=n.oPreviousSearch,o=n.aanFeatures,a='<input type="search" class="'+e.sFilterInput+'"/>',r=(r=i.sSearch).match(/_INPUT_/)?r.replace("_INPUT_",a):r+a,e=M("<div/>",{id:o.f?null:t+"_filter",class:e.sFilter}).append(M("<label/>").append(r)),o=function(){var e=this.value||"";e!=s.sSearch&&(he(n,{sSearch:e,bRegex:s.bRegex,bSmart:s.bSmart,bCaseInsensitive:s.bCaseInsensitive}),n._iDisplayStart=0,h(n))},a=null!==n.searchDelay?n.searchDelay:"ssp"===A(n)?400:0,l=M("input",e).val(s.sSearch).attr("placeholder",i.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",a?Ee(o,a):o).bind("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",t);return M(n.nTable).on("search.dt.DT",function(e,t){if(n===t)try{l[0]!==Et.activeElement&&l.val(s.sSearch)}catch(e){}}),e[0]}function he(e,t,n){function i(e){s.sSearch=e.sSearch,s.bRegex=e.bRegex,s.bSmart=e.bSmart,s.bCaseInsensitive=e.bCaseInsensitive}var s=e.oPreviousSearch,o=e.aoPreSearchCols;if(U(e),"ssp"!=A(e)){for(pe(e,t.sSearch,n,t.bEscapeRegex!==Lt?!t.bEscapeRegex:t.bRegex,t.bSmart,t.bCaseInsensitive),i(t),t=0;t<o.length;t++)de(e,o[t].sSearch,t,o[t].bEscapeRegex!==Lt?!o[t].bEscapeRegex:o[t].bRegex,o[t].bSmart,o[t].bCaseInsensitive);ue(e)}else i(t);e.bFiltered=!0,I(e,null,"search",[e])}function ue(e){for(var t,n,i=R.ext.search,s=e.aiDisplay,o=0,a=i.length;o<a;o++){for(var r=[],l=0,c=s.length;l<c;l++)n=s[l],t=e.aoData[n],i[o](e,t._aFilterData,n,t._aData,l)&&r.push(n);s.length=0,s.push.apply(s,r)}}function de(e,t,n,i,s,o){if(""!==t)for(var a=e.aiDisplay,i=fe(t,i,s,o),s=a.length-1;0<=s;s--)t=e.aoData[a[s]]._aFilterData[n],i.test(t)||a.splice(s,1)}function pe(e,t,n,i,s,o){var a,i=fe(t,i,s,o),s=e.oPreviousSearch.sSearch,o=e.aiDisplayMaster;if(0!==R.ext.search.length&&(n=!0),a=me(e),t.length<=0)e.aiDisplay=o.slice();else for((a||n||s.length>t.length||0!==t.indexOf(s)||e.bSorted)&&(e.aiDisplay=o.slice()),n=(t=e.aiDisplay).length-1;0<=n;n--)i.test(e.aoData[t[n]]._sFilterRow)||t.splice(n,1)}function fe(e,t,n,i){return e=t?e:ge(e),n&&(e="^(?=.*?"+M.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(e){var t;return(e='"'===e.charAt(0)?(t=e.match(/^"(.*)"$/))?t[1]:e:e).replace('"',"")}).join(")(?=.*?")+").*$"),RegExp(e,i?"i":"")}function ge(e){return e.replace(vt,"\\$1")}function me(e){for(var t,n,i,s,o,a=e.aoColumns,r=R.ext.type.search,l=!1,c=0,h=e.aoData.length;c<h;c++)if(!(o=e.aoData[c])._aFilterData){for(i=[],t=0,n=a.length;t<n;t++)(l=a[t]).bSearchable?(s=w(e,c,t,"filter"),"string"!=typeof(s=null===(s=r[l.sType]?r[l.sType](s):s)?"":s)&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(wt.innerHTML=s,s=Ct?wt.textContent:wt.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),i.push(s);o._aFilterData=i,o._sFilterRow=i.join("  "),l=!0}return l}function ve(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function be(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function ye(e){var t=e.sTableId,n=e.aanFeatures.i,i=M("<div/>",{class:e.oClasses.sInfo,id:n?null:t+"_info"});return n||(e.aoDrawCallback.push({fn:Se,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),M(e.nTable).attr("aria-describedby",t+"_info")),i[0]}function Se(e){var t,n,i,s,o,a,r=e.aanFeatures.i;0!==r.length&&(t=e.oLanguage,n=e._iDisplayStart+1,i=e.fnDisplayEnd(),s=e.fnRecordsTotal(),a=(o=e.fnRecordsDisplay())?t.sInfo:t.sInfoEmpty,o!==s&&(a+=" "+t.sInfoFiltered),a=_e(e,a+=t.sInfoPostFix),null!==(t=t.fnInfoCallback)&&(a=t.call(e.oInstance,e,n,i,s,o,a)),M(r).html(a))}function _e(e,t){var n=e.fnFormatNumber,i=e._iDisplayStart+1,s=e._iDisplayLength,o=e.fnRecordsDisplay(),a=-1===s;return t.replace(/_START_/g,n.call(e,i)).replace(/_END_/g,n.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,n.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(e,o)).replace(/_PAGE_/g,n.call(e,a?1:Math.ceil(i/s))).replace(/_PAGES_/g,n.call(e,a?1:Math.ceil(o/s)))}function we(n){var i,e,s=n.iInitDisplayStart,t=n.aoColumns,o=n.oFeatures,a=n.bDeferLoading;if(n.bInitialised){for(ne(n),te(n),u(n,n.aoHeader),u(n,n.aoFooter),p(n,!0),o.bAutoWidth&&Pe(n),i=0,o=t.length;i<o;i++)(e=t[i]).sWidth&&(e.nTh.style.width=E(e.sWidth));I(n,null,"preInit",[n]),r(n),"ssp"==(t=A(n))&&!a||("ajax"==t?se(n,[],function(e){var t=le(n,e);for(i=0;i<t.length;i++)_(n,t[i]);n.iInitDisplayStart=s,r(n),p(n,!1),Ce(n,e)}):(p(n,!1),Ce(n)))}else setTimeout(function(){we(n)},200)}function Ce(e,t){e._bInitComplete=!0,(t||e.oInit.aaData)&&v(e),I(e,"aoInitComplete","init",[e,t])}function xe(e,t){t=parseInt(t,10);e._iDisplayLength=t,Xe(e),I(e,null,"length",[e,t])}function Te(i){for(var e=i.oClasses,t=i.sTableId,n=i.aLengthMenu,s=(o=M.isArray(n[0]))?n[0]:n,n=o?n[1]:n,o=M("<select/>",{name:t+"_length","aria-controls":t,class:e.sLengthSelect}),a=0,r=s.length;a<r;a++)o[0][a]=new Option(n[a],s[a]);var l=M("<div><label/></div>").addClass(e.sLength);return i.aanFeatures.l||(l[0].id=t+"_length"),l.children().append(i.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML)),M("select",l).val(i._iDisplayLength).bind("change.DT",function(){xe(i,M(this).val()),h(i)}),M(i.nTable).bind("length.dt.DT",function(e,t,n){i===t&&M("select",l).val(n)}),l[0]}function ke(e){function a(e){h(e)}var t=e.sPaginationType,r=R.ext.pager[t],l="function"==typeof r,t=M("<div/>").addClass(e.oClasses.sPaging+t)[0],c=e.aanFeatures;return l||r.fnInit(e,t,a),c.p||(t.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(e){if(l)for(var t=e._iDisplayStart,n=e._iDisplayLength,i=e.fnRecordsDisplay(),t=(s=-1===n)?0:Math.ceil(t/n),n=s?1:Math.ceil(i/n),i=r(t,n),s=0,o=c.p.length;s<o;s++)Ze(e,"pageButton")(e,c.p[s],s,i,t,n);else r.fnUpdate(e,a)},sName:"pagination"})),t}function De(e,t,n){var i=e._iDisplayStart,s=e._iDisplayLength,o=e.fnRecordsDisplay();return 0===o||-1===s?i=0:"number"==typeof t?o<(i=t*s)&&(i=0):"first"==t?i=0:"previous"==t?(i=0<=s?i-s:0)<0&&(i=0):"next"==t?i+s<o&&(i+=s):"last"==t?i=Math.floor((o-1)/s)*s:L(e,0,"Unknown paging action: "+t,5),t=e._iDisplayStart!==i,e._iDisplayStart=i,t&&(I(e,null,"page",[e]),n)&&h(e),t}function Ie(e){return M("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function p(e,t){e.oFeatures.bProcessing&&M(e.aanFeatures.r).css("display",t?"block":"none"),I(e,null,"processing",[e,t])}function Ae(e){var t=M(e.nTable),n=(t.attr("role","grid"),e.oScroll);if(""===n.sX&&""===n.sY)return e.nTable;var i=n.sX,s=n.sY,o=e.oClasses,a=t.children("caption"),r=a.length?a[0]._captionSide:null,l=M(t[0].cloneNode(!1)),c=M(t[0].cloneNode(!1)),h=t.children("tfoot");n.sX&&"100%"===t.attr("width")&&t.removeAttr("width"),h.length||(h=null),l=M("<div/>",{class:o.sScrollWrapper}).append(M("<div/>",{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?i?E(i):null:"100%"}).append(M("<div/>",{class:o.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===r?a:null).append(t.children("thead"))))).append(M("<div/>",{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:i?E(i):null}).append(t)),h&&l.append(M("<div/>",{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:i?i?E(i):null:"100%"}).append(M("<div/>",{class:o.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===r?a:null).append(t.children("tfoot")))));var u=(t=l.children())[0],o=t[1],d=h?t[2]:null;return i&&M(o).on("scroll.DT",function(){var e=this.scrollLeft;u.scrollLeft=e,h&&(d.scrollLeft=e)}),M(o).css(s&&n.bCollapse?"max-height":"height",s),e.nScrollHead=u,e.nScrollBody=o,e.nScrollFoot=d,e.aoDrawCallback.push({fn:Me,sName:"scrolling"}),l[0]}function Me(n){function e(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0}var t,i,s,o,a,r=(h=n.oScroll).sX,l=h.sXInner,c=h.sY,h=h.iBarWidth,u=M(n.nScrollHead),d=u[0].style,p=(g=u.children("div"))[0].style,f=g.children("table"),g=n.nScrollBody,m=M(g),v=g.style,b=M(n.nScrollFoot).children("div"),y=b.children("table"),S=M(n.nTHead),_=M(n.nTable),w=_[0],C=w.style,x=n.nTFoot?M(n.nTFoot):null,T=n.oBrowser,k=T.bScrollOversize,D=[],I=[],A=[];_.children("thead, tfoot").remove(),o=S.clone().prependTo(_),S=S.find("tr"),i=o.find("tr"),o.find("th, td").removeAttr("tabindex"),x&&(s=x.clone().prependTo(_),t=x.find("tr"),s=s.find("tr")),r||(v.width="100%",u[0].style.width="100%"),M.each(ie(n,o),function(e,t){a=B(n,e),t.style.width=n.aoColumns[a].sWidth}),x&&P(function(e){e.style.width=""},s),u=_.outerWidth(),""===r?(C.width="100%",k&&(_.find("tbody").height()>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=E(_.outerWidth()-h)),u=_.outerWidth()):""!==l&&(C.width=E(l),u=_.outerWidth()),P(e,i),P(function(e){A.push(e.innerHTML),D.push(E(M(e).css("width")))},i),P(function(e,t){e.style.width=D[t]},S),M(i).height(0),x&&(P(e,s),P(function(e){I.push(E(M(e).css("width")))},s),P(function(e,t){e.style.width=I[t]},t),M(s).height(0)),P(function(e,t){e.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+A[t]+"</div>",e.style.width=D[t]},i),x&&P(function(e,t){e.innerHTML="",e.style.width=I[t]},s),_.outerWidth()<u?(t=g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y")?u+h:u,k&&(g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=E(t-h)),""!==r&&""===l||L(n,1,"Possible column misalignment",6)):t="100%",v.width=E(t),d.width=E(t),x&&(n.nScrollFoot.style.width=E(t)),!c&&k&&(v.height=E(w.offsetHeight+h)),r=_.outerWidth(),f[0].style.width=E(r),p.width=E(r),l=_.height()>g.clientHeight||"scroll"==m.css("overflow-y"),p[c="padding"+(T.bScrollbarLeft?"Left":"Right")]=l?h+"px":"0px",x&&(y[0].style.width=E(r),b[0].style.width=E(r),b[0].style[c]=l?h+"px":"0px"),m.scroll(),!n.bSorted&&!n.bFiltered||n._drawHold||(g.scrollTop=0)}function P(e,t,n){for(var i,s,o=0,a=0,r=t.length;a<r;){for(i=t[a].firstChild,s=n?n[a].firstChild:null;i;)1===i.nodeType&&(n?e(i,s,o):e(i,o),o++),i=i.nextSibling,s=n?s.nextSibling:null;a++}}function Pe(e){var t,n,i=e.nTable,s=e.aoColumns,o=(g=e.oScroll).sY,a=g.sX,r=g.sXInner,l=s.length,c=S(e,"bVisible"),h=M("th",e.nTHead),u=i.getAttribute("width"),d=i.parentNode,p=!1,f=e.oBrowser,g=f.bScrollOversize;for((t=i.style.width)&&-1!==t.indexOf("%")&&(u=t),t=0;t<c.length;t++)null!==(n=s[c[t]]).sWidth&&(n.sWidth=Le(n.sWidthOrig,d),p=!0);if(g||!p&&!a&&!o&&l==y(e)&&l==h.length)for(t=0;t<l;t++)s[t].sWidth=E(h.eq(t).width());else{(l=M(i).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var m=M("<tr/>").appendTo(l.find("tbody"));for(l.find("thead, tfoot").remove(),l.append(M(e.nTHead).clone()).append(M(e.nTFoot).clone()),l.find("tfoot th, tfoot td").css("width",""),h=ie(e,l.find("thead")[0]),t=0;t<c.length;t++)n=s[c[t]],h[t].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?E(n.sWidthOrig):"";if(e.aoData.length)for(t=0;t<c.length;t++)n=s[p=c[t]],M(Oe(e,p)).clone(!1).append(n.sContentPadding).appendTo(m);if(p=M("<div/>").css(a||o?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(l).appendTo(d),a&&r?l.width(r):a?(l.css("width","auto"),l.width()<d.clientWidth&&l.width(d.clientWidth)):o?l.width(d.clientWidth):u&&l.width(u),a){for(t=r=0;t<c.length;t++)n=s[c[t]],o=f.bBounding?h[t].getBoundingClientRect().width:M(h[t]).outerWidth(),r+=null===n.sWidthOrig?o:parseInt(n.sWidth,10)+o-M(h[t]).width();l.width(E(r)),i.style.width=E(r)}for(t=0;t<c.length;t++)n=s[c[t]],(f=M(h[t]).width())&&(n.sWidth=E(f));i.style.width=E(l.css("width")),p.remove()}u&&(i.style.width=E(u)),!u&&!a||e._reszEvt||(i=function(){M(Pt).bind("resize.DT-"+e.sInstance,Ee(function(){v(e)}))},g?setTimeout(i,1e3):i(),e._reszEvt=!0)}function Ee(i,e){var s,o,a=e!==Lt?e:200;return function(){var e=this,t=+new Date,n=arguments;s&&t<s+a?(clearTimeout(o),o=setTimeout(function(){s=Lt,i.apply(e,n)},a)):(s=t,i.apply(e,n))}}function Le(e,t){return e?(t=(e=M("<div/>").css("width",E(e)).appendTo(t||Et.body))[0].offsetWidth,e.remove(),t):0}function Oe(e,t){var n,i=Re(e,t);return i<0?null:(n=e.aoData[i]).nTr?n.anCells[t]:M("<td/>").html(w(e,i,t,"display"))[0]}function Re(e,t){for(var n,i=-1,s=-1,o=0,a=e.aoData.length;o<a;o++)(n=(n=w(e,o,t,"display")+"").replace(xt,"")).length>i&&(i=n.length,s=o);return s}function E(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function Fe(){var e,t=R.__scrollbarWidth;return t===Lt&&(t=(e=M("<p/>").css({position:"absolute",top:0,left:0,width:"100%",height:150,padding:0,overflow:"scroll",visibility:"hidden"}).appendTo("body"))[0].offsetWidth-e[0].clientWidth,R.__scrollbarWidth=t,e.remove()),t}function T(e){var t,n,i,s=[],o=e.aoColumns,a=e.aaSortingFixed,r=M.isPlainObject(a),l=[],c=function(e){e.length&&!M.isArray(e[0])?l.push(e):l.push.apply(l,e)};for(M.isArray(a)&&c(a),r&&a.pre&&c(a.pre),c(e.aaSorting),r&&a.post&&c(a.post),e=0;e<l.length;e++)for(r=(c=o[i=l[e][a=0]].aDataSort).length;a<r;a++)n=o[t=c[a]].sType||"string",l[e]._idx===Lt&&(l[e]._idx=M.inArray(l[e][1],o[t].asSorting)),s.push({src:i,col:t,dir:l[e][1],index:l[e]._idx,type:n,formatter:R.ext.type.order[n+"-pre"]});return s}function je(e){var t,n,i,c,h=[],u=R.ext.type.order,d=e.aoData,s=0,o=e.aiDisplayMaster;for(U(e),t=0,n=(c=T(e)).length;t<n;t++)(i=c[t]).formatter&&s++,$e(e,i.col);if("ssp"!=A(e)&&0!==c.length){for(t=0,n=o.length;t<n;t++)h[o[t]]=t;s===c.length?o.sort(function(e,t){for(var n,i,s,o=c.length,a=d[e]._aSortData,r=d[t]._aSortData,l=0;l<o;l++)if(0!==(n=(n=a[(s=c[l]).col])<(i=r[s.col])?-1:i<n?1:0))return"asc"===s.dir?n:-n;return(n=h[e])<(i=h[t])?-1:i<n?1:0}):o.sort(function(e,t){for(var n,i,s,o=c.length,a=d[e]._aSortData,r=d[t]._aSortData,l=0;l<o;l++)if(n=a[(s=c[l]).col],i=r[s.col],0!==(n=(s=u[s.type+"-"+s.dir]||u["string-"+s.dir])(n,i)))return n;return(n=h[e])<(i=h[t])?-1:i<n?1:0})}e.bSorted=!0}function He(e){for(var t=e.aoColumns,n=T(e),e=e.oLanguage.oAria,i=0,s=t.length;i<s;i++){var o,a=(o=t[i]).asSorting,r=o.sTitle.replace(/<.*?>/g,""),l=o.nTh;l.removeAttribute("aria-sort"),o.bSortable&&(r+="asc"===(o=0<n.length&&n[0].col==i&&(l.setAttribute("aria-sort","asc"==n[0].dir?"ascending":"descending"),a[n[0].index+1])||a[0])?e.sSortAscending:e.sSortDescending),l.setAttribute("aria-label",r)}}function Ne(e,t,n,i){function s(e,t){var n=e._idx;return(n=n===Lt?M.inArray(e[1],a):n)+1<a.length?n+1:t?null:0}var o=e.aaSorting,a=e.aoColumns[t].asSorting;"number"==typeof o[0]&&(o=e.aaSorting=[o]),n&&e.oFeatures.bSortMulti?-1!==(n=M.inArray(t,g(o,"0")))?null===(t=null===(t=s(o[n],!0))&&1===o.length?0:t)?o.splice(n,1):(o[n][1]=a[t],o[n]._idx=t):(o.push([t,a[0],0]),o[o.length-1]._idx=0):o.length&&o[0][0]==t?(t=s(o[0]),o.length=1,o[0][1]=a[t],o[0]._idx=t):(o.length=0,o.push([t,a[0]]),o[0]._idx=0),r(e),"function"==typeof i&&i(e)}function ze(t,e,n,i){var s=t.aoColumns[n];Ge(e,{},function(e){!1!==s.bSortable&&(t.oFeatures.bProcessing?(p(t,!0),setTimeout(function(){Ne(t,n,e.shiftKey,i),"ssp"!==A(t)&&p(t,!1)},0)):Ne(t,n,e.shiftKey,i))})}function We(e){var t,n,i=e.aLastSort,s=e.oClasses.sSortColumn,o=T(e),a=e.oFeatures;if(a.bSort&&a.bSortClasses){for(a=0,t=i.length;a<t;a++)n=i[a].src,M(g(e.aoData,"anCells",n)).removeClass(s+(a<2?a+1:3));for(a=0,t=o.length;a<t;a++)n=o[a].src,M(g(e.aoData,"anCells",n)).addClass(s+(a<2?a+1:3))}e.aLastSort=o}function $e(e,t){var n,i=e.aoColumns[t],s=R.ext.order[i.sSortDataType];s&&(n=s.call(e.oInstance,e,t,c(e,t)));for(var o,a=R.ext.type.order[i.sType+"-pre"],r=0,l=e.aoData.length;r<l;r++)(i=e.aoData[r])._aSortData||(i._aSortData=[]),i._aSortData[t]&&!s||(o=s?n[r]:w(e,r,t,"sort"),i._aSortData[t]=a?a(o):o)}function Be(n){var e;n.oFeatures.bStateSave&&!n.bDestroying&&(e={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:M.extend(!0,[],n.aaSorting),search:ve(n.oPreviousSearch),columns:M.map(n.aoColumns,function(e,t){return{visible:e.bVisible,search:ve(n.aoPreSearchCols[t])}})},I(n,"aoStateSaveParams","stateSaveParams",[n,e]),n.oSavedState=e,n.fnStateSaveCallback.call(n.oInstance,n,e))}function Ue(n){var e,t,i=n.aoColumns;if(n.oFeatures.bStateSave){var s=n.fnStateLoadCallback.call(n.oInstance,n);if(s&&s.time&&(e=I(n,"aoStateLoadParams","stateLoadParams",[n,s]),-1===M.inArray(!1,e))&&!(0<(e=n.iStateDuration)&&s.time<+new Date-1e3*e)&&i.length===s.columns.length){for(n.oLoadedState=M.extend(!0,{},s),s.start!==Lt&&(n._iDisplayStart=s.start,n.iInitDisplayStart=s.start),s.length!==Lt&&(n._iDisplayLength=s.length),s.order!==Lt&&(n.aaSorting=[],M.each(s.order,function(e,t){n.aaSorting.push(t[0]>=i.length?[0,t[1]]:t)})),s.search!==Lt&&M.extend(n.oPreviousSearch,be(s.search)),e=0,t=s.columns.length;e<t;e++){var o=s.columns[e];o.visible!==Lt&&(i[e].bVisible=o.visible),o.search!==Lt&&M.extend(n.aoPreSearchCols[e],be(o.search))}I(n,"aoStateLoaded","stateLoaded",[n,s])}}}function Ve(e){var t=R.settings;return-1!==(e=M.inArray(e,g(t,"nTable")))?t[e]:null}function L(e,t,n,i){if(n="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+n,i&&(n+=". For more information about this error, please see http://datatables.net/tn/"+i),t)Pt.console&&console.log&&console.log(n);else if(t=(t=R.ext).sErrMode||t.errMode,e&&I(e,null,"error",[e,i,n]),"alert"==t)alert(n);else{if("throw"==t)throw Error(n);"function"==typeof t&&t(e,i,n)}}function k(n,i,e,t){M.isArray(e)?M.each(e,function(e,t){M.isArray(t)?k(n,i,t[0],t[1]):k(n,i,t)}):(t===Lt&&(t=e),i[e]!==Lt&&(n[t]=i[e]))}function qe(e,t,n){var i,s;for(s in t)t.hasOwnProperty(s)&&(i=t[s],M.isPlainObject(i)?(M.isPlainObject(e[s])||(e[s]={}),M.extend(!0,e[s],i)):e[s]=n&&"data"!==s&&"aaData"!==s&&M.isArray(i)?i.slice():i);return e}function Ge(t,e,n){M(t).bind("click.DT",e,function(e){t.blur(),n(e)}).bind("keypress.DT",e,function(e){13===e.which&&(e.preventDefault(),n(e))}).bind("selectstart.DT",function(){return!1})}function D(e,t,n,i){n&&e[t].push({fn:n,sName:i})}function I(t,e,n,i){var s=[];return e&&(s=M.map(t[e].slice().reverse(),function(e){return e.fn.apply(t.oInstance,i)})),null!==n&&(e=M.Event(n+".dt"),M(t.nTable).trigger(e,i),s.push(e.result)),s}function Xe(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),i=e._iDisplayLength;n<=t&&(t=n-i),t-=t%i,e._iDisplayStart=t=-1===i||t<0?0:t}function Ze(e,t){var e=e.renderer,n=R.ext.renderer[t];return M.isPlainObject(e)&&e[t]?n[e[t]]||n._:"string"==typeof e&&n[e]||n._}function A(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Je(e,t){var n=[],n=Mt.numbers_length,i=Math.floor(n/2);return t<=n?n=d(0,t):e<=i?((n=d(0,n-2)).push("ellipsis"),n.push(t-1)):(t-1-i<=e?n=d(t-(n-2),t):((n=d(e-i+2,e+i-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Ye(n){M.each({num:function(e){return ut(e,n)},"num-fmt":function(e){return ut(e,n,bt)},"html-num":function(e){return ut(e,n,ft)},"html-num-fmt":function(e){return ut(e,n,ft,bt)}},function(e,t){O.type.order[e+n+"-pre"]=t,e.match(/^html\-/)&&(O.type.search[e+n]=O.type.search.html)})}function Ke(t){return function(){var e=[Ve(this[R.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return R.ext.internal[t].apply(this,e)}}function a(e){return!e||!0===e||"-"===e}function Qe(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null}function et(e,t,n){var i="string"==typeof e;return!!a(e)||(t&&i&&(e=yt(e,t)),n&&i&&(e=e.replace(bt,"")),!isNaN(parseFloat(e))&&isFinite(e))}function tt(e,t,n){return!!a(e)||(a(e)||"string"==typeof e)&&!!et(e.replace(ft,""),t,n)||null}function nt(e,t,n,i){var s=[],o=0,a=t.length;if(i!==Lt)for(;o<a;o++)e[t[o]][n]&&s.push(e[t[o]][n][i]);else for(;o<a;o++)s.push(e[t[o]][n]);return s}function d(e,t){var n,i=[];t===Lt?(t=0,n=e):(n=t,t=e);for(var s=t;s<n;s++)i.push(s);return i}function it(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&t.push(e[n]);return t}function st(i,s,e){var t,n;e&&(t=new F(i)).one("draw",function(){e(t.ajax.json())}),"ssp"==A(i)?r(i,s):(p(i,!0),(n=i.jqXHR)&&4!==n.readyState&&n.abort(),se(i,[],function(e){J(i);for(var t=0,n=(e=le(i,e)).length;t<n;t++)_(i,e[t]);r(i,s),p(i,!1)}))}function ot(e,t,n,i,s){var o,a,r,l,c,h=[],u=typeof t;for(t&&"string"!==u&&"function"!==u&&t.length!==Lt||(t=[t]),u=0,r=t.length;u<r;u++)for(l=0,c=(a=t[u]&&t[u].split?t[u].split(","):[t[u]]).length;l<c;l++)(o=n("string"==typeof a[l]?M.trim(a[l]):a[l]))&&o.length&&h.push.apply(h,o);if((e=O.selector[e]).length)for(u=0,r=e.length;u<r;u++)h=e[u](i,s,h);return h}function at(e){return(e=e||{}).filter&&e.search===Lt&&(e.search=e.filter),M.extend({search:"none",order:"current",page:"all"},e)}function rt(e){for(var t=0,n=e.length;t<n;t++)if(0<e[t].length)return e[0]=e[t],e[0].length=1,e.length=1,e.context=[e.context[t]],e;return e.length=0,e}function lt(e,t){var n=e.context;n.length&&(n=n[0].aoData[t!==Lt?t:e[0]])&&n._details&&(n._details.remove(),n._detailsShow=Lt,n._details=Lt)}function ct(e,t){var a,s,r,n=e.context;n.length&&e.length&&(e=n[0].aoData[e[0]])._details&&((e._detailsShow=t)?e._details.insertAfter(e.nTr):e._details.detach(),a=n[0],s=new F(a),r=a.aoData,s.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<g(r,"_details").length)&&(s.on("draw.dt.DT_details",function(e,t){a===t&&s.rows({page:"current"}).eq(0).each(function(e){(e=r[e])._detailsShow&&e._details.insertAfter(e.nTr)})}),s.on("column-visibility.dt.DT_details",function(e,t){if(a===t)for(var n,i=y(t),s=0,o=r.length;s<o;s++)(n=r[s])._details&&n._details.children("td[colspan]").attr("colspan",i)}),s.on("destroy.dt.DT_details",function(e,t){if(a===t)for(var n=0,i=r.length;n<i;n++)r[n]._details&&lt(s,n)}))}function ht(e,t,n,i,s){for(var n=[],i=0,o=s.length;i<o;i++)n.push(w(e,s[i],t));return n}function ut(e,t,n,i){return 0===e||e&&"-"!==e?+(e=(e=t?yt(e,t):e).replace&&(n&&(e=e.replace(n,"")),i)?e.replace(i,""):e):-1/0}var O,t,dt={},pt=/[\r\n]/g,ft=/<.*?>/g,gt=/^[\w\+\-]/,mt=/[\w\+\-]$/,vt=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),bt=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,yt=function(e,t){return dt[t]||(dt[t]=RegExp(ge(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(dt[t],"."):e},g=function(e,t,n){var i=[],s=0,o=e.length;if(n!==Lt)for(;s<o;s++)e[s]&&e[s][t]&&i.push(e[s][t][n]);else for(;s<o;s++)e[s]&&i.push(e[s][t]);return i},St=function(e){var t,n,i=[],s=e.length,o=0,a=0;e:for(;a<s;a++){for(t=e[a],n=0;n<o;n++)if(i[n]===t)continue e;i.push(t),o++}return i},i=function(e,t,n){e[t]!==Lt&&(e[n]=e[t])},_t=/\[.*?\]$/,m=/\(\)$/,wt=M("<div>")[0],Ct=wt.textContent!==Lt,xt=/<.*?>/g,R=function(f){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new F(e?Ve(this[O.iApiIndex]):this)},this.fnAddData=function(e,t){var n=this.api(!0),e=(M.isArray(e)&&(M.isArray(e[0])||M.isPlainObject(e[0]))?n.rows:n.row).add(e);return t!==Lt&&!t||n.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],i=n.oScroll;e===Lt||e?t.draw(!1):""===i.sX&&""===i.sY||Me(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();e!==Lt&&!e||t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var i=this.api(!0),s=(e=i.rows(e)).settings()[0],o=s.aoData[e[0][0]];return e.remove(),t&&t.call(this,s,o),n!==Lt&&!n||i.draw(),o},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,i,s,o){s=this.api(!0),(null===t||t===Lt?s:s.column(t)).search(e,n,i,o),s.draw()},this.fnGetData=function(e,t){var n,i=this.api(!0);return e!==Lt?(n=e.nodeName?e.nodeName.toLowerCase():"",t!==Lt||"td"==n||"th"==n?i.cell(e,t).data():i.row(e).data()||null):i.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==Lt?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){e=this.api(!0).page(e);t!==Lt&&!t||e.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),n!==Lt&&!n||e.columns.adjust().draw()},this.fnSettings=function(){return Ve(this[O.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,i,s){var o=this.api(!0);return(n===Lt||null===n?o.row(t):o.cell(t,n)).data(e),s!==Lt&&!s||o.columns.adjust(),i!==Lt&&!i||o.draw(),0},this.fnVersionCheck=O.fnVersionCheck;var e,g=this,m=f===Lt,v=this.length;for(e in m&&(f={}),this.oApi=this.internal=O.internal,R.ext.internal)e&&(this[e]=Ke(e));return this.each(function(){var e={},e=1<v?qe(e,f,!0):f,t=0,n=this.getAttribute("id"),i=!1,s=R.defaults,o=M(this);if("table"!=this.nodeName.toLowerCase())L(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{H(s),N(s.column),b(s,s,!0),b(s.column,s.column,!0),b(s,M.extend(e,o.data()));for(var a=R.settings,t=0,r=a.length;t<r;t++){var l=a[t];if(l.nTable==this||l.nTHead.parentNode==this||l.nTFoot&&l.nTFoot.parentNode==this){if(t=(e.bRetrieve!==Lt?e:s).bRetrieve,m||t)return l.oInstance;if((e.bDestroy!==Lt?e:s).bDestroy){l.oInstance.fnDestroy();break}return void L(l,0,"Cannot reinitialise DataTable",3)}if(l.sTableId==this.id){a.splice(t,1);break}}null!==n&&""!==n||(this.id=n="DataTables_Table_"+R.ext._unique++);var c,h=M.extend(!0,{},R.models.oSettings,{sDestroyWidth:o[0].style.width,sInstance:n,sTableId:n}),u=(h.nTable=this,h.oApi=g.internal,h.oInit=e,a.push(h),h.oInstance=1===g.length?g:o.dataTable(),H(e),e.oLanguage&&j(e.oLanguage),e.aLengthMenu&&!e.iDisplayLength&&(e.iDisplayLength=(M.isArray(e.aLengthMenu[0])?e.aLengthMenu[0]:e.aLengthMenu)[0]),e=qe(M.extend(!0,{},s),e),k(h.oFeatures,e,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),k(h,e,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),k(h.oScroll,e,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),k(h.oLanguage,e,"fnInfoCallback"),D(h,"aoDrawCallback",e.fnDrawCallback,"user"),D(h,"aoServerParams",e.fnServerParams,"user"),D(h,"aoStateSaveParams",e.fnStateSaveParams,"user"),D(h,"aoStateLoadParams",e.fnStateLoadParams,"user"),D(h,"aoStateLoaded",e.fnStateLoaded,"user"),D(h,"aoRowCallback",e.fnRowCallback,"user"),D(h,"aoRowCreatedCallback",e.fnCreatedRow,"user"),D(h,"aoHeaderCallback",e.fnHeaderCallback,"user"),D(h,"aoFooterCallback",e.fnFooterCallback,"user"),D(h,"aoInitComplete",e.fnInitComplete,"user"),D(h,"aoPreDrawCallback",e.fnPreDrawCallback,"user"),h.rowIdFn=C(e.rowId),n=h.oClasses,e.bJQueryUI?(M.extend(n,R.ext.oJUIClasses,e.oClasses),e.sDom===s.sDom&&"lfrtip"===s.sDom&&(h.sDom='<"H"lfr>t<"F"ip>'),h.renderer?M.isPlainObject(h.renderer)&&!h.renderer.header&&(h.renderer.header="jqueryui"):h.renderer="jqueryui"):M.extend(n,R.ext.classes,e.oClasses),o.addClass(n.sTable),""===h.oScroll.sX&&""===h.oScroll.sY||(h.oScroll.iBarWidth=Fe()),h.iInitDisplayStart===Lt&&(h.iInitDisplayStart=e.iDisplayStart,h._iDisplayStart=e.iDisplayStart),null!==e.iDeferLoading&&(h.bDeferLoading=!0,t=M.isArray(e.iDeferLoading),h._iRecordsDisplay=t?e.iDeferLoading[0]:e.iDeferLoading,h._iRecordsTotal=t?e.iDeferLoading[1]:e.iDeferLoading),h.oLanguage),t=(M.extend(!0,u,e.oLanguage),""!==u.sUrl&&(M.ajax({dataType:"json",url:u.sUrl,success:function(e){j(e),b(s.oLanguage,e),M.extend(!0,u,e),we(h)},error:function(){we(h)}}),i=!0),null===e.asStripeClasses&&(h.asStripeClasses=[n.sStripeOdd,n.sStripeEven]),h.asStripeClasses),d=o.children("tbody").find("tr").eq(0);if(-1!==M.inArray(!0,M.map(t,function(e){return d.hasClass(e)}))&&(M("tbody tr",this).removeClass(t.join(" ")),h.asDestroyStripes=t.slice()),a=[],0!==(t=this.getElementsByTagName("thead")).length&&(x(h.aoHeader,t[0]),a=ie(h)),null===e.aoColumns)for(l=[],t=0,r=a.length;t<r;t++)l.push(null);else l=e.aoColumns;for(t=0,r=l.length;t<r;t++)W(h,a?a[t]:null);V(h,e.aoColumnDefs,l,function(e,t){$(h,e,t)}),d.length&&(c=function(e,t){return null!==e.getAttribute("data-"+t)?t:null},M.each(K(h,d[0]).cells,function(e,t){var n,i=h.aoColumns[e];i.mData===e&&(n=c(t,"sort")||c(t,"order"),t=c(t,"filter")||c(t,"search"),null===n&&null===t||(i.mData={_:e+".display",sort:null!==n?e+".@data-"+n:Lt,type:null!==n?e+".@data-"+n:Lt,filter:null!==t?e+".@data-"+t:Lt},$(h,e)))}));var p=h.oFeatures;if(e.bStateSave&&(p.bStateSave=!0,Ue(h),D(h,"aoDrawCallback",Be,"state_save")),e.aaSorting===Lt)for(t=0,r=(a=h.aaSorting).length;t<r;t++)a[t][1]=h.aoColumns[t].asSorting[0];if(We(h),p.bSort&&D(h,"aoDrawCallback",function(){var e,n;h.bSorted&&(e=T(h),n={},M.each(e,function(e,t){n[t.src]=t.dir}),I(h,null,"order",[h,e,n]),He(h))}),D(h,"aoDrawCallback",function(){(h.bSorted||"ssp"===A(h)||p.bDeferRender)&&We(h)},"sc"),z(h),t=o.children("caption").each(function(){this._captionSide=o.css("caption-side")}),0===(r=o.children("thead")).length&&(r=M("<thead/>").appendTo(this)),h.nTHead=r[0],0===(r=o.children("tbody")).length&&(r=M("<tbody/>").appendTo(this)),h.nTBody=r[0],0===(r=0===(r=o.children("tfoot")).length&&0<t.length&&(""!==h.oScroll.sX||""!==h.oScroll.sY)?M("<tfoot/>").appendTo(this):r).length||0===r.children().length?o.addClass(n.sNoFooter):0<r.length&&(h.nTFoot=r[0],x(h.aoFooter,h.nTFoot)),e.aaData)for(t=0;t<e.aaData.length;t++)_(h,e.aaData[t]);else!h.bDeferLoading&&"dom"!=A(h)||q(h,M(h.nTBody).children("tr"));h.aiDisplay=h.aiDisplayMaster.slice(),!(h.bInitialised=!0)===i&&we(h)}}),g=null,this},Tt=[],l=Array.prototype,F=function(e,t){if(!(this instanceof F))return new F(e,t);function n(e){var t,n,i,s,o;t=e,s=R.settings,o=M.map(s,function(e){return e.nTable}),(e=t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=M.inArray(t,o))?[s[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?i=M(t):t instanceof M&&(i=t),i?i.map(function(){return-1!==(n=M.inArray(this,o))?s[n]:null}).toArray():void 0):[])&&a.push.apply(a,e)}var a=[];if(M.isArray(e))for(var i=0,s=e.length;i<s;i++)n(e[i]);else n(e);this.context=St(a),t&&this.push.apply(this,t.toArray?t.toArray():t),this.selector={rows:null,cols:null,opts:null},F.extend(this,this,Tt)},kt=((R.Api=F).prototype={any:function(){return 0!==this.count()},concat:l.concat,context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new F(t[e],this[e]):null},filter:function(e){var t=[];if(l.filter)t=l.filter.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)e.call(this,this[n],n,this)&&t.push(this[n]);return new F(this.context,t)},flatten:function(){var e=[];return new F(this.context,e.concat.apply(e,this.toArray()))},join:l.join,indexOf:l.indexOf||function(e,t){for(var n=t||0,i=this.length;n<i;n++)if(this[n]===e)return n;return-1},iterator:function(e,t,n,i){var s,o,a,r,l,c,h,u=[],d=this.context,p=this.selector;for("string"==typeof e&&(i=n,n=t,t=e,e=!1),o=0,a=d.length;o<a;o++){var f=new F(d[o]);if("table"===t)(s=n.call(f,d[o],o))!==Lt&&u.push(s);else if("columns"===t||"rows"===t)(s=n.call(f,d[o],this[o],o))!==Lt&&u.push(s);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t)for(h=this[o],"column-rows"===t&&(c=kt(d[o],p.opts)),r=0,l=h.length;r<l;r++)s=h[r],(s="cell"===t?n.call(f,d[o],s.row,s.column,o,r):n.call(f,d[o],s,o,r,c))!==Lt&&u.push(s)}return u.length||i?((t=(e=new F(d,e?u.concat.apply([],u):u)).selector).rows=p.rows,t.cols=p.cols,t.opts=p.opts,e):this},lastIndexOf:l.lastIndexOf||function(e,t){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(l.map)t=l.map.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)t.push(e.call(this,this[n],n));return new F(this.context,t)},pluck:function(t){return this.map(function(e){return e[t]})},pop:l.pop,push:l.push,reduce:l.reduce||function(e,t){return n(this,e,t,0,this.length,1)},reduceRight:l.reduceRight||function(e,t){return n(this,e,t,this.length-1,-1,-1)},reverse:l.reverse,selector:null,shift:l.shift,sort:l.sort,splice:l.splice,toArray:function(){return l.slice.call(this)},to$:function(){return M(this)},toJQuery:function(){return M(this)},unique:function(){return new F(this.context,St(this))},unshift:l.unshift},F.extend=function(e,t,n){if(n.length&&t&&(t instanceof F||t.__dt_wrapper))for(var i,s=0,o=n.length;s<o;s++)t[(i=n[s]).name]="function"==typeof i.val?function(t,n,i){return function(){var e=n.apply(t,arguments);return F.extend(e,e,i.methodExt),e}}(e,i.val,i):M.isPlainObject(i.val)?{}:i.val,t[i.name].__dt_wrapper=!0,F.extend(e,t[i.name],i.propExt)},F.register=t=function(e,t){if(M.isArray(e))for(var n=0,i=e.length;n<i;n++)F.register(e[n],t);else for(var s,o=e.split("."),a=Tt,n=0,i=o.length;n<i;n++){var r=(s=-1!==o[n].indexOf("()"))?o[n].replace("()",""):o[n];e:{for(var l=0,c=a.length;l<c;l++)if(a[l].name===r){l=a[l];break e}l=null}l||a.push(l={name:r,val:{},methodExt:[],propExt:[]}),n===i-1?l.val=t:a=s?l.methodExt:l.propExt}},F.registerPlural=e=function(e,t,n){F.register(e,n),F.register(t,function(){var e=n.apply(this,arguments);return e===this?this:e instanceof F?e.length?M.isArray(e[0])?new F(e.context,e[0]):e[0]:Lt:e})},t("tables()",function(e){var t,n,i;return t=e?(t=F,n=this.context,new t(e="number"==typeof e?[n[e]]:(i=M.map(n,function(e){return e.nTable}),M(i).filter(e).map(function(){var e=M.inArray(this,i);return n[e]}).toArray()))):this}),t("table()",function(e){var t=(e=this.tables(e)).context;return t.length?new F(t[0]):e}),e("tables().nodes()","table().node()",function(){return this.iterator("table",function(e){return e.nTable},1)}),e("tables().body()","table().body()",function(){return this.iterator("table",function(e){return e.nTBody},1)}),e("tables().header()","table().header()",function(){return this.iterator("table",function(e){return e.nTHead},1)}),e("tables().footer()","table().footer()",function(){return this.iterator("table",function(e){return e.nTFoot},1)}),e("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)}),t("draw()",function(t){return this.iterator("table",function(e){"page"===t?h(e):r(e,!1===(t="string"==typeof t?"full-hold"!==t:t))})}),t("page()",function(t){return t===Lt?this.page.info().page:this.iterator("table",function(e){De(e,t)})}),t("page.info()",function(){var e,t,n,i,s;return 0===this.context.length?Lt:(t=(e=this.context[0])._iDisplayStart,n=e._iDisplayLength,i=e.fnRecordsDisplay(),{page:(s=-1===n)?0:Math.floor(t/n),pages:s?1:Math.ceil(i/n),start:t,end:e.fnDisplayEnd(),length:n,recordsTotal:e.fnRecordsTotal(),recordsDisplay:i,serverSide:"ssp"===A(e)})}),t("page.len()",function(t){return t===Lt?0!==this.context.length?this.context[0]._iDisplayLength:Lt:this.iterator("table",function(e){xe(e,t)})}),t("ajax.json()",function(){var e=this.context;if(0<e.length)return e[0].json}),t("ajax.params()",function(){var e=this.context;if(0<e.length)return e[0].oAjaxData}),t("ajax.reload()",function(t,n){return this.iterator("table",function(e){st(e,!1===n,t)})}),t("ajax.url()",function(t){var e=this.context;return t===Lt?0===e.length?Lt:(e=e[0]).ajax?M.isPlainObject(e.ajax)?e.ajax.url:e.ajax:e.sAjaxSource:this.iterator("table",function(e){M.isPlainObject(e.ajax)?e.ajax.url=t:e.ajax=t})}),t("ajax.url().load()",function(t,n){return this.iterator("table",function(e){st(e,!1===n,t)})}),function(e,t){var n=[],i=e.aiDisplay,s=e.aiDisplayMaster,o=t.search,a=t.order,r=t.page;if("ssp"==A(e))return"removed"===o?[]:d(0,s.length);if("current"==r)for(s=e._iDisplayStart,a=e.fnDisplayEnd();s<a;s++)n.push(i[s]);else if("current"==a||"applied"==a)n="none"==o?s.slice():"applied"==o?i.slice():M.map(s,function(e){return-1===M.inArray(e,i)?e:null});else if("index"==a||"original"==a)for(s=0,a=e.aoData.length;s<a;s++)("none"==o||-1===(r=M.inArray(s,i))&&"removed"==o||0<=r&&"applied"==o)&&n.push(s);return n}),Dt=(t("rows()",function(e,t){e===Lt?e="":M.isPlainObject(e)&&(t=e,e="");var t=at(t),n=this.iterator("table",function(i){var s=t;return ot("row",e,function(n){var e,t=Qe(n);return null!==t&&!s||(e=kt(i,s),null!==t&&-1!==M.inArray(t,e))?[t]:n?"function"==typeof n?M.map(e,function(e){var t=i.aoData[e];return n(e,t._aData,t.nTr)?e:null}):(t=it(nt(i.aoData,e,"nTr")),n.nodeName&&-1!==M.inArray(n,t)?[n._DT_RowIndex]:"string"==typeof n&&"#"===n.charAt(0)&&(e=i.aIds[n.replace(/^#/,"")])!==Lt?[e.idx]:M(t).filter(n).map(function(){return this._DT_RowIndex}).toArray()):e},i,s)},1);return n.selector.rows=e,n.selector.opts=t,n}),t("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||Lt},1)}),t("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return nt(e.aoData,t,"_aData")},1)}),e("rows().cache()","row().cache()",function(n){return this.iterator("row",function(e,t){e=e.aoData[t];return"search"===n?e._aFilterData:e._aSortData},1)}),e("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(e,t){s(e,t,n)})}),e("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)}),e("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,i=0,s=n.length;i<s;i++)for(var o=0,a=this[i].length;o<a;o++){var r=n[i].rowIdFn(n[i].aoData[this[i][o]]._aData);t.push((!0===e?"#":"")+r)}return new F(n,t)}),e("rows().remove()","row().remove()",function(){var a=this;return this.iterator("row",function(e,t,n){var i=e.aoData;i.splice(t,1);for(var s=0,o=i.length;s<o;s++)null!==i[s].nTr&&(i[s].nTr._DT_RowIndex=s);Y(e.aiDisplayMaster,t),Y(e.aiDisplay,t),Y(a[n],t,!1),Xe(e)}),this.iterator("table",function(e){for(var t=0,n=e.aoData.length;t<n;t++)e.aoData[t].idx=t}),this}),t("rows.add()",function(o){var e=this.iterator("table",function(e){for(var t,n=[],i=0,s=o.length;i<s;i++)(t=o[i]).nodeName&&"TR"===t.nodeName.toUpperCase()?n.push(q(e,t)[0]):n.push(_(e,t));return n},1),t=this.rows(-1);return t.pop(),t.push.apply(t,e.toArray()),t}),t("row()",function(e,t){return rt(this.rows(e,t))}),t("row().data()",function(e){var t=this.context;return e===Lt?t.length&&this.length?t[0].aoData[this[0]]._aData:Lt:(t[0].aoData[this[0]]._aData=e,s(t[0],this[0],"data"),this)}),t("row().node()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]].nTr||null}),t("row.add()",function(t){t instanceof M&&t.length&&(t=t[0]);var e=this.iterator("table",function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?q(e,t)[0]:_(e,t)});return this.row(e[0])}),t("row().child()",function(e,t){var s,o,a,n=this.context;return e===Lt?n.length&&this.length?n[0].aoData[this[0]]._details:Lt:(!0===e?this.child.show():!1===e?lt(this):n.length&&this.length&&(s=n[0],n=n[0].aoData[this[0]],o=[],(a=function(e,t){if(M.isArray(e)||e instanceof M)for(var n=0,i=e.length;n<i;n++)a(e[n],t);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?o.push(e):(n=M("<tr><td/></tr>").addClass(t),M("td",n).addClass(t).html(e)[0].colSpan=y(s),o.push(n[0]))})(e,t),n._details&&n._details.remove(),n._details=M(o),n._detailsShow)&&n._details.insertAfter(n.nTr),this)}),t(["row().child.show()","row().child().show()"],function(){return ct(this,!0),this}),t(["row().child.hide()","row().child().hide()"],function(){return ct(this,!1),this}),t(["row().child.remove()","row().child().remove()"],function(){return lt(this),this}),t("row().child.isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}),/^(.+):(name|visIdx|visible)$/),e=(t("columns()",function(t,n){t===Lt?t="":M.isPlainObject(t)&&(n=t,t="");var n=at(n),e=this.iterator("table",function(o){var e=t,a=n,r=o.aoColumns,l=g(r,"sName"),c=g(r,"nTh");return ot("column",e,function(n){var i,e=Qe(n);if(""===n)return d(r.length);if(null!==e)return[0<=e?e:r.length+e];if("function"==typeof n)return i=kt(o,a),M.map(r,function(e,t){return n(t,ht(o,t,0,0,i),c[t])?t:null});var t,s="string"==typeof n?n.match(Dt):"";if(!s)return M(c).filter(n).map(function(){return M.inArray(this,c)}).toArray();switch(s[2]){case"visIdx":case"visible":return(e=parseInt(s[1],10))<0?[(t=M.map(r,function(e,t){return e.bVisible?t:null}))[t.length+e]]:[B(o,e)];case"name":return M.map(l,function(e,t){return e===s[1]?t:null})}},o,a)},1);return e.selector.cols=t,e.selector.opts=n,e}),e("columns().header()","column().header()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),e("columns().footer()","column().footer()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),e("columns().data()","column().data()",function(){return this.iterator("column-rows",ht,1)}),e("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),e("columns().cache()","column().cache()",function(o){return this.iterator("column-rows",function(e,t,n,i,s){return nt(e.aoData,s,"search"===o?"_aFilterData":"_aSortData",t)},1)}),e("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,i,s){return nt(e.aoData,s,"anCells",t)},1)}),e("columns().visible()","column().visible()",function(c,h){return this.iterator("column",function(e,t){if(c===Lt)return e.aoColumns[t].bVisible;var n,i=e.aoColumns,s=i[t],o=e.aoData;if(c!==Lt&&s.bVisible!==c){if(c)for(var a=M.inArray(!0,g(i,"bVisible"),t+1),r=0,l=o.length;r<l;r++)n=o[r].nTr,i=o[r].anCells,n&&n.insertBefore(i[t],i[a]||null);else M(g(e.aoData,"anCells",t)).detach();s.bVisible=c,u(e,e.aoHeader),u(e,e.aoFooter),(h===Lt||h)&&(v(e),e.oScroll.sX||e.oScroll.sY)&&Me(e),I(e,null,"column-visibility",[e,t,c]),Be(e)}})}),e("columns().indexes()","column().index()",function(n){return this.iterator("column",function(e,t){return"visible"===n?c(e,t):t},1)}),t("columns.adjust()",function(){return this.iterator("table",function(e){v(e)},1)}),t("column.index()",function(e,t){var n;if(0!==this.context.length)return n=this.context[0],"fromVisible"===e||"toData"===e?B(n,t):"fromData"===e||"toVisible"===e?c(n,t):void 0}),t("column()",function(e,t){return rt(this.columns(e,t))}),t("cells()",function(g,e,m){var n,i,s,o,a,r,l,t;return M.isPlainObject(g)&&(g.row===Lt?(m=g,g=null):(m=e,e=null)),M.isPlainObject(e)&&(m=e,e=null),null===e||e===Lt?this.iterator("table",function(n){var i,s,o,a,r,l,c,e=g,t=at(m),h=n.aoData,u=kt(n,t),d=it(nt(h,u,"anCells")),p=M([].concat.apply([],d)),f=n.aoColumns.length;return ot("cell",e,function(e){var t="function"==typeof e;if(null===e||e===Lt||t){for(s=[],o=0,a=u.length;o<a;o++)for(i=u[o],r=0;r<f;r++)l={row:i,column:r},(!t||(c=n.aoData[i],e(l,w(n,i,r),c.anCells?c.anCells[r]:null)))&&s.push(l);return s}return M.isPlainObject(e)?[e]:p.filter(e).map(function(e,t){return{row:i=t.parentNode._DT_RowIndex,column:M.inArray(t,h[i].anCells)}}).toArray()},n,t)}):(n=this.columns(e,m),i=this.rows(g,m),t=this.iterator("table",function(e,t){for(s=[],o=0,a=i[t].length;o<a;o++)for(r=0,l=n[t].length;r<l;r++)s.push({row:i[t][o],column:n[t][r]});return s},1),M.extend(t.selector,{cols:e,rows:g,opts:m}),t)}),e("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){return(e=e.aoData[t].anCells)?e[n]:Lt},1)}),t("cells().data()",function(){return this.iterator("cell",function(e,t,n){return w(e,t,n)},1)}),e("cells().cache()","cell().cache()",function(i){return i="search"===i?"_aFilterData":"_aSortData",this.iterator("cell",function(e,t,n){return e.aoData[t][i][n]},1)}),e("cells().render()","cell().render()",function(i){return this.iterator("cell",function(e,t,n){return w(e,t,n,i)},1)}),e("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:c(e,n)}},1)}),e("cells().invalidate()","cell().invalidate()",function(i){return this.iterator("cell",function(e,t,n){s(e,t,i,n)})}),t("cell()",function(e,t,n){return rt(this.cells(e,t,n))}),t("cell().data()",function(e){var t=this.context,n=this[0];return e===Lt?t.length&&n.length?w(t[0],n[0].row,n[0].column):Lt:(G(t[0],n[0].row,n[0].column,e),s(t[0],n[0].row,"data",n[0].column),this)}),t("order()",function(t,e){var n=this.context;return t===Lt?0!==n.length?n[0].aaSorting:Lt:("number"==typeof t?t=[[t,e]]:M.isArray(t[0])||(t=Array.prototype.slice.call(arguments)),this.iterator("table",function(e){e.aaSorting=t.slice()}))}),t("order.listener()",function(t,n,i){return this.iterator("table",function(e){ze(e,t,n,i)})}),t(["columns().order()","column().order()"],function(i){var s=this;return this.iterator("table",function(e,t){var n=[];M.each(s[t],function(e,t){n.push([t,i])}),e.aaSorting=n})}),t("search()",function(t,n,i,s){var e=this.context;return t===Lt?0!==e.length?e[0].oPreviousSearch.sSearch:Lt:this.iterator("table",function(e){e.oFeatures.bFilter&&he(e,M.extend({},e.oPreviousSearch,{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===s||s}),1)})}),e("columns().search()","column().search()",function(i,s,o,a){return this.iterator("column",function(e,t){var n=e.aoPreSearchCols;if(i===Lt)return n[t].sSearch;e.oFeatures.bFilter&&(M.extend(n[t],{sSearch:i+"",bRegex:null!==s&&s,bSmart:null===o||o,bCaseInsensitive:null===a||a}),he(e,e.oPreviousSearch,1))})}),t("state()",function(){return this.context.length?this.context[0].oSavedState:null}),t("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})}),t("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),t("state.save()",function(){return this.iterator("table",function(e){Be(e)})}),R.versionCheck=R.fnVersionCheck=function(e){for(var t,n,i=R.version.split("."),s=0,o=(e=e.split(".")).length;s<o;s++)if((t=parseInt(i[s],10)||0)!==(n=parseInt(e[s],10)||0))return n<t;return!0},R.isDataTable=R.fnIsDataTable=function(e){var s=M(e).get(0),o=!1;return M.each(R.settings,function(e,t){var n=t.nScrollHead?M("table",t.nScrollHead)[0]:null,i=t.nScrollFoot?M("table",t.nScrollFoot)[0]:null;t.nTable!==s&&n!==s&&i!==s||(o=!0)}),o},R.tables=R.fnTables=function(t){var e=!1,n=(M.isPlainObject(t)&&(e=t.api,t=t.visible),M.map(R.settings,function(e){if(!t||M(e.nTable).is(":visible"))return e.nTable}));return e?new F(n):n},R.util={throttle:Ee,escapeRegex:ge},R.camelToHungarian=b,t("$()",function(e,t){t=this.rows(t).nodes(),t=M(t);return M([].concat(t.filter(e).toArray(),t.find(e).toArray()))}),M.each(["on","one","off"],function(e,n){t(n+"()",function(){var e=Array.prototype.slice.call(arguments),t=(e[0].match(/\.dt\b/)||(e[0]+=".dt"),M(this.tables().nodes()));return t[n].apply(t,e),this})}),t("clear()",function(){return this.iterator("table",function(e){J(e)})}),t("settings()",function(){return new F(this.context,this.context)}),t("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),t("data()",function(){return this.iterator("table",function(e){return g(e.aoData,"_aData")}).flatten()}),t("destroy()",function(u){return u=u||!1,this.iterator("table",function(t){var n,e=t.nTableWrapper.parentNode,i=t.oClasses,s=t.nTable,o=t.nTBody,a=t.nTHead,r=t.nTFoot,l=M(s),o=M(o),c=M(t.nTableWrapper),h=M.map(t.aoData,function(e){return e.nTr});t.bDestroying=!0,I(t,"aoDestroyCallback","destroy",[t]),u||new F(t).columns().visible(!0),c.unbind(".DT").find(":not(tbody *)").unbind(".DT"),M(Pt).unbind(".DT-"+t.sInstance),s!=a.parentNode&&(l.children("thead").detach(),l.append(a)),r&&s!=r.parentNode&&(l.children("tfoot").detach(),l.append(r)),t.aaSorting=[],t.aaSortingFixed=[],We(t),M(h).removeClass(t.asStripeClasses.join(" ")),M("th, td",a).removeClass(i.sSortable+" "+i.sSortableAsc+" "+i.sSortableDesc+" "+i.sSortableNone),t.bJUI&&(M("th span."+i.sSortIcon+", td span."+i.sSortIcon,a).detach(),M("th, td",a).each(function(){var e=M("div."+i.sSortJUIWrapper,this);M(this).append(e.contents()),e.detach()})),o.children().detach(),o.append(h),l[a=u?"remove":"detach"](),c[a](),!u&&e&&(e.insertBefore(s,t.nTableReinsertBefore),l.css("width",t.sDestroyWidth).removeClass(i.sTable),n=t.asDestroyStripes.length)&&o.children().each(function(e){M(this).addClass(t.asDestroyStripes[e%n])}),-1!==(e=M.inArray(t,R.settings))&&R.settings.splice(e,1)})}),M.each(["column","row","cell"],function(e,a){t(a+"s().every()",function(o){return this.iterator(a,function(e,t,n,i,s){o.call(new F(e)[a](t,"cell"===a?n:Lt),t,n,i,s)})})}),t("i18n()",function(e,t,n){var i=this.context[0];return(e=C(e)(i.oLanguage))===Lt&&(e=t),(e=n!==Lt&&M.isPlainObject(e)?e[n]!==Lt?e[n]:e._:e).replace("%d",n)}),R.version="1.10.8",R.settings=[],R.models={},R.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},R.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},R.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},R.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:M.extend({},R.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(R.defaults),R.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(R.defaults.column),R.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:Lt,oAjaxData:Lt,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==A(this)?+this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==A(this)?+this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,i=this.aiDisplay.length,s=this.oFeatures,o=s.bPaginate;return s.bServerSide?!1===o||-1===e?t+i:Math.min(t+e,this._iRecordsDisplay):!o||i<n||-1===e?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},R.ext=O={buttons:{},classes:{},errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:R.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:R.version},M.extend(O,{afnFiltering:O.search,aTypes:O.type.detect,ofnSearch:O.type.search,oSort:O.type.order,afnSortData:O.order,aoFeatures:O.feature,oApi:O.internal,oStdClasses:O.classes,oPagination:O.pager}),M.extend(R.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),"ui-state-default"),It="css_right ui-icon ui-icon-",At="fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix",Mt=(M.extend(R.ext.oJUIClasses,R.ext.classes,{sPageButton:"fg-button ui-button "+e,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:e+" sorting_asc",sSortDesc:e+" sorting_desc",sSortable:e+" sorting",sSortableAsc:e+" sorting_asc_disabled",sSortableDesc:e+" sorting_desc_disabled",sSortableNone:e+" sorting_disabled",sSortJUIAsc:It+"triangle-1-n",sSortJUIDesc:It+"triangle-1-s",sSortJUI:It+"carat-2-n-s",sSortJUIAscAllowed:It+"carat-1-n",sSortJUIDescAllowed:It+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+e,sScrollFoot:"dataTables_scrollFoot "+e,sHeaderTH:e,sFooterTH:e,sJUIHeader:At+" ui-corner-tl ui-corner-tr",sJUIFooter:At+" ui-corner-bl ui-corner-br"}),R.ext.pager);return M.extend(Mt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[Je(e,t)]},simple_numbers:function(e,t){return["previous",Je(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Je(e,t),"next","last"]},_numbers:Je,numbers_length:7}),M.extend(!0,R.ext.renderer,{pageButton:{_:function(r,e,l,t,c,h){var u,d,n,p=r.oClasses,f=r.oLanguage.oPaginate,g=0,m=function(e,t){for(var n,i,s=function(e){De(r,e.data.action,!0)},o=0,a=t.length;o<a;o++)if(i=t[o],M.isArray(i))n=M("<"+(i.DT_el||"div")+"/>").appendTo(e),m(n,i);else{switch(u=null,d="",i){case"ellipsis":e.append('<span class="ellipsis">&#x2026;</span>');break;case"first":u=f.sFirst,d=i+(0<c?"":" "+p.sPageButtonDisabled);break;case"previous":u=f.sPrevious,d=i+(0<c?"":" "+p.sPageButtonDisabled);break;case"next":u=f.sNext,d=i+(c<h-1?"":" "+p.sPageButtonDisabled);break;case"last":u=f.sLast,d=i+(c<h-1?"":" "+p.sPageButtonDisabled);break;default:u=i+1,d=c===i?p.sPageButtonActive:""}null!==u&&(Ge(n=M("<a>",{class:p.sPageButton+" "+d,"aria-controls":r.sTableId,"data-dt-idx":g,tabindex:r.iTabIndex,id:0===l&&"string"==typeof i?r.sTableId+"_"+i:null}).html(u).appendTo(e),{action:i},s),g++)}};try{n=M(e).find(Et.activeElement).data("dt-idx")}catch(e){}m(M(e).empty(),t),n&&M(e).find("[data-dt-idx="+n+"]").focus()}}}),M.extend(R.ext.type.detect,[function(e,t){t=t.oLanguage.sDecimal;return et(e,t)?"num"+t:null},function(e){var t;return(!e||e instanceof Date||gt.test(e)&&mt.test(e))&&(null!==(t=Date.parse(e))&&!isNaN(t)||a(e))?"date":null},function(e,t){t=t.oLanguage.sDecimal;return et(e,t,!0)?"num-fmt"+t:null},function(e,t){t=t.oLanguage.sDecimal;return tt(e,t)?"html-num"+t:null},function(e,t){t=t.oLanguage.sDecimal;return tt(e,t,!0)?"html-num-fmt"+t:null},function(e){return a(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),M.extend(R.ext.type.search,{html:function(e){return a(e)?e:"string"==typeof e?e.replace(pt," ").replace(ft,""):""},string:function(e){return!a(e)&&"string"==typeof e?e.replace(pt," "):e}}),M.extend(O.type.order,{"date-pre":function(e){return Date.parse(e)||0},"html-pre":function(e){return a(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return a(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e<t?-1:t<e?1:0},"string-desc":function(e,t){return e<t?1:t<e?-1:0}}),Ye(""),M.extend(!0,R.ext.renderer,{header:{_:function(s,o,a,r){M(s.nTable).on("order.dt.DT",function(e,t,n,i){s===t&&(e=a.idx,o.removeClass(a.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[e]?r.sSortAsc:"desc"==i[e]?r.sSortDesc:a.sSortingClass))})},jqueryui:function(s,o,a,r){M("<div/>").addClass(r.sSortJUIWrapper).append(o.contents()).append(M("<span/>").addClass(r.sSortIcon+" "+a.sSortingClassJUI)).appendTo(o),M(s.nTable).on("order.dt.DT",function(e,t,n,i){s===t&&(e=a.idx,o.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[e]?r.sSortAsc:"desc"==i[e]?r.sSortDesc:a.sSortingClass),o.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==i[e]?r.sSortJUIAsc:"desc"==i[e]?r.sSortJUIDesc:a.sSortingClassJUI))})}}}),R.render={number:function(i,s,o,a,r){return{display:function(e){var t,n;return"number"!=typeof e&&"string"!=typeof e?e:(t=e<0?"-":"",e=Math.abs(parseFloat(e)),n=parseInt(e,10),e=o?s+(e-n).toFixed(o).substring(2):"",t+(a||"")+n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,i)+e+(r||""))}}}},M.extend(R.ext.internal,{_fnExternApiFunc:Ke,_fnBuildAjax:se,_fnAjaxUpdate:oe,_fnAjaxParameters:ae,_fnAjaxUpdateDraw:re,_fnAjaxDataSrc:le,_fnAddColumn:W,_fnColumnOptions:$,_fnAdjustColumnSizing:v,_fnVisibleToColumnIndex:B,_fnColumnIndexToVisible:c,_fnVisbleColumns:y,_fnGetColumns:S,_fnColumnTypes:U,_fnApplyColumnDefs:V,_fnHungarianMap:o,_fnCamelToHungarian:b,_fnLanguageCompat:j,_fnBrowserDetect:z,_fnAddData:_,_fnAddTr:q,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==Lt?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,t,n){return M.inArray(n,e.aoData[t].anCells)},_fnGetCellData:w,_fnSetCellData:G,_fnSplitObjNotation:X,_fnGetObjectDataFn:C,_fnSetObjectDataFn:f,_fnGetDataMaster:Z,_fnClearTable:J,_fnDeleteIndex:Y,_fnInvalidate:s,_fnGetRowElements:K,_fnCreateTr:Q,_fnBuildHead:te,_fnDrawHead:u,_fnDraw:h,_fnReDraw:r,_fnAddOptionsHtml:ne,_fnDetectHeader:x,_fnGetUniqueThs:ie,_fnFeatureHtmlFilter:ce,_fnFilterComplete:he,_fnFilterCustom:ue,_fnFilterColumn:de,_fnFilter:pe,_fnFilterCreateSearch:fe,_fnEscapeRegex:ge,_fnFilterData:me,_fnFeatureHtmlInfo:ye,_fnUpdateInfo:Se,_fnInfoMacros:_e,_fnInitialise:we,_fnInitComplete:Ce,_fnLengthChange:xe,_fnFeatureHtmlLength:Te,_fnFeatureHtmlPaginate:ke,_fnPageChange:De,_fnFeatureHtmlProcessing:Ie,_fnProcessingDisplay:p,_fnFeatureHtmlTable:Ae,_fnScrollDraw:Me,_fnApplyToChildren:P,_fnCalculateColumnWidths:Pe,_fnThrottle:Ee,_fnConvertToWidth:Le,_fnGetWidestNode:Oe,_fnGetMaxLenString:Re,_fnStringToCss:E,_fnScrollBarWidth:Fe,_fnSortFlatten:T,_fnSort:je,_fnSortAria:He,_fnSortListener:Ne,_fnSortAttachListener:ze,_fnSortingClasses:We,_fnSortData:$e,_fnSaveState:Be,_fnLoadState:Ue,_fnSettingsFromNode:Ve,_fnLog:L,_fnMap:k,_fnBindAction:Ge,_fnCallbackReg:D,_fnCallbackFire:I,_fnLengthOverflow:Xe,_fnRenderer:Ze,_fnDataSource:A,_fnRowAttributes:ee,_fnCalculateEnd:function(){}}),M.fn.dataTable=R,M.fn.dataTableSettings=R.settings,M.fn.dataTableExt=R.ext,M.fn.DataTable=function(e){return M(this).dataTable(e).api()},M.each(R,function(e,t){M.fn.DataTable[e]=t}),M.fn.dataTable}"function"==typeof define&&define.amd?define("datatables",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.dataTable&&e(jQuery)}(window,document);
  • wp-google-map-plugin/trunk/assets/js/vendor/backend/backend.js

    r3096583 r3218931  
    11jQuery(document).ready(function($) {
    22       
     3         
    34    if( $('.toplevel_page_wpgmp_view_overview ul li a').find('.fc-fire-sale').length > 0 ) {
    45        $('.toplevel_page_wpgmp_view_overview ul li a').find('.fc-fire-sale').parent('a').attr('target','_blank');
     
    123124    });
    124125
     126    $('.wp-list-table .copy_to_clipboard').click( function(){
     127
     128         $('.fc-tooltip').removeClass('active');
     129          var value = $(this).data('clipboard-text');
     130          var $temp = $("<input>");
     131          $("body").append($temp);
     132          $temp.val(value).select();
     133          document.execCommand("copy");
     134          $temp.remove();
     135          $(this).closest('.fc-tooltip').addClass('active');
     136       
     137          setTimeout(
     138            function() {
     139             $('.fc-tooltip').removeClass('active');
     140             $('tr').removeClass('active');
     141          }, 2000);
     142
     143    });
     144
    125145    $(".wpgmp_check_key").click(function() {
    126146            $('.wpgmp_apitest').html("...");
     
    326346    });
    327347
    328     $(".copy_to_clipboard").click(function () {
     348    $(".wp-maps_page_wpgmp_manage_settings .copy_to_clipboard").click(function () {
    329349
    330350        let referrer_to_copy  = $(this).parent('.tooltip').prev('.referrer_to_create').val();
  • wp-google-map-plugin/trunk/core/class.template.php

    r3127100 r3218931  
    292292                        <div class="product_name">'.$this->options['productName'].' <span class="fc-badge">'.$this->options['productVersion'].'</span></div>
    293293                    </div>
    294                     <div class="fc-6 col-sm-6 col-xs-6 product-annoucement"><a href="https://wordpress.org/support/plugin/'.$this->options['productSlug'].'/reviews/#new-post" target="_blank">' . sprintf(esc_html__("Add Your %s in %s", "wp-google-map-plugin"), '<span class="stars">★★★★★</span>', 'wordpress.org') . '</a></div>
     294                    <div class="fc-6 col-sm-6 col-xs-6 product-annoucement"><a href="https://wordpress.org/support/plugin/'.$this->options['productSlug'].'/reviews/#new-post" target="_blank">' . sprintf(esc_html__("Please provide us %s rating at %s", "wp-google-map-plugin"), '<span class="stars">★★★★★</span>', ' wordpress.org') . '</a></div>
    295295                    <div class="fc-2 col-sm-3 col-xs-3 social_media_area">
    296296                    <div class="social-media-links">
  • wp-google-map-plugin/trunk/modules/group_map/views/form.php

    r3168237 r3218931  
    6969    'lable' => esc_html__( 'Select Marker Category Icon', 'wp-google-map-plugin' ),
    7070    'src' => (isset( $_POST['group_marker'] ) ) ? wp_unslash( $_POST['group_marker'] ) : WPGMP_IMAGES.'/default_marker.png',
    71     'required' => true,
    7271    'choose_button' => esc_html__( 'Choose', 'wp-google-map-plugin' ),
    7372    'remove_button' => esc_html__( 'Remove','wp-google-map-plugin' ),
  • wp-google-map-plugin/trunk/modules/map/views/manage.php

    r3108077 r3218931  
    3333         */
    3434        public function column_shortcodes($item) {
    35             echo esc_html('[put_wpgm id='.$item->map_id.']');   }
     35
     36           
     37            // Sanitize map ID and image URL
     38            $map_id = intval($item->map_id);
     39            $image_url = esc_url(WPGMP_IMAGES . "copy-to-clipboard.png");
     40
     41            // Define allowed HTML tags and attributes
     42            $allowed_html = [
     43                'div' => [
     44                    'class' => [],
     45                ],
     46                'a' => [
     47                    'href' => [],
     48                    'data-toggle' => [],
     49                    'title' => [],
     50                    'data-clipboard-text' => [],
     51                    'class' => [],
     52                    'role' => [],
     53                ],
     54                'img' => [
     55                    'src' => [],
     56                ],
     57                'span' => [
     58                    'class' => [],
     59                ],
     60                'b' => [],
     61            ];
     62
     63            // Construct the HTML with placeholders
     64            $tooltip = "<div class='fc-tooltip'>
     65                            <a href='#' role='button' data-toggle='tooltip'
     66                               title='Copy Shortcode To Clipboard!'
     67                               data-clipboard-text='[put_wpgm id=$map_id]'
     68                               class='copy_to_clipboard'
     69                               onclick='return false;'>
     70                                <img src='$image_url'>
     71                            </a>
     72                            <span class='fc-tooltiptext fc-tooltip-top'>Shortcode has been copied to clipboard.</span>
     73                        </div>";
     74
     75            // Sanitize the HTML using wp_kses()
     76            $safe_tooltip = wp_kses($tooltip, $allowed_html);
     77
     78            // Output the sanitized HTML
     79            echo '<b>' . esc_html('[put_wpgm id=' . $map_id . ']') . '</b>&nbsp;&nbsp;' . $safe_tooltip;
     80        }
     81
    3682        /**
    3783         * Clone of the map.
  • wp-google-map-plugin/trunk/modules/overview/views/how.php

    r3108077 r3218931  
    161161
    162162            $output_string = sprintf(
    163                 esc_html__( "If you are looking for even more features, please have a look on the pro version: %s. It's the number #1 selling (13k+ happy customers), most loved & trusted advanced Google Maps plugin for WordPress. We are continuously adding more features to it based on the suggestions of esteemed customers / users like you. With the pro version, you can set up Google Maps with very advanced features in just a few seconds. Also, both our free and pro version plugins can be customized to achieve specific requirements.", 'wp-google-map-plugin' ),
     163                esc_html__( "If you are looking for even more features, please have a look on the pro version: %s. It's the number #1 selling (15k+ happy customers), most loved & trusted advanced Google Maps plugin for WordPress. We are continuously adding more features to it based on the suggestions of esteemed customers / users like you. With the pro version, you can set up Google Maps with very advanced features in just a few seconds. Also, both our free and pro version plugins can be customized to achieve specific requirements.", 'wp-google-map-plugin' ),
    164164                wp_kses( $premium_plugin, $allowed_html )
    165165            );
  • wp-google-map-plugin/trunk/readme.txt

    r3202775 r3218931  
    66Author:            flippercode
    77Requires at least: 3.4
    8 Tested up to: 6.6.2
    9 Stable tag: 4.6.8
     8Tested up to: 6.7.1
     9Stable tag: 4.6.9
    1010Requires PHP: 5.3
    1111License: GPLv2 or later
     
    1818The most advanced yet easy to use Google maps plugin for WordPress. Create beautifully styled, modern & responsive google maps with multiple locations, custom marker icons, marker categories, custom infowindow messages, images and more. Enable marker category filter on frontend to allow users to filter the locations.
    1919
    20 * Create multiple google maps with different marker icons, marker categories and locations assigned to them.
    21 * We have seamlessly integrated support for the major WordPress GDPR plugins – Complianz – GDPR/CCPA Cookie Consent, GDPR Cookie Compliance (CCPA, DSGVO, Cookie Consent), CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready), iubenda | All-in-one Compliance for GDPR and Cookie Notice.
     20> 👉 Create multiple google maps with different marker icons, marker categories and locations assigned to them.
     21> 👉 We have seamlessly integrated support for the major WordPress GDPR plugins – Complianz – GDPR/CCPA Cookie Consent, GDPR Cookie Compliance (CCPA, DSGVO, Cookie Consent), CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready), iubenda | All-in-one Compliance for GDPR and Cookie Notice.
    2222
    2323With just few clicks, you will be able to add beautifully designed custom google maps to any page / post or widget with help of generated shortcode.
     
    3535
    3636= Lite Version (Free) =
    37 *  It's fully GDPR-compliant, ensuring secure and privacy-conscious Google Maps integration.
    38 *  Create multiple google maps with different marker icons, marker categories and locations assigned to them.
    39 *  Add unlimited locations with various information.
    40 *  Assign multiple locations to a single google maps.
    41 *  Display a info window message to any location.
    42 *  Maps Marker Infowindow Open On: Mouse Click or Mouse Hover.
    43 *  Display Google Maps on posts/pages using shortcode.
    44 *  Centering the map according to assigned locations.
    45 *  Decide center latitude and longitude for each map separtely.
    46 *  Easy way to assign category to any location.
    47 *  Select your marker icon for markers.
    48 *  Enable marker cluster functionality for markers.
    49 *  Easily edit or delete google map functionality.
    50 *  Assign your own markers to categories or choose colorful markers from +500 readymade markers provided by the [Maps Icons Collection](https://mapicons.mapsmarker.com).
    51 *  Select among 4 map type : Roadmap,Satellite,Hybrid,Terrain
    52 *  Set your map height and width.
    53 *  Set Google maps zoom level.
    54 *  Google Maps can be Draggable
    55 *  Display traffic real time conditions and overlays using Layers.
    56 *  Add bicycle path information to your maps using the Bicycling Layer.
    57 *  Enable Google Map Transit layer
    58 *  Marker Animation on Click or Mouse hover the marker.
    59 *  45° imagery functionality
    60 *  Add circle in your Maps plugin
    61 *  Create a Google maps just in seconds.
    62 *  Street view supported
    63 *  widget supportive : Display Google Maps on sidebars using widget.
    64 *  Pov Heading and Pov Pitch for street view.
    65 *  Fully Responsive.Display your map perfectly on all devices.
    66 *  Create 100% responsive maps effortlessly.Tested on real devices.
    67 *  A Cross Browser Compatible plugin. Fully tested on IE8, IE9, IE10 and all major browsers
    68 *  Multi-lingual Supported.
    69 *  Multisite Enabled and ability to activate it network wide.
    70 *  Map Stylization : Customizable Google maps style from https://snazzymaps.com.
    71 *  Search control on frontend map to search location easily.
    72 *  Filter markers by category.
    73 *  No content / data loss when migrating from free version to pro version.
     37> ➡️  It's fully GDPR-compliant, ensuring secure and privacy-conscious Google Maps integration.
     38> ➡️  Create multiple google maps with different marker icons, marker categories and locations assigned to them.
     39> ➡️  Add unlimited locations with various information.
     40> ➡️  Assign multiple locations to a single google maps.
     41> ➡️  Display a info window message to any location.
     42> ➡️  Maps Marker Infowindow Open On: Mouse Click or Mouse Hover.
     43> ➡️  Display Google Maps on posts/pages using shortcode.
     44> ➡️  Centering the map according to assigned locations.
     45> ➡️  Decide center latitude and longitude for each map separtely.
     46> ➡️  Easy way to assign category to any location.
     47> ➡️  Select your marker icon for markers.
     48> ➡️  Enable marker cluster functionality for markers.
     49> ➡️  Easily edit or delete google map functionality.
     50> ➡️  Assign your own markers to categories or choose colorful markers from +500 readymade markers provided by the [Maps Icons Collection](https://mapicons.mapsmarker.com).
     51> ➡️  Select among 4 map type : Roadmap,Satellite,Hybrid,Terrain
     52> ➡️  Set your map height and width.
     53> ➡️  Set Google maps zoom level.
     54> ➡️  Google Maps can be Draggable
     55> ➡️  Display traffic real time conditions and overlays using Layers.
     56> ➡️  Add bicycle path information to your maps using the Bicycling Layer.
     57> ➡️  Enable Google Map Transit layer
     58> ➡️  Marker Animation on Click or Mouse hover the marker.
     59> ➡️  45° imagery functionality
     60> ➡️  Add circle in your Maps plugin
     61> ➡️  Create a Google maps just in seconds.
     62> ➡️  Street view supported
     63> ➡️  widget supportive : Display Google Maps on sidebars using widget.
     64> ➡️  Pov Heading and Pov Pitch for street view.
     65> ➡️  Fully Responsive.Display your map perfectly on all devices.
     66> ➡️  Create 100% responsive maps effortlessly.Tested on real devices.
     67> ➡️  A Cross Browser Compatible plugin. Fully tested on IE8, IE9, IE10 and all major browsers
     68> ➡️  Multi-lingual Supported.
     69> ➡️  Multisite Enabled and ability to activate it network wide.
     70> ➡️  Map Stylization : Customizable Google maps style from https://snazzymaps.com.
     71> ➡️  Search control on frontend map to search location easily.
     72> ➡️  Filter markers by category.
     73> ➡️  No content / data loss when migrating from free version to pro version.
    7474
    7575
     
    8080Pro version plugin contains all the features of free version plugin plus some additional features which are listed below
    8181
    82 *  Listing : Display listing in grid or list style under map. Fully responsive listing.
    83 *  Map Layers : Display Traffic Layer , Bicycling Layer, Transit layer
    84 *  Import/Export Locations : Import Export Locations supported using CSV.Sample csv is attached in pro version.
    85 *  Draw shapes : rectangle, circle, polygon and polyline.
    86 *  Display unlimited shapes. Display Message on shape click or Redirect to external link.
    87 *  Direction & Route : Directions & Route Suggestion. Display directions results in KM and MILES.
    88 *  Sort listing by location, category and address alphabetically in location listing.
    89 *  Marker Category : Assign multiple categories to a location.
    90 *  Infowindow Contents: Customize infowindow contents with help of Placeholders.
    91 *  Display Posts Information, custom fields, taxonomies and featured images on infowindow message using placeholders.
    92 *  Unlimited number of map markers and locations.
    93 *  Set your own google map marker icon
    94 *  Drag and drop feature for markers, custom animation support
    95 *  Allows to display the user location on map.
    96 *  Nearby locations based on user’s current location.
    97 *  Display Posts/Pages or Custom Post Types on google maps using **custom fields**.
    98 *  Center the map based on visitor’s current location.
    99 *  Define overlays on Google maps via an easy to use interface.
    100 *  Integrate GEOJSON in to google maps.
    101 *  Display multiple Kml/Kmz Layer on the map.
    102 *  Fusion Table Layers.
    103 *  Add Geo location
    104 *  Add any number of Google maps on pages/posts/sidebars.
    105 *  Allows to insert the map as widget on sidebars.
    106 *  Add unlimited locations using an easy to use interface for Google Maps.
    107 *  Display location title, location category, location latitude, location longitude with location message in the infowindow.
    108 *  Create unlimited maps and display on posts/pages using shortcode or in sidebar using widget.
    109 *  Design your own Google map skins easily. Turn ON/OFF roads, places, water area.
    110 *  Ability to display infowindow on mouse click on mouse hover.
    111 *  Display your map perfectly on all devices. Create 100% responsive maps effortlessly.
    112 *  Multi-lingual Supported.
    113 *  Display physical maps based on terrain information.
    114 *  Display Google Earth satellite images on just one click.
    115 *  Display maps in a blend of normal and satellite views.
    116 *  Setup POV Heading and POV Pitch of Street View to customize Street View output of a location.
    117 *  Full support of controls of the Google map, such as zoom control, map type control, scale control, street view control, fullscreen and rotate control
    118 *  Drag and drop feature for markers, custom animation support
    119 *  Modify Locating Listing using Placeholder.
    120 *  Hooks Supported - Use actions & filters to modify map,markers,listing and associated html on fly.
    121 *  Display locations listing with filters & pagination. Fully customizable using backend settings and hooks.
    122 *  Use "wpgmp_geo_tags_args", "wpgmp_geo_featured_image", "wpgmp_geotags_placeholder", "wpgmp_geotags_content" hooks to extend Posts on google maps functionality as you want.
    123 *  Use External Database or Sources to add markers on google maps using new filter wpgmp_marker_source.
    124 *  Load markers from external database or API sources with help of filters (Hooks).
    125 *  A Cross Browser Compatible plugin. Fully tested on IE8, IE9, IE10 and all major browsers
    126 *  Multisite Enabled and ability to activate it network wide.
    127 *  Visit our Pro Edition [WP MAPS PRO](https://www.wpmapspro.com?utm_source=wordpress&utm_medium=liteversion&utm_campaign=freemium&utm_id=freemium)
    128 *  Fully extensible & scalable plugin to make it ready for customisations according to website / business requirements.
     82> 👉  Listing : Display listing in grid or list style under map. Fully responsive listing.
     83> 👉  Map Layers : Display Traffic Layer , Bicycling Layer, Transit layer
     84> 👉  Import/Export Locations : Import Export Locations supported using CSV.Sample csv is attached in pro version.
     85> 👉  Draw shapes : rectangle, circle, polygon and polyline.
     86> 👉  Display unlimited shapes. Display Message on shape click or Redirect to external link.
     87> 👉  Direction & Route : Directions & Route Suggestion. Display directions results in KM and MILES.
     88> 👉  Sort listing by location, category and address alphabetically in location listing.
     89> 👉  Marker Category : Assign multiple categories to a location.
     90> 👉  Infowindow Contents: Customize infowindow contents with help of Placeholders.
     91> 👉  Display Posts Information, custom fields, taxonomies and featured images on infowindow message using placeholders.
     92> 👉  Unlimited number of map markers and locations.
     93> 👉  Set your own google map marker icon
     94> 👉  Drag and drop feature for markers, custom animation support
     95> 👉  Allows to display the user location on map.
     96> 👉  Nearby locations based on user’s current location.
     97> 👉  Display Posts/Pages or Custom Post Types on google maps using **custom fields**.
     98> 👉  Center the map based on visitor’s current location.
     99> 👉  Define overlays on Google maps via an easy to use interface.
     100> 👉  Integrate GEOJSON in to google maps.
     101> 👉  Display multiple Kml/Kmz Layer on the map.
     102> 👉  Fusion Table Layers.
     103> 👉  Add Geo location
     104> 👉  Add any number of Google maps on pages/posts/sidebars.
     105> 👉  Allows to insert the map as widget on sidebars.
     106> 👉  Add unlimited locations using an easy to use interface for Google Maps.
     107> 👉  Display location title, location category, location latitude, location longitude with location message in the infowindow.
     108> 👉  Create unlimited maps and display on posts/pages using shortcode or in sidebar using widget.
     109> 👉  Design your own Google map skins easily. Turn ON/OFF roads, places, water area.
     110> 👉  Ability to display infowindow on mouse click on mouse hover.
     111> 👉  Display your map perfectly on all devices. Create 100% responsive maps effortlessly.
     112> 👉  Multi-lingual Supported.
     113> 👉  Display physical maps based on terrain information.
     114> 👉  Display Google Earth satellite images on just one click.
     115> 👉  Display maps in a blend of normal and satellite views.
     116> 👉  Setup POV Heading and POV Pitch of Street View to customize Street View output of a location.
     117> 👉  Full support of controls of the Google map, such as zoom control, map type control, scale control, street view control, fullscreen and rotate control
     118> 👉  Drag and drop feature for markers, custom animation support
     119> 👉  Modify Locating Listing using Placeholder.
     120> 👉  Hooks Supported - Use actions & filters to modify map,markers,listing and associated html on fly.
     121> 👉  Display locations listing with filters & pagination. Fully customizable using backend settings and hooks.
     122> 👉  Use "wpgmp_geo_tags_args", "wpgmp_geo_featured_image", "wpgmp_geotags_placeholder", "wpgmp_geotags_content" hooks to extend Posts on google maps functionality as you want.
     123> 👉  Use External Database or Sources to add markers on google maps using new filter wpgmp_marker_source.
     124> 👉  Load markers from external database or API sources with help of filters (Hooks).
     125> 👉  A Cross Browser Compatible plugin. Fully tested on IE8, IE9, IE10 and all major browsers
     126> 👉  Multisite Enabled and ability to activate it network wide.
     127> 👉  Visit our Pro Edition [WP MAPS PRO](https://www.wpmapspro.com?utm_source=wordpress&utm_medium=liteversion&utm_campaign=freemium&utm_id=freemium)
     128> 👉  Fully extensible & scalable plugin to make it ready for customisations according to website / business requirements.
    129129
    130130= Live Examples =
     
    170170== Changelog ==
    171171
     172= 4.6.9 =
     173* Add : Copy map shortcode by icon functionality added.
     174
    172175= 4.6.8 =
    173176* Fix : compatible with cookiebot plugin.
     
    201204
    202205== Upgrade Notice ==
     206
     207= 4.6.9 =
     208  - Upgrade for more stable release.
     209
     210= 4.6.8 =
     211  - Upgrade for compatibility with cookiebot plugin.
     212
     213= 4.6.7 =
     214  - Upgrade for using more translatable strings
     215
     216= 4.6.6 =
     217  - Upgrade for more stable release.
     218
     219= 4.6.5 =
     220  - Upgrade for PHP version 8 compatibility.
     221
     222= 4.6.4 =
     223  - Upgrade for compatibility with Google Tags Manager.
     224
     225= 4.6.3 =
     226  - Upgrade for code mirror editor in the backend.
    203227
    204228= 4.6.2 =
  • wp-google-map-plugin/trunk/wp-google-map-plugin.php

    r3202775 r3218931  
    66Author: flippercode
    77Author URI: https://weplugins.com/
    8 Version: 4.6.8
     8Version: 4.6.9
    99Text Domain: wp-google-map-plugin
    1010Domain Path: /lang
     
    854854           
    855855            if ( ! defined( 'WPGMP_VERSION' ) )
    856             define( 'WPGMP_VERSION', '4.6.8' );
     856            define( 'WPGMP_VERSION', '4.6.9' );
    857857           
    858858            if ( ! defined( 'WPGMP_FOLDER' ) )
Note: See TracChangeset for help on using the changeset viewer.