import{y as createLucideIcon,u as useTranslation,j as jsxRuntimeExports,aO as Clock,F as FileText,U as User,bn as Settings,b6 as Trash2,z as Upload,r as reactExports,b8 as cn,b9 as buttonVariants,aU as getDefaultExportFromCjs,B as Button$1,aS as X,I as Input,bs as CircleCheckBig,aK as Dialog,aL as DialogContent,aM as DialogHeader,aN as DialogTitle,bo as DialogDescription,bt as FileSpreadsheet,ba as DialogFooter,be as axios,p as api,bu as AUDITLOG_API_URL,t as toast,bf as getRefreshToken,aR as instance}from"./index-Db-xuq0b.js";import{C as Card,d as CardContent,a as CardHeader,b as CardTitle,c as CardDescription}from"./card-BBWyxDss.js";import{T as Table$1,a as TableHeader,b as TableRow,c as TableHead,d as TableBody,e as TableCell}from"./table-D3n3VABd.js";import{B as Badge}from"./badge-D7JvaQeJ.js";import{A as Avatar,c as AvatarImage,a as AvatarFallback}from"./avatar-C2-XEZ4v.js";import{s as startOfDay,a as startOfWeek,f as format,d as differenceInCalendarDays,b as startOfYear,c as startOfISOWeek,g as getISOWeek,e as getWeek,i as isDate}from"./format-DvwV82px.js";import{S as Shield}from"./shield-uC_usZTb.js";import{L as Lock}from"./lock-BCybB-Lq.js";import{E as Eye}from"./eye-Bhud4znU.js";import{S as SquarePen}from"./square-pen-B91TPB19.js";import{D as Download}from"./download-CX6rsOqt.js";import{S as Select,a as SelectTrigger,b as SelectValue,c as SelectContent,d as SelectItem}from"./select-BoQxM42A.js";import{P as Popover,a as PopoverTrigger,b as PopoverContent}from"./popover-X-j_SRnG.js";import{t as toDate,c as constructFrom,g as getTimezoneOffsetInMilliseconds,m as millisecondsInWeek,a as getDefaultOptions,e as enUS}from"./en-US-Cc-9gH5A.js";import{e as endOfMonth,d as differenceInCalendarMonths}from"./endOfMonth-DmxQbzXi.js";import{S as Search}from"./search-CM5F2ZRy.js";import{L as Label}from"./label-CsFy6wpo.js";import{R as RadioGroup,a as RadioGroupItem}from"./radio-group-DqG5gUnT.js";import{C as Checkbox}from"./checkbox-Dd0VhnrO.js";import{R as RefreshCw}from"./refresh-cw-JB7N413f.js";import{E as EyeOff}from"./eye-off-CDMvHElM.js";/**
 * @license lucide-react v0.513.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const __iconNode$2=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Activity=createLucideIcon("activity",__iconNode$2);/**
 * @license lucide-react v0.513.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const __iconNode$1=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Calendar$1=createLucideIcon("calendar",__iconNode$1);/**
 * @license lucide-react v0.513.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const __iconNode=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],TrendingUp=createLucideIcon("trending-up",__iconNode);function addDays(r,o){const c=toDate(r);return isNaN(o)?constructFrom(r,NaN):(o&&c.setDate(c.getDate()+o),c)}function addMonths(r,o){const c=toDate(r);if(isNaN(o))return constructFrom(r,NaN);if(!o)return c;const n=c.getDate(),a=constructFrom(r,c.getTime());a.setMonth(c.getMonth()+o+1,0);const s=a.getDate();return n>=s?a:(c.setFullYear(a.getFullYear(),a.getMonth(),n),c)}function addWeeks(r,o){const c=o*7;return addDays(r,c)}function addYears(r,o){return addMonths(r,o*12)}function max(r){let o;return r.forEach(function(c){const n=toDate(c);(o===void 0||o<n||isNaN(Number(n)))&&(o=n)}),o||new Date(NaN)}function min(r){let o;return r.forEach(c=>{const n=toDate(c);(!o||o>n||isNaN(+n))&&(o=n)}),o||new Date(NaN)}function isSameDay(r,o){const c=startOfDay(r),n=startOfDay(o);return+c==+n}function differenceInCalendarWeeks(r,o,c){const n=startOfWeek(r,c),a=startOfWeek(o,c),s=+n-getTimezoneOffsetInMilliseconds(n),d=+a-getTimezoneOffsetInMilliseconds(a);return Math.round((s-d)/millisecondsInWeek)}function startOfMonth(r){const o=toDate(r);return o.setDate(1),o.setHours(0,0,0,0),o}function endOfWeek(r,o){var p,m,g,j;const c=getDefaultOptions(),n=(o==null?void 0:o.weekStartsOn)??((m=(p=o==null?void 0:o.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??c.weekStartsOn??((j=(g=c.locale)==null?void 0:g.options)==null?void 0:j.weekStartsOn)??0,a=toDate(r),s=a.getDay(),d=(s<n?-7:0)+6-(s-n);return a.setDate(a.getDate()+d),a.setHours(23,59,59,999),a}function endOfISOWeek(r){return endOfWeek(r,{weekStartsOn:1})}function getDaysInMonth(r){const o=toDate(r),c=o.getFullYear(),n=o.getMonth(),a=constructFrom(r,0);return a.setFullYear(c,n+1,0),a.setHours(0,0,0,0),a.getDate()}function getUnixTime(r){return Math.trunc(+toDate(r)/1e3)}function lastDayOfMonth(r){const o=toDate(r),c=o.getMonth();return o.setFullYear(o.getFullYear(),c+1,0),o.setHours(0,0,0,0),o}function getWeeksInMonth(r,o){return differenceInCalendarWeeks(lastDayOfMonth(r),startOfMonth(r),o)+1}function isAfter(r,o){const c=toDate(r),n=toDate(o);return c.getTime()>n.getTime()}function isBefore(r,o){const c=toDate(r),n=toDate(o);return+c<+n}function isSameMonth(r,o){const c=toDate(r),n=toDate(o);return c.getFullYear()===n.getFullYear()&&c.getMonth()===n.getMonth()}function isSameYear(r,o){const c=toDate(r),n=toDate(o);return c.getFullYear()===n.getFullYear()}function subDays(r,o){return addDays(r,-o)}function setMonth(r,o){const c=toDate(r),n=c.getFullYear(),a=c.getDate(),s=constructFrom(r,0);s.setFullYear(n,o,15),s.setHours(0,0,0,0);const d=getDaysInMonth(s);return c.setMonth(o,Math.min(a,d)),c}function setYear(r,o){const c=toDate(r);return isNaN(+c)?constructFrom(r,NaN):(c.setFullYear(o),c)}const getModuleIcon=r=>{switch(r.toLowerCase()){case"authentication":return jsxRuntimeExports.jsx(Shield,{className:"h-4 w-4"});case"documents":case"files":return jsxRuntimeExports.jsx(FileText,{className:"h-4 w-4"});case"settings":return jsxRuntimeExports.jsx(Settings,{className:"h-4 w-4"});case"users":return jsxRuntimeExports.jsx(User,{className:"h-4 w-4"});default:return jsxRuntimeExports.jsx(FileText,{className:"h-4 w-4"})}},getActionIcon=r=>{switch(r.toLowerCase()){case"upload":return jsxRuntimeExports.jsx(Upload,{className:"h-4 w-4"});case"download":return jsxRuntimeExports.jsx(Download,{className:"h-4 w-4"});case"edit":case"update":return jsxRuntimeExports.jsx(SquarePen,{className:"h-4 w-4"});case"delete":return jsxRuntimeExports.jsx(Trash2,{className:"h-4 w-4"});case"view":return jsxRuntimeExports.jsx(Eye,{className:"h-4 w-4"});case"login":return jsxRuntimeExports.jsx(Lock,{className:"h-4 w-4"});default:return jsxRuntimeExports.jsx(FileText,{className:"h-4 w-4"})}},getStatusColor=r=>{switch(r){case"success":return"bg-primary-100 dark:bg-primary-900/40 text-primary-800 dark:text-primary-300 hover:bg-primary-100 dark:hover:bg-primary-900/40 border-primary-300 dark:border-primary-700";case"failure":return"bg-red-100 dark:bg-red-900/40 text-red-800 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900/40 border-red-300 dark:border-red-700";case"warning":return"bg-yellow-100 dark:bg-yellow-900/40 text-yellow-800 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900/40 border-yellow-300 dark:border-yellow-700";case"pending":return"bg-primary/15 dark:bg-primary/25 text-primary-800 dark:text-primary-300 hover:bg-primary/15 dark:hover:bg-primary/25 border-primary/40 dark:border-primary/60";default:return"bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 border-gray-300 dark:border-gray-600"}};function ActivityCard({activity:r}){const{t:o}=useTranslation(),c=format(new Date(r.timestamp),"MMM d, yyyy HH:mm:ss");return jsxRuntimeExports.jsx(Card,{className:"hover:shadow-md transition-shadow duration-200 border-gray-200 dark:border-gray-700 dark:bg-gray-800",children:jsxRuntimeExports.jsx(CardContent,{className:"p-4",children:jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-4",children:[jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx("div",{className:"w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center",children:getModuleIcon(r.module)}),jsxRuntimeExports.jsx("div",{className:"absolute -bottom-1 -right-1 w-6 h-6 rounded-full bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-600 flex items-center justify-center",children:getActionIcon(r.action)})]}),jsxRuntimeExports.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("h4",{className:"font-medium text-gray-900 dark:text-gray-100 truncate",children:r.description}),jsxRuntimeExports.jsx(Badge,{variant:"outline",className:`text-xs font-medium ${getStatusColor(r.status)}`,children:o(`auditLogShared.status.${r.status}`)})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 dark:text-gray-400 whitespace-nowrap",children:[jsxRuntimeExports.jsx(Clock,{className:"h-3 w-3"}),c]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-600 dark:text-gray-400",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsxs(Avatar,{className:"h-5 w-5",children:[r.performedBy.avatar&&jsxRuntimeExports.jsx(AvatarImage,{src:r.performedBy.avatar}),jsxRuntimeExports.jsx(AvatarFallback,{className:"text-xs",children:r.performedBy.name.charAt(0).toUpperCase()})]}),jsxRuntimeExports.jsx("span",{className:"font-medium text-gray-900 dark:text-gray-100",children:r.performedBy.name}),jsxRuntimeExports.jsx("span",{className:"text-gray-500 dark:text-gray-500",children:"•"}),jsxRuntimeExports.jsx("span",{children:r.performedBy.email})]}),r.resourceName&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"text-gray-500 dark:text-gray-500",children:"•"}),jsxRuntimeExports.jsx("span",{className:"truncate max-w-[200px]",children:r.resourceName})]})]}),(r.details||r.ipAddress||r.location)&&jsxRuntimeExports.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 dark:border-gray-700",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-4 text-xs text-gray-500 dark:text-gray-400",children:[r.details&&jsxRuntimeExports.jsx("div",{className:"max-w-[300px] truncate",title:r.details,children:r.details}),r.ipAddress&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntimeExports.jsxs("span",{children:[o("auditLogShared.labels.ip"),":"]}),jsxRuntimeExports.jsx("span",{className:"font-mono",children:r.ipAddress})]}),r.location&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntimeExports.jsx("span",{children:"📍"}),jsxRuntimeExports.jsx("span",{children:r.location})]})]})})]})]})})})}var __assign=function(){return __assign=Object.assign||function(o){for(var c,n=1,a=arguments.length;n<a;n++){c=arguments[n];for(var s in c)Object.prototype.hasOwnProperty.call(c,s)&&(o[s]=c[s])}return o},__assign.apply(this,arguments)};function __rest(r,o){var c={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&o.indexOf(n)<0&&(c[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(r);a<n.length;a++)o.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(r,n[a])&&(c[n[a]]=r[n[a]]);return c}function __spreadArray(r,o,c){for(var n=0,a=o.length,s;n<a;n++)(s||!(n in o))&&(s||(s=Array.prototype.slice.call(o,0,n)),s[n]=o[n]);return r.concat(s||Array.prototype.slice.call(o))}typeof SuppressedError=="function"&&SuppressedError;function isDayPickerMultiple(r){return r.mode==="multiple"}function isDayPickerRange(r){return r.mode==="range"}function isDayPickerSingle(r){return r.mode==="single"}var defaultClassNames={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function formatCaption(r,o){return format(r,"LLLL y",o)}function formatDay(r,o){return format(r,"d",o)}function formatMonthCaption(r,o){return format(r,"LLLL",o)}function formatWeekNumber(r){return"".concat(r)}function formatWeekdayName(r,o){return format(r,"cccccc",o)}function formatYearCaption(r,o){return format(r,"yyyy",o)}var formatters=Object.freeze({__proto__:null,formatCaption,formatDay,formatMonthCaption,formatWeekNumber,formatWeekdayName,formatYearCaption}),labelDay=function(r,o,c){return format(r,"do MMMM (EEEE)",c)},labelMonthDropdown=function(){return"Month: "},labelNext=function(){return"Go to next month"},labelPrevious=function(){return"Go to previous month"},labelWeekday=function(r,o){return format(r,"cccc",o)},labelWeekNumber=function(r){return"Week n. ".concat(r)},labelYearDropdown=function(){return"Year: "},labels=Object.freeze({__proto__:null,labelDay,labelMonthDropdown,labelNext,labelPrevious,labelWeekNumber,labelWeekday,labelYearDropdown});function getDefaultContextValues(){var r="buttons",o=defaultClassNames,c=enUS,n={},a={},s=1,d={},p=new Date;return{captionLayout:r,classNames:o,formatters,labels,locale:c,modifiersClassNames:n,modifiers:a,numberOfMonths:s,styles:d,today:p,mode:"default"}}function parseFromToProps(r){var o=r.fromYear,c=r.toYear,n=r.fromMonth,a=r.toMonth,s=r.fromDate,d=r.toDate;return n?s=startOfMonth(n):o&&(s=new Date(o,0,1)),a?d=endOfMonth(a):c&&(d=new Date(c,11,31)),{fromDate:s?startOfDay(s):void 0,toDate:d?startOfDay(d):void 0}}var DayPickerContext=reactExports.createContext(void 0);function DayPickerProvider(r){var o,c=r.initialProps,n=getDefaultContextValues(),a=parseFromToProps(c),s=a.fromDate,d=a.toDate,p=(o=c.captionLayout)!==null&&o!==void 0?o:n.captionLayout;p!=="buttons"&&(!s||!d)&&(p="buttons");var m;(isDayPickerSingle(c)||isDayPickerMultiple(c)||isDayPickerRange(c))&&(m=c.onSelect);var g=__assign(__assign(__assign({},n),c),{captionLayout:p,classNames:__assign(__assign({},n.classNames),c.classNames),components:__assign({},c.components),formatters:__assign(__assign({},n.formatters),c.formatters),fromDate:s,labels:__assign(__assign({},n.labels),c.labels),mode:c.mode||n.mode,modifiers:__assign(__assign({},n.modifiers),c.modifiers),modifiersClassNames:__assign(__assign({},n.modifiersClassNames),c.modifiersClassNames),onSelect:m,styles:__assign(__assign({},n.styles),c.styles),toDate:d});return jsxRuntimeExports.jsx(DayPickerContext.Provider,{value:g,children:r.children})}function useDayPicker(){var r=reactExports.useContext(DayPickerContext);if(!r)throw new Error("useDayPicker must be used within a DayPickerProvider.");return r}function CaptionLabel(r){var o=useDayPicker(),c=o.locale,n=o.classNames,a=o.styles,s=o.formatters.formatCaption;return jsxRuntimeExports.jsx("div",{className:n.caption_label,style:a.caption_label,"aria-live":"polite",role:"presentation",id:r.id,children:s(r.displayMonth,{locale:c})})}function IconDropdown(r){return jsxRuntimeExports.jsx("svg",__assign({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},r,{children:jsxRuntimeExports.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Dropdown(r){var o,c,n=r.onChange,a=r.value,s=r.children,d=r.caption,p=r.className,m=r.style,g=useDayPicker(),j=(c=(o=g.components)===null||o===void 0?void 0:o.IconDropdown)!==null&&c!==void 0?c:IconDropdown;return jsxRuntimeExports.jsxs("div",{className:p,style:m,children:[jsxRuntimeExports.jsx("span",{className:g.classNames.vhidden,children:r["aria-label"]}),jsxRuntimeExports.jsx("select",{name:r.name,"aria-label":r["aria-label"],className:g.classNames.dropdown,style:g.styles.dropdown,value:a,onChange:n,children:s}),jsxRuntimeExports.jsxs("div",{className:g.classNames.caption_label,style:g.styles.caption_label,"aria-hidden":"true",children:[d,jsxRuntimeExports.jsx(j,{className:g.classNames.dropdown_icon,style:g.styles.dropdown_icon})]})]})}function MonthsDropdown(r){var o,c=useDayPicker(),n=c.fromDate,a=c.toDate,s=c.styles,d=c.locale,p=c.formatters.formatMonthCaption,m=c.classNames,g=c.components,j=c.labels.labelMonthDropdown;if(!n)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});if(!a)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});var k=[];if(isSameYear(n,a))for(var _=startOfMonth(n),T=n.getMonth();T<=a.getMonth();T++)k.push(setMonth(_,T));else for(var _=startOfMonth(new Date),T=0;T<=11;T++)k.push(setMonth(_,T));var E=function(P){var A=Number(P.target.value),H=setMonth(startOfMonth(r.displayMonth),A);r.onChange(H)},M=(o=g==null?void 0:g.Dropdown)!==null&&o!==void 0?o:Dropdown;return jsxRuntimeExports.jsx(M,{name:"months","aria-label":j(),className:m.dropdown_month,style:s.dropdown_month,onChange:E,value:r.displayMonth.getMonth(),caption:p(r.displayMonth,{locale:d}),children:k?.map(function(P){return jsxRuntimeExports.jsx("option",{value:P.getMonth(),children:p(P,{locale:d})},P.getMonth())})})}function YearsDropdown(r){var o,c=r.displayMonth,n=useDayPicker(),a=n.fromDate,s=n.toDate,d=n.locale,p=n.styles,m=n.classNames,g=n.components,j=n.formatters.formatYearCaption,k=n.labels.labelYearDropdown,_=[];if(!a)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});if(!s)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});for(var T=a.getFullYear(),E=s.getFullYear(),M=T;M<=E;M++)_.push(setYear(startOfYear(new Date),M));var P=function(H){var Y=setYear(startOfMonth(c),Number(H.target.value));r.onChange(Y)},A=(o=g==null?void 0:g.Dropdown)!==null&&o!==void 0?o:Dropdown;return jsxRuntimeExports.jsx(A,{name:"years","aria-label":k(),className:m.dropdown_year,style:p.dropdown_year,onChange:P,value:c.getFullYear(),caption:j(c,{locale:d}),children:_?.map(function(H){return jsxRuntimeExports.jsx("option",{value:H.getFullYear(),children:j(H,{locale:d})},H.getFullYear())})})}function useControlledValue(r,o){var c=reactExports.useState(r),n=c[0],a=c[1],s=o===void 0?n:o;return[s,a]}function getInitialMonth(r){var o=r.month,c=r.defaultMonth,n=r.today,a=o||c||n||new Date,s=r.toDate,d=r.fromDate,p=r.numberOfMonths,m=p===void 0?1:p;if(s&&differenceInCalendarMonths(s,a)<0){var g=-1*(m-1);a=addMonths(s,g)}return d&&differenceInCalendarMonths(a,d)<0&&(a=d),startOfMonth(a)}function useNavigationState(){var r=useDayPicker(),o=getInitialMonth(r),c=useControlledValue(o,r.month),n=c[0],a=c[1],s=function(d){var p;if(!r.disableNavigation){var m=startOfMonth(d);a(m),(p=r.onMonthChange)===null||p===void 0||p.call(r,m)}};return[n,s]}function getDisplayMonths(r,o){for(var c=o.reverseMonths,n=o.numberOfMonths,a=startOfMonth(r),s=startOfMonth(addMonths(a,n)),d=differenceInCalendarMonths(s,a),p=[],m=0;m<d;m++){var g=addMonths(a,m);p.push(g)}return c&&(p=p.reverse()),p}function getNextMonth(r,o){if(!o.disableNavigation){var c=o.toDate,n=o.pagedNavigation,a=o.numberOfMonths,s=a===void 0?1:a,d=n?s:1,p=startOfMonth(r);if(!c)return addMonths(p,d);var m=differenceInCalendarMonths(c,r);if(!(m<s))return addMonths(p,d)}}function getPreviousMonth(r,o){if(!o.disableNavigation){var c=o.fromDate,n=o.pagedNavigation,a=o.numberOfMonths,s=a===void 0?1:a,d=n?s:1,p=startOfMonth(r);if(!c)return addMonths(p,-d);var m=differenceInCalendarMonths(p,c);if(!(m<=0))return addMonths(p,-d)}}var NavigationContext=reactExports.createContext(void 0);function NavigationProvider(r){var o=useDayPicker(),c=useNavigationState(),n=c[0],a=c[1],s=getDisplayMonths(n,o),d=getNextMonth(n,o),p=getPreviousMonth(n,o),m=function(k){return s?.some(function(_){return isSameMonth(k,_)})},g=function(k,_){m(k)||(_&&isBefore(k,_)?a(addMonths(k,1+o.numberOfMonths*-1)):a(k))},j={currentMonth:n,displayMonths:s,goToMonth:a,goToDate:g,previousMonth:p,nextMonth:d,isDateDisplayed:m};return jsxRuntimeExports.jsx(NavigationContext.Provider,{value:j,children:r.children})}function useNavigation(){var r=reactExports.useContext(NavigationContext);if(!r)throw new Error("useNavigation must be used within a NavigationProvider");return r}function CaptionDropdowns(r){var o,c=useDayPicker(),n=c.classNames,a=c.styles,s=c.components,d=useNavigation().goToMonth,p=function(j){d(addMonths(j,r.displayIndex?-r.displayIndex:0))},m=(o=s==null?void 0:s.CaptionLabel)!==null&&o!==void 0?o:CaptionLabel,g=jsxRuntimeExports.jsx(m,{id:r.id,displayMonth:r.displayMonth});return jsxRuntimeExports.jsxs("div",{className:n.caption_dropdowns,style:a.caption_dropdowns,children:[jsxRuntimeExports.jsx("div",{className:n.vhidden,children:g}),jsxRuntimeExports.jsx(MonthsDropdown,{onChange:p,displayMonth:r.displayMonth}),jsxRuntimeExports.jsx(YearsDropdown,{onChange:p,displayMonth:r.displayMonth})]})}function IconLeft(r){return jsxRuntimeExports.jsx("svg",__assign({width:"16px",height:"16px",viewBox:"0 0 120 120"},r,{children:jsxRuntimeExports.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function IconRight(r){return jsxRuntimeExports.jsx("svg",__assign({width:"16px",height:"16px",viewBox:"0 0 120 120"},r,{children:jsxRuntimeExports.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Button=reactExports.forwardRef(function(r,o){var c=useDayPicker(),n=c.classNames,a=c.styles,s=[n.button_reset,n.button];r.className&&s.push(r.className);var d=s.join(" "),p=__assign(__assign({},a.button_reset),a.button);return r.style&&Object.assign(p,r.style),jsxRuntimeExports.jsx("button",__assign({},r,{ref:o,type:"button",className:d,style:p}))});function Navigation(r){var o,c,n=useDayPicker(),a=n.dir,s=n.locale,d=n.classNames,p=n.styles,m=n.labels,g=m.labelPrevious,j=m.labelNext,k=n.components;if(!r.nextMonth&&!r.previousMonth)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});var _=g(r.previousMonth,{locale:s}),T=[d.nav_button,d.nav_button_previous].join(" "),E=j(r.nextMonth,{locale:s}),M=[d.nav_button,d.nav_button_next].join(" "),P=(o=k==null?void 0:k.IconRight)!==null&&o!==void 0?o:IconRight,A=(c=k==null?void 0:k.IconLeft)!==null&&c!==void 0?c:IconLeft;return jsxRuntimeExports.jsxs("div",{className:d.nav,style:p.nav,children:[!r.hidePrevious&&jsxRuntimeExports.jsx(Button,{name:"previous-month","aria-label":_,className:T,style:p.nav_button_previous,disabled:!r.previousMonth,onClick:r.onPreviousClick,children:a==="rtl"?jsxRuntimeExports.jsx(P,{className:d.nav_icon,style:p.nav_icon}):jsxRuntimeExports.jsx(A,{className:d.nav_icon,style:p.nav_icon})}),!r.hideNext&&jsxRuntimeExports.jsx(Button,{name:"next-month","aria-label":E,className:M,style:p.nav_button_next,disabled:!r.nextMonth,onClick:r.onNextClick,children:a==="rtl"?jsxRuntimeExports.jsx(A,{className:d.nav_icon,style:p.nav_icon}):jsxRuntimeExports.jsx(P,{className:d.nav_icon,style:p.nav_icon})})]})}function CaptionNavigation(r){var o=useDayPicker().numberOfMonths,c=useNavigation(),n=c.previousMonth,a=c.nextMonth,s=c.goToMonth,d=c.displayMonths,p=d.findIndex(function(E){return isSameMonth(r.displayMonth,E)}),m=p===0,g=p===d.length-1,j=o>1&&(m||!g),k=o>1&&(g||!m),_=function(){n&&s(n)},T=function(){a&&s(a)};return jsxRuntimeExports.jsx(Navigation,{displayMonth:r.displayMonth,hideNext:j,hidePrevious:k,nextMonth:a,previousMonth:n,onPreviousClick:_,onNextClick:T})}function Caption(r){var o,c=useDayPicker(),n=c.classNames,a=c.disableNavigation,s=c.styles,d=c.captionLayout,p=c.components,m=(o=p==null?void 0:p.CaptionLabel)!==null&&o!==void 0?o:CaptionLabel,g;return a?g=jsxRuntimeExports.jsx(m,{id:r.id,displayMonth:r.displayMonth}):d==="dropdown"?g=jsxRuntimeExports.jsx(CaptionDropdowns,{displayMonth:r.displayMonth,id:r.id}):d==="dropdown-buttons"?g=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CaptionDropdowns,{displayMonth:r.displayMonth,displayIndex:r.displayIndex,id:r.id}),jsxRuntimeExports.jsx(CaptionNavigation,{displayMonth:r.displayMonth,displayIndex:r.displayIndex,id:r.id})]}):g=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(m,{id:r.id,displayMonth:r.displayMonth,displayIndex:r.displayIndex}),jsxRuntimeExports.jsx(CaptionNavigation,{displayMonth:r.displayMonth,id:r.id})]}),jsxRuntimeExports.jsx("div",{className:n.caption,style:s.caption,children:g})}function Footer(r){var o=useDayPicker(),c=o.footer,n=o.styles,a=o.classNames.tfoot;return c?jsxRuntimeExports.jsx("tfoot",{className:a,style:n.tfoot,children:jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("td",{colSpan:8,children:c})})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function getWeekdays(r,o,c){for(var n=c?startOfISOWeek(new Date):startOfWeek(new Date,{locale:r,weekStartsOn:o}),a=[],s=0;s<7;s++){var d=addDays(n,s);a.push(d)}return a}function HeadRow(){var r=useDayPicker(),o=r.classNames,c=r.styles,n=r.showWeekNumber,a=r.locale,s=r.weekStartsOn,d=r.ISOWeek,p=r.formatters.formatWeekdayName,m=r.labels.labelWeekday,g=getWeekdays(a,s,d);return jsxRuntimeExports.jsxs("tr",{style:c.head_row,className:o.head_row,children:[n&&jsxRuntimeExports.jsx("td",{style:c.head_cell,className:o.head_cell}),g?.map(function(j,k){return jsxRuntimeExports.jsx("th",{scope:"col",className:o.head_cell,style:c.head_cell,"aria-label":m(j,{locale:a}),children:p(j,{locale:a})},k)})]})}function Head(){var r,o=useDayPicker(),c=o.classNames,n=o.styles,a=o.components,s=(r=a==null?void 0:a.HeadRow)!==null&&r!==void 0?r:HeadRow;return jsxRuntimeExports.jsx("thead",{style:n.head,className:c.head,children:jsxRuntimeExports.jsx(s,{})})}function DayContent(r){var o=useDayPicker(),c=o.locale,n=o.formatters.formatDay;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:n(r.date,{locale:c})})}var SelectMultipleContext=reactExports.createContext(void 0);function SelectMultipleProvider(r){if(!isDayPickerMultiple(r.initialProps)){var o={selected:void 0,modifiers:{disabled:[]}};return jsxRuntimeExports.jsx(SelectMultipleContext.Provider,{value:o,children:r.children})}return jsxRuntimeExports.jsx(SelectMultipleProviderInternal,{initialProps:r.initialProps,children:r.children})}function SelectMultipleProviderInternal(r){var o=r.initialProps,c=r.children,n=o.selected,a=o.min,s=o.max,d=function(g,j,k){var _,T;(_=o.onDayClick)===null||_===void 0||_.call(o,g,j,k);var E=!!(j.selected&&a&&(n==null?void 0:n.length)===a);if(!E){var M=!!(!j.selected&&s&&(n==null?void 0:n.length)===s);if(!M){var P=n?__spreadArray([],n):[];if(j.selected){var A=P.findIndex(function(H){return isSameDay(g,H)});P.splice(A,1)}else P.push(g);(T=o.onSelect)===null||T===void 0||T.call(o,P,g,j,k)}}},p={disabled:[]};n&&p.disabled.push(function(g){var j=s&&n.length>s-1,k=n?.some(function(_){return isSameDay(_,g)});return!!(j&&!k)});var m={selected:n,onDayClick:d,modifiers:p};return jsxRuntimeExports.jsx(SelectMultipleContext.Provider,{value:m,children:c})}function useSelectMultiple(){var r=reactExports.useContext(SelectMultipleContext);if(!r)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return r}function addToRange(r,o){var c=o||{},n=c.from,a=c.to;return n&&a?isSameDay(a,r)&&isSameDay(n,r)?void 0:isSameDay(a,r)?{from:a,to:void 0}:isSameDay(n,r)?void 0:isAfter(n,r)?{from:r,to:a}:{from:n,to:r}:a?isAfter(r,a)?{from:a,to:r}:{from:r,to:a}:n?isBefore(r,n)?{from:r,to:n}:{from:n,to:r}:{from:r,to:void 0}}var SelectRangeContext=reactExports.createContext(void 0);function SelectRangeProvider(r){if(!isDayPickerRange(r.initialProps)){var o={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return jsxRuntimeExports.jsx(SelectRangeContext.Provider,{value:o,children:r.children})}return jsxRuntimeExports.jsx(SelectRangeProviderInternal,{initialProps:r.initialProps,children:r.children})}function SelectRangeProviderInternal(r){var o=r.initialProps,c=r.children,n=o.selected,a=n||{},s=a.from,d=a.to,p=o.min,m=o.max,g=function(T,E,M){var P,A;(P=o.onDayClick)===null||P===void 0||P.call(o,T,E,M);var H=addToRange(T,n);(A=o.onSelect)===null||A===void 0||A.call(o,H,T,E,M)},j={range_start:[],range_end:[],range_middle:[],disabled:[]};if(s?(j.range_start=[s],d?(j.range_end=[d],isSameDay(s,d)||(j.range_middle=[{after:s,before:d}])):j.range_end=[s]):d&&(j.range_start=[d],j.range_end=[d]),p&&(s&&!d&&j.disabled.push({after:subDays(s,p-1),before:addDays(s,p-1)}),s&&d&&j.disabled.push({after:s,before:addDays(s,p-1)}),!s&&d&&j.disabled.push({after:subDays(d,p-1),before:addDays(d,p-1)})),m){if(s&&!d&&(j.disabled.push({before:addDays(s,-m+1)}),j.disabled.push({after:addDays(s,m-1)})),s&&d){var k=differenceInCalendarDays(d,s)+1,_=m-k;j.disabled.push({before:subDays(s,_)}),j.disabled.push({after:addDays(d,_)})}!s&&d&&(j.disabled.push({before:addDays(d,-m+1)}),j.disabled.push({after:addDays(d,m-1)}))}return jsxRuntimeExports.jsx(SelectRangeContext.Provider,{value:{selected:n,onDayClick:g,modifiers:j},children:c})}function useSelectRange(){var r=reactExports.useContext(SelectRangeContext);if(!r)throw new Error("useSelectRange must be used within a SelectRangeProvider");return r}function matcherToArray(r){return Array.isArray(r)?__spreadArray([],r):r!==void 0?[r]:[]}function getCustomModifiers(r){var o={};return Object.entries(r).forEach(function(c){var n=c[0],a=c[1];o[n]=matcherToArray(a)}),o}var InternalModifier;(function(r){r.Outside="outside",r.Disabled="disabled",r.Selected="selected",r.Hidden="hidden",r.Today="today",r.RangeStart="range_start",r.RangeEnd="range_end",r.RangeMiddle="range_middle"})(InternalModifier||(InternalModifier={}));var Selected=InternalModifier.Selected,Disabled=InternalModifier.Disabled,Hidden=InternalModifier.Hidden,Today=InternalModifier.Today,RangeEnd=InternalModifier.RangeEnd,RangeMiddle=InternalModifier.RangeMiddle,RangeStart=InternalModifier.RangeStart,Outside=InternalModifier.Outside;function getInternalModifiers(r,o,c){var n,a=(n={},n[Selected]=matcherToArray(r.selected),n[Disabled]=matcherToArray(r.disabled),n[Hidden]=matcherToArray(r.hidden),n[Today]=[r.today],n[RangeEnd]=[],n[RangeMiddle]=[],n[RangeStart]=[],n[Outside]=[],n);return r.fromDate&&a[Disabled].push({before:r.fromDate}),r.toDate&&a[Disabled].push({after:r.toDate}),isDayPickerMultiple(r)?a[Disabled]=a[Disabled].concat(o.modifiers[Disabled]):isDayPickerRange(r)&&(a[Disabled]=a[Disabled].concat(c.modifiers[Disabled]),a[RangeStart]=c.modifiers[RangeStart],a[RangeMiddle]=c.modifiers[RangeMiddle],a[RangeEnd]=c.modifiers[RangeEnd]),a}var ModifiersContext=reactExports.createContext(void 0);function ModifiersProvider(r){var o=useDayPicker(),c=useSelectMultiple(),n=useSelectRange(),a=getInternalModifiers(o,c,n),s=getCustomModifiers(o.modifiers),d=__assign(__assign({},a),s);return jsxRuntimeExports.jsx(ModifiersContext.Provider,{value:d,children:r.children})}function useModifiers(){var r=reactExports.useContext(ModifiersContext);if(!r)throw new Error("useModifiers must be used within a ModifiersProvider");return r}function isDateInterval(r){return!!(r&&typeof r=="object"&&"before"in r&&"after"in r)}function isDateRange(r){return!!(r&&typeof r=="object"&&"from"in r)}function isDateAfterType(r){return!!(r&&typeof r=="object"&&"after"in r)}function isDateBeforeType(r){return!!(r&&typeof r=="object"&&"before"in r)}function isDayOfWeekType(r){return!!(r&&typeof r=="object"&&"dayOfWeek"in r)}function isDateInRange(r,o){var c,n=o.from,a=o.to;if(n&&a){var s=differenceInCalendarDays(a,n)<0;s&&(c=[a,n],n=c[0],a=c[1]);var d=differenceInCalendarDays(r,n)>=0&&differenceInCalendarDays(a,r)>=0;return d}return a?isSameDay(a,r):n?isSameDay(n,r):!1}function isDateType(r){return isDate(r)}function isArrayOfDates(r){return Array.isArray(r)&&r.every(isDate)}function isMatch(r,o){return o?.some(function(c){if(typeof c=="boolean")return c;if(isDateType(c))return isSameDay(r,c);if(isArrayOfDates(c))return c.includes(r);if(isDateRange(c))return isDateInRange(r,c);if(isDayOfWeekType(c))return c.dayOfWeek.includes(r.getDay());if(isDateInterval(c)){var n=differenceInCalendarDays(c.before,r),a=differenceInCalendarDays(c.after,r),s=n>0,d=a<0,p=isAfter(c.before,c.after);return p?d&&s:s||d}return isDateAfterType(c)?differenceInCalendarDays(r,c.after)>0:isDateBeforeType(c)?differenceInCalendarDays(c.before,r)>0:typeof c=="function"?c(r):!1})}function getActiveModifiers(r,o,c){var n=Object.keys(o).reduce(function(s,d){var p=o[d];return isMatch(r,p)&&s.push(d),s},[]),a={};return n.forEach(function(s){return a[s]=!0}),c&&!isSameMonth(r,c)&&(a.outside=!0),a}function getInitialFocusTarget(r,o){for(var c=startOfMonth(r[0]),n=endOfMonth(r[r.length-1]),a,s,d=c;d<=n;){var p=getActiveModifiers(d,o),m=!p.disabled&&!p.hidden;if(!m){d=addDays(d,1);continue}if(p.selected)return d;p.today&&!s&&(s=d),a||(a=d),d=addDays(d,1)}return s||a}var MAX_RETRY=365;function getNextFocus(r,o){var c=o.moveBy,n=o.direction,a=o.context,s=o.modifiers,d=o.retry,p=d===void 0?{count:0,lastFocused:r}:d,m=a.weekStartsOn,g=a.fromDate,j=a.toDate,k=a.locale,_={day:addDays,week:addWeeks,month:addMonths,year:addYears,startOfWeek:function(P){return a.ISOWeek?startOfISOWeek(P):startOfWeek(P,{locale:k,weekStartsOn:m})},endOfWeek:function(P){return a.ISOWeek?endOfISOWeek(P):endOfWeek(P,{locale:k,weekStartsOn:m})}},T=_[c](r,n==="after"?1:-1);n==="before"&&g?T=max([g,T]):n==="after"&&j&&(T=min([j,T]));var E=!0;if(s){var M=getActiveModifiers(T,s);E=!M.disabled&&!M.hidden}return E?T:p.count>MAX_RETRY?p.lastFocused:getNextFocus(T,{moveBy:c,direction:n,context:a,modifiers:s,retry:__assign(__assign({},p),{count:p.count+1})})}var FocusContext=reactExports.createContext(void 0);function FocusProvider(r){var o=useNavigation(),c=useModifiers(),n=reactExports.useState(),a=n[0],s=n[1],d=reactExports.useState(),p=d[0],m=d[1],g=getInitialFocusTarget(o.displayMonths,c),j=a??(p&&o.isDateDisplayed(p))?p:g,k=function(){m(a),s(void 0)},_=function(P){s(P)},T=useDayPicker(),E=function(P,A){if(a){var H=getNextFocus(a,{moveBy:P,direction:A,context:T,modifiers:c});isSameDay(a,H)||(o.goToDate(H,a),_(H))}},M={focusedDay:a,focusTarget:j,blur:k,focus:_,focusDayAfter:function(){return E("day","after")},focusDayBefore:function(){return E("day","before")},focusWeekAfter:function(){return E("week","after")},focusWeekBefore:function(){return E("week","before")},focusMonthBefore:function(){return E("month","before")},focusMonthAfter:function(){return E("month","after")},focusYearBefore:function(){return E("year","before")},focusYearAfter:function(){return E("year","after")},focusStartOfWeek:function(){return E("startOfWeek","before")},focusEndOfWeek:function(){return E("endOfWeek","after")}};return jsxRuntimeExports.jsx(FocusContext.Provider,{value:M,children:r.children})}function useFocusContext(){var r=reactExports.useContext(FocusContext);if(!r)throw new Error("useFocusContext must be used within a FocusProvider");return r}function useActiveModifiers(r,o){var c=useModifiers(),n=getActiveModifiers(r,c,o);return n}var SelectSingleContext=reactExports.createContext(void 0);function SelectSingleProvider(r){if(!isDayPickerSingle(r.initialProps)){var o={selected:void 0};return jsxRuntimeExports.jsx(SelectSingleContext.Provider,{value:o,children:r.children})}return jsxRuntimeExports.jsx(SelectSingleProviderInternal,{initialProps:r.initialProps,children:r.children})}function SelectSingleProviderInternal(r){var o=r.initialProps,c=r.children,n=function(s,d,p){var m,g,j;if((m=o.onDayClick)===null||m===void 0||m.call(o,s,d,p),d.selected&&!o.required){(g=o.onSelect)===null||g===void 0||g.call(o,void 0,s,d,p);return}(j=o.onSelect)===null||j===void 0||j.call(o,s,s,d,p)},a={selected:o.selected,onDayClick:n};return jsxRuntimeExports.jsx(SelectSingleContext.Provider,{value:a,children:c})}function useSelectSingle(){var r=reactExports.useContext(SelectSingleContext);if(!r)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return r}function useDayEventHandlers(r,o){var c=useDayPicker(),n=useSelectSingle(),a=useSelectMultiple(),s=useSelectRange(),d=useFocusContext(),p=d.focusDayAfter,m=d.focusDayBefore,g=d.focusWeekAfter,j=d.focusWeekBefore,k=d.blur,_=d.focus,T=d.focusMonthBefore,E=d.focusMonthAfter,M=d.focusYearBefore,P=d.focusYearAfter,A=d.focusStartOfWeek,H=d.focusEndOfWeek,Y=function(J){var K,Te,rt,nt;isDayPickerSingle(c)?(K=n.onDayClick)===null||K===void 0||K.call(n,r,o,J):isDayPickerMultiple(c)?(Te=a.onDayClick)===null||Te===void 0||Te.call(a,r,o,J):isDayPickerRange(c)?(rt=s.onDayClick)===null||rt===void 0||rt.call(s,r,o,J):(nt=c.onDayClick)===null||nt===void 0||nt.call(c,r,o,J)},se=function(J){var K;_(r),(K=c.onDayFocus)===null||K===void 0||K.call(c,r,o,J)},z=function(J){var K;k(),(K=c.onDayBlur)===null||K===void 0||K.call(c,r,o,J)},te=function(J){var K;(K=c.onDayMouseEnter)===null||K===void 0||K.call(c,r,o,J)},u=function(J){var K;(K=c.onDayMouseLeave)===null||K===void 0||K.call(c,r,o,J)},fe=function(J){var K;(K=c.onDayPointerEnter)===null||K===void 0||K.call(c,r,o,J)},ae=function(J){var K;(K=c.onDayPointerLeave)===null||K===void 0||K.call(c,r,o,J)},Ee=function(J){var K;(K=c.onDayTouchCancel)===null||K===void 0||K.call(c,r,o,J)},De=function(J){var K;(K=c.onDayTouchEnd)===null||K===void 0||K.call(c,r,o,J)},Me=function(J){var K;(K=c.onDayTouchMove)===null||K===void 0||K.call(c,r,o,J)},re=function(J){var K;(K=c.onDayTouchStart)===null||K===void 0||K.call(c,r,o,J)},U=function(J){var K;(K=c.onDayKeyUp)===null||K===void 0||K.call(c,r,o,J)},ye=function(J){var K;switch(J.key){case"ArrowLeft":J.preventDefault(),J.stopPropagation(),c.dir==="rtl"?p():m();break;case"ArrowRight":J.preventDefault(),J.stopPropagation(),c.dir==="rtl"?m():p();break;case"ArrowDown":J.preventDefault(),J.stopPropagation(),g();break;case"ArrowUp":J.preventDefault(),J.stopPropagation(),j();break;case"PageUp":J.preventDefault(),J.stopPropagation(),J.shiftKey?M():T();break;case"PageDown":J.preventDefault(),J.stopPropagation(),J.shiftKey?P():E();break;case"Home":J.preventDefault(),J.stopPropagation(),A();break;case"End":J.preventDefault(),J.stopPropagation(),H();break}(K=c.onDayKeyDown)===null||K===void 0||K.call(c,r,o,J)},ke={onClick:Y,onFocus:se,onBlur:z,onKeyDown:ye,onKeyUp:U,onMouseEnter:te,onMouseLeave:u,onPointerEnter:fe,onPointerLeave:ae,onTouchCancel:Ee,onTouchEnd:De,onTouchMove:Me,onTouchStart:re};return ke}function useSelectedDays(){var r=useDayPicker(),o=useSelectSingle(),c=useSelectMultiple(),n=useSelectRange(),a=isDayPickerSingle(r)?o.selected:isDayPickerMultiple(r)?c.selected:isDayPickerRange(r)?n.selected:void 0;return a}function isInternalModifier(r){return Object.values(InternalModifier).includes(r)}function getDayClassNames(r,o){var c=[r.classNames.day];return Object.keys(o).forEach(function(n){var a=r.modifiersClassNames[n];if(a)c.push(a);else if(isInternalModifier(n)){var s=r.classNames["day_".concat(n)];s&&c.push(s)}}),c}function getDayStyle(r,o){var c=__assign({},r.styles.day);return Object.keys(o).forEach(function(n){var a;c=__assign(__assign({},c),(a=r.modifiersStyles)===null||a===void 0?void 0:a[n])}),c}function useDayRender(r,o,c){var n,a,s,d=useDayPicker(),p=useFocusContext(),m=useActiveModifiers(r,o),g=useDayEventHandlers(r,m),j=useSelectedDays(),k=!!(d.onDayClick||d.mode!=="default");reactExports.useEffect(function(){var te;m.outside||p.focusedDay&&k&&isSameDay(p.focusedDay,r)&&((te=c.current)===null||te===void 0||te.focus())},[p.focusedDay,r,c,k,m.outside]);var _=getDayClassNames(d,m).join(" "),T=getDayStyle(d,m),E=!!(m.outside&&!d.showOutsideDays||m.hidden),M=(s=(a=d.components)===null||a===void 0?void 0:a.DayContent)!==null&&s!==void 0?s:DayContent,P=jsxRuntimeExports.jsx(M,{date:r,displayMonth:o,activeModifiers:m}),A={style:T,className:_,children:P,role:"gridcell"},H=p.focusTarget&&isSameDay(p.focusTarget,r)&&!m.outside,Y=p.focusedDay&&isSameDay(p.focusedDay,r),se=__assign(__assign(__assign({},A),(n={disabled:m.disabled,role:"gridcell"},n["aria-selected"]=m.selected,n.tabIndex=Y||H?0:-1,n)),g),z={isButton:k,isHidden:E,activeModifiers:m,selectedDays:j,buttonProps:se,divProps:A};return z}function Day(r){var o=reactExports.useRef(null),c=useDayRender(r.date,r.displayMonth,o);return c.isHidden?jsxRuntimeExports.jsx("div",{role:"gridcell"}):c.isButton?jsxRuntimeExports.jsx(Button,__assign({name:"day",ref:o},c.buttonProps)):jsxRuntimeExports.jsx("div",__assign({},c.divProps))}function WeekNumber(r){var o=r.number,c=r.dates,n=useDayPicker(),a=n.onWeekNumberClick,s=n.styles,d=n.classNames,p=n.locale,m=n.labels.labelWeekNumber,g=n.formatters.formatWeekNumber,j=g(Number(o),{locale:p});if(!a)return jsxRuntimeExports.jsx("span",{className:d.weeknumber,style:s.weeknumber,children:j});var k=m(Number(o),{locale:p}),_=function(T){a(o,c,T)};return jsxRuntimeExports.jsx(Button,{name:"week-number","aria-label":k,className:d.weeknumber,style:s.weeknumber,onClick:_,children:j})}function Row(r){var o,c,n=useDayPicker(),a=n.styles,s=n.classNames,d=n.showWeekNumber,p=n.components,m=(o=p==null?void 0:p.Day)!==null&&o!==void 0?o:Day,g=(c=p==null?void 0:p.WeekNumber)!==null&&c!==void 0?c:WeekNumber,j;return d&&(j=jsxRuntimeExports.jsx("td",{className:s.cell,style:a.cell,children:jsxRuntimeExports.jsx(g,{number:r.weekNumber,dates:r.dates})})),jsxRuntimeExports.jsxs("tr",{className:s.row,style:a.row,children:[j,r.dates?.map(function(k){return jsxRuntimeExports.jsx("td",{className:s.cell,style:a.cell,role:"presentation",children:jsxRuntimeExports.jsx(m,{displayMonth:r.displayMonth,date:k})},getUnixTime(k))})]})}function daysToMonthWeeks(r,o,c){for(var n=c!=null&&c.ISOWeek?endOfISOWeek(o):endOfWeek(o,c),a=c!=null&&c.ISOWeek?startOfISOWeek(r):startOfWeek(r,c),s=differenceInCalendarDays(n,a),d=[],p=0;p<=s;p++)d.push(addDays(a,p));var m=d.reduce(function(g,j){var k=c!=null&&c.ISOWeek?getISOWeek(j):getWeek(j,c),_=g.find(function(T){return T.weekNumber===k});return _?(_.dates.push(j),g):(g.push({weekNumber:k,dates:[j]}),g)},[]);return m}function getMonthWeeks(r,o){var c=daysToMonthWeeks(startOfMonth(r),endOfMonth(r),o);if(o!=null&&o.useFixedWeeks){var n=getWeeksInMonth(r,o);if(n<6){var a=c[c.length-1],s=a.dates[a.dates.length-1],d=addWeeks(s,6-n),p=daysToMonthWeeks(addWeeks(s,1),d,o);c.push.apply(c,p)}}return c}function Table(r){var o,c,n,a=useDayPicker(),s=a.locale,d=a.classNames,p=a.styles,m=a.hideHead,g=a.fixedWeeks,j=a.components,k=a.weekStartsOn,_=a.firstWeekContainsDate,T=a.ISOWeek,E=getMonthWeeks(r.displayMonth,{useFixedWeeks:!!g,ISOWeek:T,locale:s,weekStartsOn:k,firstWeekContainsDate:_}),M=(o=j==null?void 0:j.Head)!==null&&o!==void 0?o:Head,P=(c=j==null?void 0:j.Row)!==null&&c!==void 0?c:Row,A=(n=j==null?void 0:j.Footer)!==null&&n!==void 0?n:Footer;return jsxRuntimeExports.jsxs("table",{id:r.id,className:d.table,style:p.table,role:"grid","aria-labelledby":r["aria-labelledby"],children:[!m&&jsxRuntimeExports.jsx(M,{}),jsxRuntimeExports.jsx("tbody",{className:d.tbody,style:p.tbody,children:E?.map(function(H){return jsxRuntimeExports.jsx(P,{displayMonth:r.displayMonth,dates:H.dates,weekNumber:H.weekNumber},H.weekNumber)})}),jsxRuntimeExports.jsx(A,{displayMonth:r.displayMonth})]})}function canUseDOM(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useIsomorphicLayoutEffect=canUseDOM()?reactExports.useLayoutEffect:reactExports.useEffect,serverHandoffComplete=!1,id=0;function genId(){return"react-day-picker-".concat(++id)}function useId(r){var o,c=r??(serverHandoffComplete?genId():null),n=reactExports.useState(c),a=n[0],s=n[1];return useIsomorphicLayoutEffect(function(){a===null&&s(genId())},[]),reactExports.useEffect(function(){serverHandoffComplete===!1&&(serverHandoffComplete=!0)},[]),(o=r??a)!==null&&o!==void 0?o:void 0}function Month(r){var o,c,n=useDayPicker(),a=n.dir,s=n.classNames,d=n.styles,p=n.components,m=useNavigation().displayMonths,g=useId(n.id?"".concat(n.id,"-").concat(r.displayIndex):void 0),j=n.id?"".concat(n.id,"-grid-").concat(r.displayIndex):void 0,k=[s.month],_=d.month,T=r.displayIndex===0,E=r.displayIndex===m.length-1,M=!T&&!E;a==="rtl"&&(o=[T,E],E=o[0],T=o[1]),T&&(k.push(s.caption_start),_=__assign(__assign({},_),d.caption_start)),E&&(k.push(s.caption_end),_=__assign(__assign({},_),d.caption_end)),M&&(k.push(s.caption_between),_=__assign(__assign({},_),d.caption_between));var P=(c=p==null?void 0:p.Caption)!==null&&c!==void 0?c:Caption;return jsxRuntimeExports.jsxs("div",{className:k.join(" "),style:_,children:[jsxRuntimeExports.jsx(P,{id:g,displayMonth:r.displayMonth,displayIndex:r.displayIndex}),jsxRuntimeExports.jsx(Table,{id:j,"aria-labelledby":g,displayMonth:r.displayMonth})]},r.displayIndex)}function Months(r){var o=useDayPicker(),c=o.classNames,n=o.styles;return jsxRuntimeExports.jsx("div",{className:c.months,style:n.months,children:r.children})}function Root(r){var o,c,n=r.initialProps,a=useDayPicker(),s=useFocusContext(),d=useNavigation(),p=reactExports.useState(!1),m=p[0],g=p[1];reactExports.useEffect(function(){a.initialFocus&&s.focusTarget&&(m||(s.focus(s.focusTarget),g(!0)))},[a.initialFocus,m,s.focus,s.focusTarget,s]);var j=[a.classNames.root,a.className];a.numberOfMonths>1&&j.push(a.classNames.multiple_months),a.showWeekNumber&&j.push(a.classNames.with_weeknumber);var k=__assign(__assign({},a.styles.root),a.style),_=Object.keys(n).filter(function(E){return E.startsWith("data-")}).reduce(function(E,M){var P;return __assign(__assign({},E),(P={},P[M]=n[M],P))},{}),T=(c=(o=n.components)===null||o===void 0?void 0:o.Months)!==null&&c!==void 0?c:Months;return jsxRuntimeExports.jsx("div",__assign({className:j.join(" "),style:k,dir:a.dir,id:a.id,nonce:n.nonce,title:n.title,lang:n.lang},_,{children:jsxRuntimeExports.jsx(T,{children:d.displayMonths?.map(function(E,M){return jsxRuntimeExports.jsx(Month,{displayIndex:M,displayMonth:E},M)})})}))}function RootProvider(r){var o=r.children,c=__rest(r,["children"]);return jsxRuntimeExports.jsx(DayPickerProvider,{initialProps:c,children:jsxRuntimeExports.jsx(NavigationProvider,{children:jsxRuntimeExports.jsx(SelectSingleProvider,{initialProps:c,children:jsxRuntimeExports.jsx(SelectMultipleProvider,{initialProps:c,children:jsxRuntimeExports.jsx(SelectRangeProvider,{initialProps:c,children:jsxRuntimeExports.jsx(ModifiersProvider,{children:jsxRuntimeExports.jsx(FocusProvider,{children:o})})})})})})})}function DayPicker(r){return jsxRuntimeExports.jsx(RootProvider,__assign({},r,{children:jsxRuntimeExports.jsx(Root,{initialProps:r})}))}function Calendar({className:r,classNames:o,showOutsideDays:c=!0,...n}){return jsxRuntimeExports.jsx(DayPicker,{showOutsideDays:c,...n,className:cn("rdp w-full rounded-xl border border-slate-200 bg-white p-3 shadow-[0_10px_30px_-20px_rgba(15,23,42,0.5)] dark:border-slate-700 dark:bg-slate-900",r),classNames:{months:"rdp-months flex flex-col gap-4 sm:flex-row sm:gap-6",month:"rdp-month space-y-4",caption:"rdp-caption relative flex items-center justify-center pt-1",caption_label:"rdp-caption_label text-sm font-semibold tracking-wide text-slate-800 dark:text-slate-100",nav:"rdp-nav flex items-center gap-1",nav_button:cn("rdp-nav_button",buttonVariants({variant:"ghost",size:"icon"}),"h-8 w-8 rounded-lg text-slate-600 hover:bg-slate-100 hover:text-slate-900 dark:text-slate-300 dark:hover:bg-slate-800 dark:hover:text-slate-100"),nav_button_previous:"rdp-nav_button_previous absolute left-0",nav_button_next:"rdp-nav_button_next absolute right-0",table:"rdp-table w-full border-collapse space-y-1",head_row:"rdp-head_row flex w-full justify-between",head_cell:"rdp-head_cell text-slate-500 rounded-md w-9 font-normal text-[0.8rem] dark:text-slate-400 uppercase tracking-wide text-center pt-1 mb-2 whitespace-nowrap",row:"rdp-row flex w-full justify-between mt-1",cell:cn("rdp-cell relative h-9 w-9 p-0 text-center text-sm focus-within:relative focus-within:z-10",n.mode==="range"?"[&:has([aria-selected].day-range-end)]:rounded-r-lg [&:has([aria-selected].day-range-start)]:rounded-l-lg [&:has([aria-selected].day-range-middle)]:bg-primary-50 dark:[&:has([aria-selected].day-range-middle)]:bg-primary-900/30":""),day:cn("rdp-day",buttonVariants({variant:"ghost"}),"h-9 w-9 rounded-lg p-0 font-medium text-slate-700 hover:bg-slate-100 hover:text-slate-900 focus-visible:ring-2 focus-visible:ring-primary-500/30 aria-selected:opacity-100 dark:text-slate-200 dark:hover:bg-slate-800 dark:hover:text-white"),day_selected:"rdp-day_selected bg-primary-600 text-white hover:bg-primary-600 hover:text-white focus:bg-primary-600 focus:text-white dark:bg-primary-500 dark:hover:bg-primary-500",day_today:"rdp-day_today border border-primary-300 bg-primary-50 text-primary-700 dark:border-primary-500/50 dark:bg-primary-900/30 dark:text-primary-300",day_outside:"rdp-day_outside text-slate-400 opacity-60 aria-selected:bg-primary-100 aria-selected:text-primary-700 dark:text-slate-600 dark:aria-selected:bg-primary-900/40 dark:aria-selected:text-primary-300",day_disabled:"rdp-day_disabled text-slate-300 opacity-50 dark:text-slate-600",day_range_middle:"rdp-day_range_middle aria-selected:bg-primary-100 aria-selected:text-primary-800 dark:aria-selected:bg-primary-900/40 dark:aria-selected:text-primary-200",day_range_start:"rdp-day_range_start day-range-start aria-selected:bg-primary-600 aria-selected:text-white",day_range_end:"rdp-day_range_end day-range-end aria-selected:bg-primary-600 aria-selected:text-white",day_hidden:"rdp-day_hidden invisible",...o}})}var jquery$1={exports:{}};/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */var jquery=jquery$1.exports,hasRequiredJquery;function requireJquery(){return hasRequiredJquery||(hasRequiredJquery=1,(function(r){(function(o,c){r.exports=o.document?c(o,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return c(n)}})(typeof window<"u"?window:jquery,function(o,c){var n=[],a=Object.getPrototypeOf,s=n.slice,d=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},p=n.push,m=n.indexOf,g={},j=g.toString,k=g.hasOwnProperty,_=k.toString,T=_.call(Object),E={},M=function(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"},P=function(t){return t!=null&&t===t.window},A=o.document,H={type:!0,src:!0,nonce:!0,noModule:!0};function Y(e,t,i){i=i||A;var l,f,h=i.createElement("script");if(h.text=e,t)for(l in H)f=t[l]||t.getAttribute&&t.getAttribute(l),f&&h.setAttribute(l,f);i.head.appendChild(h).parentNode.removeChild(h)}function se(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?g[j.call(e)]||"object":typeof e}var z="3.7.1",te=/HTML$/i,u=function(e,t){return new u.fn.init(e,t)};u.fn=u.prototype={jquery:z,constructor:u,length:0,toArray:function(){return s.call(this)},get:function(e){return e==null?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=u.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return u.each(this,e)},map:function(e){return this.pushStack(u?.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(u.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(u.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:p,sort:n.sort,splice:n.splice},u.extend=u.fn.extend=function(){var e,t,i,l,f,h,x=arguments[0]||{},b=1,v=arguments.length,w=!1;for(typeof x=="boolean"&&(w=x,x=arguments[b]||{},b++),typeof x!="object"&&!M(x)&&(x={}),b===v&&(x=this,b--);b<v;b++)if((e=arguments[b])!=null)for(t in e)l=e[t],!(t==="__proto__"||x===l)&&(w&&l&&(u.isPlainObject(l)||(f=Array.isArray(l)))?(i=x[t],f&&!Array.isArray(i)?h=[]:!f&&!u.isPlainObject(i)?h={}:h=i,f=!1,x[t]=u.extend(w,h,l)):l!==void 0&&(x[t]=l));return x},u.extend({expando:"jQuery"+(z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!e||j.call(e)!=="[object Object]"?!1:(t=a(e),t?(i=k.call(t,"constructor")&&t.constructor,typeof i=="function"&&_.call(i)===T):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){Y(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,l=0;if(fe(e))for(i=e.length;l<i&&t.call(e[l],l,e[l])!==!1;l++);else for(l in e)if(t.call(e[l],l,e[l])===!1)break;return e},text:function(e){var t,i="",l=0,f=e.nodeType;if(!f)for(;t=e[l++];)i+=u.text(t);return f===1||f===11?e.textContent:f===9?e.documentElement.textContent:f===3||f===4?e.nodeValue:i},makeArray:function(e,t){var i=t||[];return e!=null&&(fe(Object(e))?u.merge(i,typeof e=="string"?[e]:e):p.call(i,e)),i},inArray:function(e,t,i){return t==null?-1:m.call(t,e,i)},isXMLDoc:function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!te.test(t||i&&i.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,l=0,f=e.length;l<i;l++)e[f++]=t[l];return e.length=f,e},grep:function(e,t,i){for(var l,f=[],h=0,x=e.length,b=!i;h<x;h++)l=!t(e[h],h),l!==b&&f.push(e[h]);return f},map:function(e,t,i){var l,f,h=0,x=[];if(fe(e))for(l=e.length;h<l;h++)f=t(e[h],h,i),f!=null&&x.push(f);else for(h in e)f=t(e[h],h,i),f!=null&&x.push(f);return d(x)},guid:1,support:E}),typeof Symbol=="function"&&(u.fn[Symbol.iterator]=n[Symbol.iterator]),u.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){g["[object "+t+"]"]=t.toLowerCase()});function fe(e){var t=!!e&&"length"in e&&e.length,i=se(e);return M(e)||P(e)?!1:i==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function ae(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Ee=n.pop,De=n.sort,Me=n.splice,re="[\\x20\\t\\r\\n\\f]",U=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g");u.contains=function(e,t){var i=t&&t.parentNode;return e===i||!!(i&&i.nodeType===1&&(e.contains?e.contains(i):e.compareDocumentPosition&&e.compareDocumentPosition(i)&16))};var ye=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ke(e,t){return t?e==="\0"?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}u.escapeSelector=function(e){return(e+"").replace(ye,ke)};var J=A,K=p;(function(){var e,t,i,l,f,h=K,x,b,v,w,R,I=u.expando,C=0,F=0,ne=qt(),de=qt(),oe=qt(),Se=qt(),Ce=function(y,D){return y===D&&(f=!0),0},Ke="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Qe="(?:\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ce="\\["+re+"*("+Qe+")(?:"+re+"*([*^$|!~]?=)"+re+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Qe+"))|)"+re+"*\\]",ft=":("+Qe+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ce+")*)|.*)\\)|)",he=new RegExp(re+"+","g"),we=new RegExp("^"+re+"*,"+re+"*"),Tt=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),lr=new RegExp(re+"|>"),Ge=new RegExp(ft),Ot=new RegExp("^"+Qe+"$"),Xe={ID:new RegExp("^#("+Qe+")"),CLASS:new RegExp("^\\.("+Qe+")"),TAG:new RegExp("^("+Qe+"|[*])"),ATTR:new RegExp("^"+ce),PSEUDO:new RegExp("^"+ft),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:new RegExp("^(?:"+Ke+")$","i"),needsContext:new RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},it=/^(?:input|select|textarea|button)$/i,st=/^h\d$/i,He=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ur=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\([^\\r\\n\\f])","g"),tt=function(y,D){var N="0x"+y.slice(1)-65536;return D||(N<0?String.fromCharCode(N+65536):String.fromCharCode(N>>10|55296,N&1023|56320))},In=function(){ot()},An=Ut(function(y){return y.disabled===!0&&ae(y,"fieldset")},{dir:"parentNode",next:"legend"});function Pn(){try{return x.activeElement}catch{}}try{h.apply(n=s.call(J.childNodes),J.childNodes),n[J.childNodes.length].nodeType}catch{h={apply:function(D,N){K.apply(D,s.call(N))},call:function(D){K.apply(D,s.call(arguments,1))}}}function ge(y,D,N,S){var L,W,B,Q,q,le,Z,ie=D&&D.ownerDocument,ue=D?D.nodeType:9;if(N=N||[],typeof y!="string"||!y||ue!==1&&ue!==9&&ue!==11)return N;if(!S&&(ot(D),D=D||x,v)){if(ue!==11&&(q=He.exec(y)))if(L=q[1]){if(ue===9)if(B=D.getElementById(L)){if(B.id===L)return h.call(N,B),N}else return N;else if(ie&&(B=ie.getElementById(L))&&ge.contains(D,B)&&B.id===L)return h.call(N,B),N}else{if(q[2])return h.apply(N,D.getElementsByTagName(y)),N;if((L=q[3])&&D.getElementsByClassName)return h.apply(N,D.getElementsByClassName(L)),N}if(!Se[y+" "]&&(!w||!w.test(y))){if(Z=y,ie=D,ue===1&&(lr.test(y)||Tt.test(y))){for(ie=ur.test(y)&&cr(D.parentNode)||D,(ie!=D||!E.scope)&&((Q=D.getAttribute("id"))?Q=u.escapeSelector(Q):D.setAttribute("id",Q=I)),le=Lt(y),W=le.length;W--;)le[W]=(Q?"#"+Q:":scope")+" "+Jt(le[W]);Z=le.join(",")}try{return h.apply(N,ie.querySelectorAll(Z)),N}catch{Se(y,!0)}finally{Q===I&&D.removeAttribute("id")}}}return Kr(y.replace(U,"$1"),D,N,S)}function qt(){var y=[];function D(N,S){return y.push(N+" ")>t.cacheLength&&delete D[y.shift()],D[N+" "]=S}return D}function Je(y){return y[I]=!0,y}function bt(y){var D=x.createElement("fieldset");try{return!!y(D)}catch{return!1}finally{D.parentNode&&D.parentNode.removeChild(D),D=null}}function Fn(y){return function(D){return ae(D,"input")&&D.type===y}}function Wn(y){return function(D){return(ae(D,"input")||ae(D,"button"))&&D.type===y}}function zr(y){return function(D){return"form"in D?D.parentNode&&D.disabled===!1?"label"in D?"label"in D.parentNode?D.parentNode.disabled===y:D.disabled===y:D.isDisabled===y||D.isDisabled!==!y&&An(D)===y:D.disabled===y:"label"in D?D.disabled===y:!1}}function ht(y){return Je(function(D){return D=+D,Je(function(N,S){for(var L,W=y([],N.length,D),B=W.length;B--;)N[L=W[B]]&&(N[L]=!(S[L]=N[L]))})})}function cr(y){return y&&typeof y.getElementsByTagName<"u"&&y}function ot(y){var D,N=y?y.ownerDocument||y:J;return N==x||N.nodeType!==9||!N.documentElement||(x=N,b=x.documentElement,v=!u.isXMLDoc(x),R=b.matches||b.webkitMatchesSelector||b.msMatchesSelector,b.msMatchesSelector&&J!=x&&(D=x.defaultView)&&D.top!==D&&D.addEventListener("unload",In),E.getById=bt(function(S){return b.appendChild(S).id=u.expando,!x.getElementsByName||!x.getElementsByName(u.expando).length}),E.disconnectedMatch=bt(function(S){return R.call(S,"*")}),E.scope=bt(function(){return x.querySelectorAll(":scope")}),E.cssHas=bt(function(){try{return x.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),E.getById?(t.filter.ID=function(S){var L=S.replace(et,tt);return function(W){return W.getAttribute("id")===L}},t.find.ID=function(S,L){if(typeof L.getElementById<"u"&&v){var W=L.getElementById(S);return W?[W]:[]}}):(t.filter.ID=function(S){var L=S.replace(et,tt);return function(W){var B=typeof W.getAttributeNode<"u"&&W.getAttributeNode("id");return B&&B.value===L}},t.find.ID=function(S,L){if(typeof L.getElementById<"u"&&v){var W,B,Q,q=L.getElementById(S);if(q){if(W=q.getAttributeNode("id"),W&&W.value===S)return[q];for(Q=L.getElementsByName(S),B=0;q=Q[B++];)if(W=q.getAttributeNode("id"),W&&W.value===S)return[q]}return[]}}),t.find.TAG=function(S,L){return typeof L.getElementsByTagName<"u"?L.getElementsByTagName(S):L.querySelectorAll(S)},t.find.CLASS=function(S,L){if(typeof L.getElementsByClassName<"u"&&v)return L.getElementsByClassName(S)},w=[],bt(function(S){var L;b.appendChild(S).innerHTML="<a id='"+I+"' href='' disabled='disabled'></a><select id='"+I+"-\r\\' disabled='disabled'><option selected=''></option></select>",S.querySelectorAll("[selected]").length||w.push("\\["+re+"*(?:value|"+Ke+")"),S.querySelectorAll("[id~="+I+"-]").length||w.push("~="),S.querySelectorAll("a#"+I+"+*").length||w.push(".#.+[+~]"),S.querySelectorAll(":checked").length||w.push(":checked"),L=x.createElement("input"),L.setAttribute("type","hidden"),S.appendChild(L).setAttribute("name","D"),b.appendChild(S).disabled=!0,S.querySelectorAll(":disabled").length!==2&&w.push(":enabled",":disabled"),L=x.createElement("input"),L.setAttribute("name",""),S.appendChild(L),S.querySelectorAll("[name='']").length||w.push("\\["+re+"*name"+re+"*="+re+`*(?:''|"")`)}),E.cssHas||w.push(":has"),w=w.length&&new RegExp(w.join("|")),Ce=function(S,L){if(S===L)return f=!0,0;var W=!S.compareDocumentPosition-!L.compareDocumentPosition;return W||(W=(S.ownerDocument||S)==(L.ownerDocument||L)?S.compareDocumentPosition(L):1,W&1||!E.sortDetached&&L.compareDocumentPosition(S)===W?S===x||S.ownerDocument==J&&ge.contains(J,S)?-1:L===x||L.ownerDocument==J&&ge.contains(J,L)?1:l?m.call(l,S)-m.call(l,L):0:W&4?-1:1)}),x}ge.matches=function(y,D){return ge(y,null,null,D)},ge.matchesSelector=function(y,D){if(ot(y),v&&!Se[D+" "]&&(!w||!w.test(D)))try{var N=R.call(y,D);if(N||E.disconnectedMatch||y.document&&y.document.nodeType!==11)return N}catch{Se(D,!0)}return ge(D,x,null,[y]).length>0},ge.contains=function(y,D){return(y.ownerDocument||y)!=x&&ot(y),u.contains(y,D)},ge.attr=function(y,D){(y.ownerDocument||y)!=x&&ot(y);var N=t.attrHandle[D.toLowerCase()],S=N&&k.call(t.attrHandle,D.toLowerCase())?N(y,D,!v):void 0;return S!==void 0?S:y.getAttribute(D)},ge.error=function(y){throw new Error("Syntax error, unrecognized expression: "+y)},u.uniqueSort=function(y){var D,N=[],S=0,L=0;if(f=!E.sortStable,l=!E.sortStable&&s.call(y,0),De.call(y,Ce),f){for(;D=y[L++];)D===y[L]&&(S=N.push(L));for(;S--;)Me.call(y,N[S],1)}return l=null,y},u.fn.uniqueSort=function(){return this.pushStack(u.uniqueSort(s.apply(this)))},t=u.expr={cacheLength:50,createPseudo:Je,match:Xe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(y){return y[1]=y[1].replace(et,tt),y[3]=(y[3]||y[4]||y[5]||"").replace(et,tt),y[2]==="~="&&(y[3]=" "+y[3]+" "),y.slice(0,4)},CHILD:function(y){return y[1]=y[1].toLowerCase(),y[1].slice(0,3)==="nth"?(y[3]||ge.error(y[0]),y[4]=+(y[4]?y[5]+(y[6]||1):2*(y[3]==="even"||y[3]==="odd")),y[5]=+(y[7]+y[8]||y[3]==="odd")):y[3]&&ge.error(y[0]),y},PSEUDO:function(y){var D,N=!y[6]&&y[2];return Xe.CHILD.test(y[0])?null:(y[3]?y[2]=y[4]||y[5]||"":N&&Ge.test(N)&&(D=Lt(N,!0))&&(D=N.indexOf(")",N.length-D)-N.length)&&(y[0]=y[0].slice(0,D),y[2]=N.slice(0,D)),y.slice(0,3))}},filter:{TAG:function(y){var D=y.replace(et,tt).toLowerCase();return y==="*"?function(){return!0}:function(N){return ae(N,D)}},CLASS:function(y){var D=ne[y+" "];return D||(D=new RegExp("(^|"+re+")"+y+"("+re+"|$)"))&&ne(y,function(N){return D.test(typeof N.className=="string"&&N.className||typeof N.getAttribute<"u"&&N.getAttribute("class")||"")})},ATTR:function(y,D,N){return function(S){var L=ge.attr(S,y);return L==null?D==="!=":D?(L+="",D==="="?L===N:D==="!="?L!==N:D==="^="?N&&L.indexOf(N)===0:D==="*="?N&&L.indexOf(N)>-1:D==="$="?N&&L.slice(-N.length)===N:D==="~="?(" "+L.replace(he," ")+" ").indexOf(N)>-1:D==="|="?L===N||L.slice(0,N.length+1)===N+"-":!1):!0}},CHILD:function(y,D,N,S,L){var W=y.slice(0,3)!=="nth",B=y.slice(-4)!=="last",Q=D==="of-type";return S===1&&L===0?(function(q){return!!q.parentNode}):function(q,le,Z){var ie,ue,G,be,Pe,Re=W!==B?"nextSibling":"previousSibling",Ye=q.parentNode,$e=Q&&q.nodeName.toLowerCase(),jt=!Z&&!Q,Le=!1;if(Ye){if(W){for(;Re;){for(G=q;G=G[Re];)if(Q?ae(G,$e):G.nodeType===1)return!1;Pe=Re=y==="only"&&!Pe&&"nextSibling"}return!0}if(Pe=[B?Ye.firstChild:Ye.lastChild],B&&jt){for(ue=Ye[I]||(Ye[I]={}),ie=ue[y]||[],be=ie[0]===C&&ie[1],Le=be&&ie[2],G=be&&Ye.childNodes[be];G=++be&&G&&G[Re]||(Le=be=0)||Pe.pop();)if(G.nodeType===1&&++Le&&G===q){ue[y]=[C,be,Le];break}}else if(jt&&(ue=q[I]||(q[I]={}),ie=ue[y]||[],be=ie[0]===C&&ie[1],Le=be),Le===!1)for(;(G=++be&&G&&G[Re]||(Le=be=0)||Pe.pop())&&!((Q?ae(G,$e):G.nodeType===1)&&++Le&&(jt&&(ue=G[I]||(G[I]={}),ue[y]=[C,Le]),G===q)););return Le-=L,Le===S||Le%S===0&&Le/S>=0}}},PSEUDO:function(y,D){var N,S=t.pseudos[y]||t.setFilters[y.toLowerCase()]||ge.error("unsupported pseudo: "+y);return S[I]?S(D):S.length>1?(N=[y,y,"",D],t.setFilters.hasOwnProperty(y.toLowerCase())?Je(function(L,W){for(var B,Q=S(L,D),q=Q.length;q--;)B=m.call(L,Q[q]),L[B]=!(W[B]=Q[q])}):function(L){return S(L,0,N)}):S}},pseudos:{not:Je(function(y){var D=[],N=[],S=pr(y.replace(U,"$1"));return S[I]?Je(function(L,W,B,Q){for(var q,le=S(L,null,Q,[]),Z=L.length;Z--;)(q=le[Z])&&(L[Z]=!(W[Z]=q))}):function(L,W,B){return D[0]=L,S(D,null,B,N),D[0]=null,!N.pop()}}),has:Je(function(y){return function(D){return ge(y,D).length>0}}),contains:Je(function(y){return y=y.replace(et,tt),function(D){return(D.textContent||u.text(D)).indexOf(y)>-1}}),lang:Je(function(y){return Ot.test(y||"")||ge.error("unsupported lang: "+y),y=y.replace(et,tt).toLowerCase(),function(D){var N;do if(N=v?D.lang:D.getAttribute("xml:lang")||D.getAttribute("lang"))return N=N.toLowerCase(),N===y||N.indexOf(y+"-")===0;while((D=D.parentNode)&&D.nodeType===1);return!1}}),target:function(y){var D=o.location&&o.location.hash;return D&&D.slice(1)===y.id},root:function(y){return y===b},focus:function(y){return y===Pn()&&x.hasFocus()&&!!(y.type||y.href||~y.tabIndex)},enabled:zr(!1),disabled:zr(!0),checked:function(y){return ae(y,"input")&&!!y.checked||ae(y,"option")&&!!y.selected},selected:function(y){return y.parentNode&&y.parentNode.selectedIndex,y.selected===!0},empty:function(y){for(y=y.firstChild;y;y=y.nextSibling)if(y.nodeType<6)return!1;return!0},parent:function(y){return!t.pseudos.empty(y)},header:function(y){return st.test(y.nodeName)},input:function(y){return it.test(y.nodeName)},button:function(y){return ae(y,"input")&&y.type==="button"||ae(y,"button")},text:function(y){var D;return ae(y,"input")&&y.type==="text"&&((D=y.getAttribute("type"))==null||D.toLowerCase()==="text")},first:ht(function(){return[0]}),last:ht(function(y,D){return[D-1]}),eq:ht(function(y,D,N){return[N<0?N+D:N]}),even:ht(function(y,D){for(var N=0;N<D;N+=2)y.push(N);return y}),odd:ht(function(y,D){for(var N=1;N<D;N+=2)y.push(N);return y}),lt:ht(function(y,D,N){var S;for(N<0?S=N+D:N>D?S=D:S=N;--S>=0;)y.push(S);return y}),gt:ht(function(y,D,N){for(var S=N<0?N+D:N;++S<D;)y.push(S);return y})}},t.pseudos.nth=t.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=Fn(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=Wn(e);function Vr(){}Vr.prototype=t.filters=t.pseudos,t.setFilters=new Vr;function Lt(y,D){var N,S,L,W,B,Q,q,le=de[y+" "];if(le)return D?0:le.slice(0);for(B=y,Q=[],q=t.preFilter;B;){(!N||(S=we.exec(B)))&&(S&&(B=B.slice(S[0].length)||B),Q.push(L=[])),N=!1,(S=Tt.exec(B))&&(N=S.shift(),L.push({value:N,type:S[0].replace(U," ")}),B=B.slice(N.length));for(W in t.filter)(S=Xe[W].exec(B))&&(!q[W]||(S=q[W](S)))&&(N=S.shift(),L.push({value:N,type:W,matches:S}),B=B.slice(N.length));if(!N)break}return D?B.length:B?ge.error(y):de(y,Q).slice(0)}function Jt(y){for(var D=0,N=y.length,S="";D<N;D++)S+=y[D].value;return S}function Ut(y,D,N){var S=D.dir,L=D.next,W=L||S,B=N&&W==="parentNode",Q=F++;return D.first?(function(q,le,Z){for(;q=q[S];)if(q.nodeType===1||B)return y(q,le,Z);return!1}):(function(q,le,Z){var ie,ue,G=[C,Q];if(Z){for(;q=q[S];)if((q.nodeType===1||B)&&y(q,le,Z))return!0}else for(;q=q[S];)if(q.nodeType===1||B)if(ue=q[I]||(q[I]={}),L&&ae(q,L))q=q[S]||q;else{if((ie=ue[W])&&ie[0]===C&&ie[1]===Q)return G[2]=ie[2];if(ue[W]=G,G[2]=y(q,le,Z))return!0}return!1})}function dr(y){return y.length>1?function(D,N,S){for(var L=y.length;L--;)if(!y[L](D,N,S))return!1;return!0}:y[0]}function Hn(y,D,N){for(var S=0,L=D.length;S<L;S++)ge(y,D[S],N);return N}function zt(y,D,N,S,L){for(var W,B=[],Q=0,q=y.length,le=D!=null;Q<q;Q++)(W=y[Q])&&(!N||N(W,S,L))&&(B.push(W),le&&D.push(Q));return B}function fr(y,D,N,S,L,W){return S&&!S[I]&&(S=fr(S)),L&&!L[I]&&(L=fr(L,W)),Je(function(B,Q,q,le){var Z,ie,ue,G,be=[],Pe=[],Re=Q.length,Ye=B||Hn(D||"*",q.nodeType?[q]:q,[]),$e=y&&(B||!D)?zt(Ye,be,y,q,le):Ye;if(N?(G=L||(B?y:Re||S)?[]:Q,N($e,G,q,le)):G=$e,S)for(Z=zt(G,Pe),S(Z,[],q,le),ie=Z.length;ie--;)(ue=Z[ie])&&(G[Pe[ie]]=!($e[Pe[ie]]=ue));if(B){if(L||y){if(L){for(Z=[],ie=G.length;ie--;)(ue=G[ie])&&Z.push($e[ie]=ue);L(null,G=[],Z,le)}for(ie=G.length;ie--;)(ue=G[ie])&&(Z=L?m.call(B,ue):be[ie])>-1&&(B[Z]=!(Q[Z]=ue))}}else G=zt(G===Q?G.splice(Re,G.length):G),L?L(null,Q,G,le):h.apply(Q,G)})}function hr(y){for(var D,N,S,L=y.length,W=t.relative[y[0].type],B=W||t.relative[" "],Q=W?1:0,q=Ut(function(ie){return ie===D},B,!0),le=Ut(function(ie){return m.call(D,ie)>-1},B,!0),Z=[function(ie,ue,G){var be=!W&&(G||ue!=i)||((D=ue).nodeType?q(ie,ue,G):le(ie,ue,G));return D=null,be}];Q<L;Q++)if(N=t.relative[y[Q].type])Z=[Ut(dr(Z),N)];else{if(N=t.filter[y[Q].type].apply(null,y[Q].matches),N[I]){for(S=++Q;S<L&&!t.relative[y[S].type];S++);return fr(Q>1&&dr(Z),Q>1&&Jt(y.slice(0,Q-1).concat({value:y[Q-2].type===" "?"*":""})).replace(U,"$1"),N,Q<S&&hr(y.slice(Q,S)),S<L&&hr(y=y.slice(S)),S<L&&Jt(y))}Z.push(N)}return dr(Z)}function Yn(y,D){var N=D.length>0,S=y.length>0,L=function(W,B,Q,q,le){var Z,ie,ue,G=0,be="0",Pe=W&&[],Re=[],Ye=i,$e=W||S&&t.find.TAG("*",le),jt=C+=Ye==null?1:Math.random()||.1,Le=$e.length;for(le&&(i=B==x||B||le);be!==Le&&(Z=$e[be])!=null;be++){if(S&&Z){for(ie=0,!B&&Z.ownerDocument!=x&&(ot(Z),Q=!v);ue=y[ie++];)if(ue(Z,B||x,Q)){h.call(q,Z);break}le&&(C=jt)}N&&((Z=!ue&&Z)&&G--,W&&Pe.push(Z))}if(G+=be,N&&be!==G){for(ie=0;ue=D[ie++];)ue(Pe,Re,B,Q);if(W){if(G>0)for(;be--;)Pe[be]||Re[be]||(Re[be]=Ee.call(q));Re=zt(Re)}h.apply(q,Re),le&&!W&&Re.length>0&&G+D.length>1&&u.uniqueSort(q)}return le&&(C=jt,i=Ye),Pe};return N?Je(L):L}function pr(y,D){var N,S=[],L=[],W=oe[y+" "];if(!W){for(D||(D=Lt(y)),N=D.length;N--;)W=hr(D[N]),W[I]?S.push(W):L.push(W);W=oe(y,Yn(L,S)),W.selector=y}return W}function Kr(y,D,N,S){var L,W,B,Q,q,le=typeof y=="function"&&y,Z=!S&&Lt(y=le.selector||y);if(N=N||[],Z.length===1){if(W=Z[0]=Z[0].slice(0),W.length>2&&(B=W[0]).type==="ID"&&D.nodeType===9&&v&&t.relative[W[1].type]){if(D=(t.find.ID(B.matches[0].replace(et,tt),D)||[])[0],D)le&&(D=D.parentNode);else return N;y=y.slice(W.shift().value.length)}for(L=Xe.needsContext.test(y)?0:W.length;L--&&(B=W[L],!t.relative[Q=B.type]);)if((q=t.find[Q])&&(S=q(B.matches[0].replace(et,tt),ur.test(W[0].type)&&cr(D.parentNode)||D))){if(W.splice(L,1),y=S.length&&Jt(W),!y)return h.apply(N,S),N;break}}return(le||pr(y,Z))(S,D,!v,N,!D||ur.test(y)&&cr(D.parentNode)||D),N}E.sortStable=I.split("").sort(Ce).join("")===I,ot(),E.sortDetached=bt(function(y){return y.compareDocumentPosition(x.createElement("fieldset"))&1}),u.find=ge,u.expr[":"]=u.expr.pseudos,u.unique=u.uniqueSort,ge.compile=pr,ge.select=Kr,ge.setDocument=ot,ge.tokenize=Lt,ge.escape=u.escapeSelector,ge.getText=u.text,ge.isXML=u.isXMLDoc,ge.selectors=u.expr,ge.support=u.support,ge.uniqueSort=u.uniqueSort})();var Te=function(e,t,i){for(var l=[],f=i!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(f&&u(e).is(i))break;l.push(e)}return l},rt=function(e,t){for(var i=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&i.push(e);return i},nt=u.expr.match.needsContext,Dt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function kt(e,t,i){return M(t)?u.grep(e,function(l,f){return!!t.call(l,f,l)!==i}):t.nodeType?u.grep(e,function(l){return l===t!==i}):typeof t!="string"?u.grep(e,function(l){return m.call(t,l)>-1!==i}):u.filter(t,e,i)}u.filter=function(e,t,i){var l=t[0];return i&&(e=":not("+e+")"),t.length===1&&l.nodeType===1?u.find.matchesSelector(l,e)?[l]:[]:u.find.matches(e,u.grep(t,function(f){return f.nodeType===1}))},u.fn.extend({find:function(e){var t,i,l=this.length,f=this;if(typeof e!="string")return this.pushStack(u(e).filter(function(){for(t=0;t<l;t++)if(u.contains(f[t],this))return!0}));for(i=this.pushStack([]),t=0;t<l;t++)u.find(e,f[t],i);return l>1?u.uniqueSort(i):i},filter:function(e){return this.pushStack(kt(this,e||[],!1))},not:function(e){return this.pushStack(kt(this,e||[],!0))},is:function(e){return!!kt(this,typeof e=="string"&&nt.test(e)?u(e):e||[],!1).length}});var It,Vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,At=u.fn.init=function(e,t,i){var l,f;if(!e)return this;if(i=i||It,typeof e=="string")if(e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?l=[null,e,null]:l=Vt.exec(e),l&&(l[1]||!t))if(l[1]){if(t=t instanceof u?t[0]:t,u.merge(this,u.parseHTML(l[1],t&&t.nodeType?t.ownerDocument||t:A,!0)),Dt.test(l[1])&&u.isPlainObject(t))for(l in t)M(this[l])?this[l](t[l]):this.attr(l,t[l]);return this}else return f=A.getElementById(l[2]),f&&(this[0]=f,this.length=1),this;else return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);else{if(e.nodeType)return this[0]=e,this.length=1,this;if(M(e))return i.ready!==void 0?i.ready(e):e(u)}return u.makeArray(e,this)};At.prototype=u.fn,It=u(A);var ve=/^(?:parents|prev(?:Until|All))/,wt={children:!0,contents:!0,next:!0,prev:!0};u.fn.extend({has:function(e){var t=u(e,this),i=t.length;return this.filter(function(){for(var l=0;l<i;l++)if(u.contains(this,t[l]))return!0})},closest:function(e,t){var i,l=0,f=this.length,h=[],x=typeof e!="string"&&u(e);if(!nt.test(e)){for(;l<f;l++)for(i=this[l];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(x?x.index(i)>-1:i.nodeType===1&&u.find.matchesSelector(i,e))){h.push(i);break}}return this.pushStack(h.length>1?u.uniqueSort(h):h)},index:function(e){return e?typeof e=="string"?m.call(u(e),this[0]):m.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(u.uniqueSort(u.merge(this.get(),u(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function Et(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}u.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return Te(e,"parentNode")},parentsUntil:function(e,t,i){return Te(e,"parentNode",i)},next:function(e){return Et(e,"nextSibling")},prev:function(e){return Et(e,"previousSibling")},nextAll:function(e){return Te(e,"nextSibling")},prevAll:function(e){return Te(e,"previousSibling")},nextUntil:function(e,t,i){return Te(e,"nextSibling",i)},prevUntil:function(e,t,i){return Te(e,"previousSibling",i)},siblings:function(e){return rt((e.parentNode||{}).firstChild,e)},children:function(e){return rt(e.firstChild)},contents:function(e){return e.contentDocument!=null&&a(e.contentDocument)?e.contentDocument:(ae(e,"template")&&(e=e.content||e),u.merge([],e.childNodes))}},function(e,t){u.fn[e]=function(i,l){var f=u?.map(this,t,i);return e.slice(-5)!=="Until"&&(l=i),l&&typeof l=="string"&&(f=u.filter(l,f)),this.length>1&&(wt[e]||u.uniqueSort(f),ve.test(e)&&f.reverse()),this.pushStack(f)}});var Ne=/[^\x20\t\r\n\f]+/g;function Ue(e){var t={};return u.each(e.match(Ne)||[],function(i,l){t[l]=!0}),t}u.Callbacks=function(e){e=typeof e=="string"?Ue(e):u.extend({},e);var t,i,l,f,h=[],x=[],b=-1,v=function(){for(f=f||e.once,l=t=!0;x.length;b=-1)for(i=x.shift();++b<h.length;)h[b].apply(i[0],i[1])===!1&&e.stopOnFalse&&(b=h.length,i=!1);e.memory||(i=!1),t=!1,f&&(i?h=[]:h="")},w={add:function(){return h&&(i&&!t&&(b=h.length-1,x.push(i)),(function R(I){u.each(I,function(C,F){M(F)?(!e.unique||!w.has(F))&&h.push(F):F&&F.length&&se(F)!=="string"&&R(F)})})(arguments),i&&!t&&v()),this},remove:function(){return u.each(arguments,function(R,I){for(var C;(C=u.inArray(I,h,C))>-1;)h.splice(C,1),C<=b&&b--}),this},has:function(R){return R?u.inArray(R,h)>-1:h.length>0},empty:function(){return h&&(h=[]),this},disable:function(){return f=x=[],h=i="",this},disabled:function(){return!h},lock:function(){return f=x=[],!i&&!t&&(h=i=""),this},locked:function(){return!!f},fireWith:function(R,I){return f||(I=I||[],I=[R,I.slice?I.slice():I],x.push(I),t||v()),this},fire:function(){return w.fireWith(this,arguments),this},fired:function(){return!!l}};return w};function ze(e){return e}function lt(e){throw e}function O(e,t,i,l){var f;try{e&&M(f=e.promise)?f.call(e).done(t).fail(i):e&&M(f=e.then)?f.call(e,t,i):t.apply(void 0,[e].slice(l))}catch(h){i.apply(void 0,[h])}}u.extend({Deferred:function(e){var t=[["notify","progress",u.Callbacks("memory"),u.Callbacks("memory"),2],["resolve","done",u.Callbacks("once memory"),u.Callbacks("once memory"),0,"resolved"],["reject","fail",u.Callbacks("once memory"),u.Callbacks("once memory"),1,"rejected"]],i="pending",l={state:function(){return i},always:function(){return f.done(arguments).fail(arguments),this},catch:function(h){return l.then(null,h)},pipe:function(){var h=arguments;return u.Deferred(function(x){u.each(t,function(b,v){var w=M(h[v[4]])&&h[v[4]];f[v[1]](function(){var R=w&&w.apply(this,arguments);R&&M(R.promise)?R.promise().progress(x.notify).done(x.resolve).fail(x.reject):x[v[0]+"With"](this,w?[R]:arguments)})}),h=null}).promise()},then:function(h,x,b){var v=0;function w(R,I,C,F){return function(){var ne=this,de=arguments,oe=function(){var Ce,Ke;if(!(R<v)){if(Ce=C.apply(ne,de),Ce===I.promise())throw new TypeError("Thenable self-resolution");Ke=Ce&&(typeof Ce=="object"||typeof Ce=="function")&&Ce.then,M(Ke)?F?Ke.call(Ce,w(v,I,ze,F),w(v,I,lt,F)):(v++,Ke.call(Ce,w(v,I,ze,F),w(v,I,lt,F),w(v,I,ze,I.notifyWith))):(C!==ze&&(ne=void 0,de=[Ce]),(F||I.resolveWith)(ne,de))}},Se=F?oe:function(){try{oe()}catch(Ce){u.Deferred.exceptionHook&&u.Deferred.exceptionHook(Ce,Se.error),R+1>=v&&(C!==lt&&(ne=void 0,de=[Ce]),I.rejectWith(ne,de))}};R?Se():(u.Deferred.getErrorHook?Se.error=u.Deferred.getErrorHook():u.Deferred.getStackHook&&(Se.error=u.Deferred.getStackHook()),o.setTimeout(Se))}}return u.Deferred(function(R){t[0][3].add(w(0,R,M(b)?b:ze,R.notifyWith)),t[1][3].add(w(0,R,M(h)?h:ze)),t[2][3].add(w(0,R,M(x)?x:lt))}).promise()},promise:function(h){return h!=null?u.extend(h,l):l}},f={};return u.each(t,function(h,x){var b=x[2],v=x[5];l[x[1]]=b.add,v&&b.add(function(){i=v},t[3-h][2].disable,t[3-h][3].disable,t[0][2].lock,t[0][3].lock),b.add(x[3].fire),f[x[0]]=function(){return f[x[0]+"With"](this===f?void 0:this,arguments),this},f[x[0]+"With"]=b.fireWith}),l.promise(f),e&&e.call(f,f),f},when:function(e){var t=arguments.length,i=t,l=Array(i),f=s.call(arguments),h=u.Deferred(),x=function(b){return function(v){l[b]=this,f[b]=arguments.length>1?s.call(arguments):v,--t||h.resolveWith(l,f)}};if(t<=1&&(O(e,h.done(x(i)).resolve,h.reject,!t),h.state()==="pending"||M(f[i]&&f[i].then)))return h.then();for(;i--;)O(f[i],x(i),h.reject);return h.promise()}});var me=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;u.Deferred.exceptionHook=function(e,t){o.console&&o.console.warn&&e&&me.test(e.name)&&o.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},u.readyException=function(e){o.setTimeout(function(){throw e})};var pe=u.Deferred();u.fn.ready=function(e){return pe.then(e).catch(function(t){u.readyException(t)}),this},u.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--u.readyWait:u.isReady)||(u.isReady=!0,!(e!==!0&&--u.readyWait>0)&&pe.resolveWith(A,[u]))}}),u.ready.then=pe.then;function ee(){A.removeEventListener("DOMContentLoaded",ee),o.removeEventListener("load",ee),u.ready()}A.readyState==="complete"||A.readyState!=="loading"&&!A.documentElement.doScroll?o.setTimeout(u.ready):(A.addEventListener("DOMContentLoaded",ee),o.addEventListener("load",ee));var xe=function(e,t,i,l,f,h,x){var b=0,v=e.length,w=i==null;if(se(i)==="object"){f=!0;for(b in i)xe(e,t,b,i[b],!0,h,x)}else if(l!==void 0&&(f=!0,M(l)||(x=!0),w&&(x?(t.call(e,l),t=null):(w=t,t=function(R,I,C){return w.call(u(R),C)})),t))for(;b<v;b++)t(e[b],i,x?l:l.call(e[b],b,t(e[b],i)));return f?e:w?t.call(e):v?t(e[0],i):h},Fe=/^-ms-/,Ve=/-([a-z])/g;function Oe(e,t){return t.toUpperCase()}function je(e){return e.replace(Fe,"ms-").replace(Ve,Oe)}var Be=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function at(){this.expando=u.expando+at.uid++}at.uid=1,at.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Be(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var l,f=this.cache(e);if(typeof t=="string")f[je(t)]=i;else for(l in t)f[je(l)]=t[l];return f},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][je(t)]},access:function(e,t,i){return t===void 0||t&&typeof t=="string"&&i===void 0?this.get(e,t):(this.set(e,t,i),i!==void 0?i:t)},remove:function(e,t){var i,l=e[this.expando];if(l!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t?.map(je):(t=je(t),t=t in l?[t]:t.match(Ne)||[]),i=t.length;i--;)delete l[t[i]];(t===void 0||u.isEmptyObject(l))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!u.isEmptyObject(t)}};var V=new at,_e=new at,Pt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Qr=/[A-Z]/g;function Gr(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:Pt.test(e)?JSON.parse(e):e}function mr(e,t,i){var l;if(i===void 0&&e.nodeType===1)if(l="data-"+t.replace(Qr,"-$&").toLowerCase(),i=e.getAttribute(l),typeof i=="string"){try{i=Gr(i)}catch{}_e.set(e,t,i)}else i=void 0;return i}u.extend({hasData:function(e){return _e.hasData(e)||V.hasData(e)},data:function(e,t,i){return _e.access(e,t,i)},removeData:function(e,t){_e.remove(e,t)},_data:function(e,t,i){return V.access(e,t,i)},_removeData:function(e,t){V.remove(e,t)}}),u.fn.extend({data:function(e,t){var i,l,f,h=this[0],x=h&&h.attributes;if(e===void 0){if(this.length&&(f=_e.get(h),h.nodeType===1&&!V.get(h,"hasDataAttrs"))){for(i=x.length;i--;)x[i]&&(l=x[i].name,l.indexOf("data-")===0&&(l=je(l.slice(5)),mr(h,l,f[l])));V.set(h,"hasDataAttrs",!0)}return f}return typeof e=="object"?this.each(function(){_e.set(this,e)}):xe(this,function(b){var v;if(h&&b===void 0)return v=_e.get(h,e),v!==void 0||(v=mr(h,e),v!==void 0)?v:void 0;this.each(function(){_e.set(this,e,b)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){_e.remove(this,e)})}}),u.extend({queue:function(e,t,i){var l;if(e)return t=(t||"fx")+"queue",l=V.get(e,t),i&&(!l||Array.isArray(i)?l=V.access(e,t,u.makeArray(i)):l.push(i)),l||[]},dequeue:function(e,t){t=t||"fx";var i=u.queue(e,t),l=i.length,f=i.shift(),h=u._queueHooks(e,t),x=function(){u.dequeue(e,t)};f==="inprogress"&&(f=i.shift(),l--),f&&(t==="fx"&&i.unshift("inprogress"),delete h.stop,f.call(e,x,h)),!l&&h&&h.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return V.get(e,i)||V.access(e,i,{empty:u.Callbacks("once memory").add(function(){V.remove(e,[t+"queue",i])})})}}),u.fn.extend({queue:function(e,t){var i=2;return typeof e!="string"&&(t=e,e="fx",i--),arguments.length<i?u.queue(this[0],e):t===void 0?this:this.each(function(){var l=u.queue(this,e,t);u._queueHooks(this,e),e==="fx"&&l[0]!=="inprogress"&&u.dequeue(this,e)})},dequeue:function(e){return this.each(function(){u.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,l=1,f=u.Deferred(),h=this,x=this.length,b=function(){--l||f.resolveWith(h,[h])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";x--;)i=V.get(h[x],e+"queueHooks"),i&&i.empty&&(l++,i.empty.add(b));return b(),f.promise(t)}});var xr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Nt=new RegExp("^(?:([+-])=|)("+xr+")([a-z%]*)$","i"),Ze=["Top","Right","Bottom","Left"],ut=A.documentElement,pt=function(e){return u.contains(e.ownerDocument,e)},Xr={composed:!0};ut.getRootNode&&(pt=function(e){return u.contains(e.ownerDocument,e)||e.getRootNode(Xr)===e.ownerDocument});var Ft=function(e,t){return e=t||e,e.style.display==="none"||e.style.display===""&&pt(e)&&u.css(e,"display")==="none"};function gr(e,t,i,l){var f,h,x=20,b=l?function(){return l.cur()}:function(){return u.css(e,t,"")},v=b(),w=i&&i[3]||(u.cssNumber[t]?"":"px"),R=e.nodeType&&(u.cssNumber[t]||w!=="px"&&+v)&&Nt.exec(u.css(e,t));if(R&&R[3]!==w){for(v=v/2,w=w||R[3],R=+v||1;x--;)u.style(e,t,R+w),(1-h)*(1-(h=b()/v||.5))<=0&&(x=0),R=R/h;R=R*2,u.style(e,t,R+w),i=i||[]}return i&&(R=+R||+v||0,f=i[1]?R+(i[1]+1)*i[2]:+i[2],l&&(l.unit=w,l.start=R,l.end=f)),f}var yr={};function $r(e){var t,i=e.ownerDocument,l=e.nodeName,f=yr[l];return f||(t=i.body.appendChild(i.createElement(l)),f=u.css(t,"display"),t.parentNode.removeChild(t),f==="none"&&(f="block"),yr[l]=f,f)}function mt(e,t){for(var i,l,f=[],h=0,x=e.length;h<x;h++)l=e[h],l.style&&(i=l.style.display,t?(i==="none"&&(f[h]=V.get(l,"display")||null,f[h]||(l.style.display="")),l.style.display===""&&Ft(l)&&(f[h]=$r(l))):i!=="none"&&(f[h]="none",V.set(l,"display",i)));for(h=0;h<x;h++)f[h]!=null&&(e[h].style.display=f[h]);return e}u.fn.extend({show:function(){return mt(this,!0)},hide:function(){return mt(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){Ft(this)?u(this).show():u(this).hide()})}});var Ct=/^(?:checkbox|radio)$/i,vr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,br=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=A.createDocumentFragment(),t=e.appendChild(A.createElement("div")),i=A.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),t.appendChild(i),E.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",E.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",E.option=!!t.lastChild})();var We={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};We.tbody=We.tfoot=We.colgroup=We.caption=We.thead,We.th=We.td,E.option||(We.optgroup=We.option=[1,"<select multiple='multiple'>","</select>"]);function Ie(e,t){var i;return typeof e.getElementsByTagName<"u"?i=e.getElementsByTagName(t||"*"):typeof e.querySelectorAll<"u"?i=e.querySelectorAll(t||"*"):i=[],t===void 0||t&&ae(e,t)?u.merge([e],i):i}function Kt(e,t){for(var i=0,l=e.length;i<l;i++)V.set(e[i],"globalEval",!t||V.get(t[i],"globalEval"))}var Zr=/<|&#?\w+;/;function jr(e,t,i,l,f){for(var h,x,b,v,w,R,I=t.createDocumentFragment(),C=[],F=0,ne=e.length;F<ne;F++)if(h=e[F],h||h===0)if(se(h)==="object")u.merge(C,h.nodeType?[h]:h);else if(!Zr.test(h))C.push(t.createTextNode(h));else{for(x=x||I.appendChild(t.createElement("div")),b=(vr.exec(h)||["",""])[1].toLowerCase(),v=We[b]||We._default,x.innerHTML=v[1]+u.htmlPrefilter(h)+v[2],R=v[0];R--;)x=x.lastChild;u.merge(C,x.childNodes),x=I.firstChild,x.textContent=""}for(I.textContent="",F=0;h=C[F++];){if(l&&u.inArray(h,l)>-1){f&&f.push(h);continue}if(w=pt(h),x=Ie(I.appendChild(h),"script"),w&&Kt(x),i)for(R=0;h=x[R++];)br.test(h.type||"")&&i.push(h)}return I}var Dr=/^([^.]*)(?:\.(.+)|)/;function xt(){return!0}function gt(){return!1}function Qt(e,t,i,l,f,h){var x,b;if(typeof t=="object"){typeof i!="string"&&(l=l||i,i=void 0);for(b in t)Qt(e,b,i,l,t[b],h);return e}if(l==null&&f==null?(f=i,l=i=void 0):f==null&&(typeof i=="string"?(f=l,l=void 0):(f=l,l=i,i=void 0)),f===!1)f=gt;else if(!f)return e;return h===1&&(x=f,f=function(v){return u().off(v),x.apply(this,arguments)},f.guid=x.guid||(x.guid=u.guid++)),e.each(function(){u.event.add(this,t,f,l,i)})}u.event={global:{},add:function(e,t,i,l,f){var h,x,b,v,w,R,I,C,F,ne,de,oe=V.get(e);if(Be(e))for(i.handler&&(h=i,i=h.handler,f=h.selector),f&&u.find.matchesSelector(ut,f),i.guid||(i.guid=u.guid++),(v=oe.events)||(v=oe.events=Object.create(null)),(x=oe.handle)||(x=oe.handle=function(Se){return typeof u<"u"&&u.event.triggered!==Se.type?u.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ne)||[""],w=t.length;w--;)b=Dr.exec(t[w])||[],F=de=b[1],ne=(b[2]||"").split(".").sort(),F&&(I=u.event.special[F]||{},F=(f?I.delegateType:I.bindType)||F,I=u.event.special[F]||{},R=u.extend({type:F,origType:de,data:l,handler:i,guid:i.guid,selector:f,needsContext:f&&u.expr.match.needsContext.test(f),namespace:ne.join(".")},h),(C=v[F])||(C=v[F]=[],C.delegateCount=0,(!I.setup||I.setup.call(e,l,ne,x)===!1)&&e.addEventListener&&e.addEventListener(F,x)),I.add&&(I.add.call(e,R),R.handler.guid||(R.handler.guid=i.guid)),f?C.splice(C.delegateCount++,0,R):C.push(R),u.event.global[F]=!0)},remove:function(e,t,i,l,f){var h,x,b,v,w,R,I,C,F,ne,de,oe=V.hasData(e)&&V.get(e);if(!(!oe||!(v=oe.events))){for(t=(t||"").match(Ne)||[""],w=t.length;w--;){if(b=Dr.exec(t[w])||[],F=de=b[1],ne=(b[2]||"").split(".").sort(),!F){for(F in v)u.event.remove(e,F+t[w],i,l,!0);continue}for(I=u.event.special[F]||{},F=(l?I.delegateType:I.bindType)||F,C=v[F]||[],b=b[2]&&new RegExp("(^|\\.)"+ne.join("\\.(?:.*\\.|)")+"(\\.|$)"),x=h=C.length;h--;)R=C[h],(f||de===R.origType)&&(!i||i.guid===R.guid)&&(!b||b.test(R.namespace))&&(!l||l===R.selector||l==="**"&&R.selector)&&(C.splice(h,1),R.selector&&C.delegateCount--,I.remove&&I.remove.call(e,R));x&&!C.length&&((!I.teardown||I.teardown.call(e,ne,oe.handle)===!1)&&u.removeEvent(e,F,oe.handle),delete v[F])}u.isEmptyObject(v)&&V.remove(e,"handle events")}},dispatch:function(e){var t,i,l,f,h,x,b=new Array(arguments.length),v=u.event.fix(e),w=(V.get(this,"events")||Object.create(null))[v.type]||[],R=u.event.special[v.type]||{};for(b[0]=v,t=1;t<arguments.length;t++)b[t]=arguments[t];if(v.delegateTarget=this,!(R.preDispatch&&R.preDispatch.call(this,v)===!1)){for(x=u.event.handlers.call(this,v,w),t=0;(f=x[t++])&&!v.isPropagationStopped();)for(v.currentTarget=f.elem,i=0;(h=f.handlers[i++])&&!v.isImmediatePropagationStopped();)(!v.rnamespace||h.namespace===!1||v.rnamespace.test(h.namespace))&&(v.handleObj=h,v.data=h.data,l=((u.event.special[h.origType]||{}).handle||h.handler).apply(f.elem,b),l!==void 0&&(v.result=l)===!1&&(v.preventDefault(),v.stopPropagation()));return R.postDispatch&&R.postDispatch.call(this,v),v.result}},handlers:function(e,t){var i,l,f,h,x,b=[],v=t.delegateCount,w=e.target;if(v&&w.nodeType&&!(e.type==="click"&&e.button>=1)){for(;w!==this;w=w.parentNode||this)if(w.nodeType===1&&!(e.type==="click"&&w.disabled===!0)){for(h=[],x={},i=0;i<v;i++)l=t[i],f=l.selector+" ",x[f]===void 0&&(x[f]=l.needsContext?u(f,this).index(w)>-1:u.find(f,this,null,[w]).length),x[f]&&h.push(l);h.length&&b.push({elem:w,handlers:h})}}return w=this,v<t.length&&b.push({elem:w,handlers:t.slice(v)}),b},addProp:function(e,t){Object.defineProperty(u.Event.prototype,e,{enumerable:!0,configurable:!0,get:M(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(i){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:i})}})},fix:function(e){return e[u.expando]?e:new u.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ct.test(t.type)&&t.click&&ae(t,"input")&&Wt(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ct.test(t.type)&&t.click&&ae(t,"input")&&Wt(t,"click"),!0},_default:function(e){var t=e.target;return Ct.test(t.type)&&t.click&&ae(t,"input")&&V.get(t,"click")||ae(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}};function Wt(e,t,i){if(!i){V.get(e,t)===void 0&&u.event.add(e,t,xt);return}V.set(e,t,!1),u.event.add(e,t,{namespace:!1,handler:function(l){var f,h=V.get(this,t);if(l.isTrigger&1&&this[t]){if(h)(u.event.special[t]||{}).delegateType&&l.stopPropagation();else if(h=s.call(arguments),V.set(this,t,h),this[t](),f=V.get(this,t),V.set(this,t,!1),h!==f)return l.stopImmediatePropagation(),l.preventDefault(),f}else h&&(V.set(this,t,u.event.trigger(h[0],h.slice(1),this)),l.stopPropagation(),l.isImmediatePropagationStopped=xt)}})}u.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},u.Event=function(e,t){if(!(this instanceof u.Event))return new u.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?xt:gt,this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&u.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[u.expando]=!0},u.Event.prototype={constructor:u.Event,isDefaultPrevented:gt,isPropagationStopped:gt,isImmediatePropagationStopped:gt,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=xt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=xt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=xt,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},u.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},u.event.addProp),u.each({focus:"focusin",blur:"focusout"},function(e,t){function i(l){if(A.documentMode){var f=V.get(this,"handle"),h=u.event.fix(l);h.type=l.type==="focusin"?"focus":"blur",h.isSimulated=!0,f(l),h.target===h.currentTarget&&f(h)}else u.event.simulate(t,l.target,u.event.fix(l))}u.event.special[e]={setup:function(){var l;if(Wt(this,e,!0),A.documentMode)l=V.get(this,t),l||this.addEventListener(t,i),V.set(this,t,(l||0)+1);else return!1},trigger:function(){return Wt(this,e),!0},teardown:function(){var l;if(A.documentMode)l=V.get(this,t)-1,l?V.set(this,t,l):(this.removeEventListener(t,i),V.remove(this,t));else return!1},_default:function(l){return V.get(l.target,e)},delegateType:t},u.event.special[t]={setup:function(){var l=this.ownerDocument||this.document||this,f=A.documentMode?this:l,h=V.get(f,t);h||(A.documentMode?this.addEventListener(t,i):l.addEventListener(e,i,!0)),V.set(f,t,(h||0)+1)},teardown:function(){var l=this.ownerDocument||this.document||this,f=A.documentMode?this:l,h=V.get(f,t)-1;h?V.set(f,t,h):(A.documentMode?this.removeEventListener(t,i):l.removeEventListener(e,i,!0),V.remove(f,t))}}}),u.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){u.event.special[e]={delegateType:t,bindType:t,handle:function(i){var l,f=this,h=i.relatedTarget,x=i.handleObj;return(!h||h!==f&&!u.contains(f,h))&&(i.type=x.origType,l=x.handler.apply(this,arguments),i.type=t),l}}}),u.fn.extend({on:function(e,t,i,l){return Qt(this,e,t,i,l)},one:function(e,t,i,l){return Qt(this,e,t,i,l,1)},off:function(e,t,i){var l,f;if(e&&e.preventDefault&&e.handleObj)return l=e.handleObj,u(e.delegateTarget).off(l.namespace?l.origType+"."+l.namespace:l.origType,l.selector,l.handler),this;if(typeof e=="object"){for(f in e)this.off(f,t,e[f]);return this}return(t===!1||typeof t=="function")&&(i=t,t=void 0),i===!1&&(i=gt),this.each(function(){u.event.remove(this,e,i,t)})}});var en=/<script|<style|<link/i,tn=/checked\s*(?:[^=]|=\s*.checked.)/i,rn=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function kr(e,t){return ae(e,"table")&&ae(t.nodeType!==11?t:t.firstChild,"tr")&&u(e).children("tbody")[0]||e}function nn(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function an(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function wr(e,t){var i,l,f,h,x,b,v;if(t.nodeType===1){if(V.hasData(e)&&(h=V.get(e),v=h.events,v)){V.remove(t,"handle events");for(f in v)for(i=0,l=v[f].length;i<l;i++)u.event.add(t,f,v[f][i])}_e.hasData(e)&&(x=_e.access(e),b=u.extend({},x),_e.set(t,b))}}function sn(e,t){var i=t.nodeName.toLowerCase();i==="input"&&Ct.test(e.type)?t.checked=e.checked:(i==="input"||i==="textarea")&&(t.defaultValue=e.defaultValue)}function yt(e,t,i,l){t=d(t);var f,h,x,b,v,w,R=0,I=e.length,C=I-1,F=t[0],ne=M(F);if(ne||I>1&&typeof F=="string"&&!E.checkClone&&tn.test(F))return e.each(function(de){var oe=e.eq(de);ne&&(t[0]=F.call(this,de,oe.html())),yt(oe,t,i,l)});if(I&&(f=jr(t,e[0].ownerDocument,!1,e,l),h=f.firstChild,f.childNodes.length===1&&(f=h),h||l)){for(x=u?.map(Ie(f,"script"),nn),b=x.length;R<I;R++)v=f,R!==C&&(v=u.clone(v,!0,!0),b&&u.merge(x,Ie(v,"script"))),i.call(e[R],v,R);if(b)for(w=x[x.length-1].ownerDocument,u?.map(x,an),R=0;R<b;R++)v=x[R],br.test(v.type||"")&&!V.access(v,"globalEval")&&u.contains(w,v)&&(v.src&&(v.type||"").toLowerCase()!=="module"?u._evalUrl&&!v.noModule&&u._evalUrl(v.src,{nonce:v.nonce||v.getAttribute("nonce")},w):Y(v.textContent.replace(rn,""),v,w))}return e}function Er(e,t,i){for(var l,f=t?u.filter(t,e):e,h=0;(l=f[h])!=null;h++)!i&&l.nodeType===1&&u.cleanData(Ie(l)),l.parentNode&&(i&&pt(l)&&Kt(Ie(l,"script")),l.parentNode.removeChild(l));return e}u.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var l,f,h,x,b=e.cloneNode(!0),v=pt(e);if(!E.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!u.isXMLDoc(e))for(x=Ie(b),h=Ie(e),l=0,f=h.length;l<f;l++)sn(h[l],x[l]);if(t)if(i)for(h=h||Ie(e),x=x||Ie(b),l=0,f=h.length;l<f;l++)wr(h[l],x[l]);else wr(e,b);return x=Ie(b,"script"),x.length>0&&Kt(x,!v&&Ie(e,"script")),b},cleanData:function(e){for(var t,i,l,f=u.event.special,h=0;(i=e[h])!==void 0;h++)if(Be(i)){if(t=i[V.expando]){if(t.events)for(l in t.events)f[l]?u.event.remove(i,l):u.removeEvent(i,l,t.handle);i[V.expando]=void 0}i[_e.expando]&&(i[_e.expando]=void 0)}}}),u.fn.extend({detach:function(e){return Er(this,e,!0)},remove:function(e){return Er(this,e)},text:function(e){return xe(this,function(t){return t===void 0?u.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=t)})},null,e,arguments.length)},append:function(){return yt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=kr(this,e);t.appendChild(e)}})},prepend:function(){return yt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=kr(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return yt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return yt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(u.cleanData(Ie(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this?.map(function(){return u.clone(this,e,t)})},html:function(e){return xe(this,function(t){var i=this[0]||{},l=0,f=this.length;if(t===void 0&&i.nodeType===1)return i.innerHTML;if(typeof t=="string"&&!en.test(t)&&!We[(vr.exec(t)||["",""])[1].toLowerCase()]){t=u.htmlPrefilter(t);try{for(;l<f;l++)i=this[l]||{},i.nodeType===1&&(u.cleanData(Ie(i,!1)),i.innerHTML=t);i=0}catch{}}i&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=[];return yt(this,arguments,function(t){var i=this.parentNode;u.inArray(this,e)<0&&(u.cleanData(Ie(this)),i&&i.replaceChild(t,this))},e)}}),u.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){u.fn[e]=function(i){for(var l,f=[],h=u(i),x=h.length-1,b=0;b<=x;b++)l=b===x?this:this.clone(!0),u(h[b])[t](l),p.apply(f,l.get());return this.pushStack(f)}});var Gt=new RegExp("^("+xr+")(?!px)[a-z%]+$","i"),Xt=/^--/,Ht=function(e){var t=e.ownerDocument.defaultView;return(!t||!t.opener)&&(t=o),t.getComputedStyle(e)},Nr=function(e,t,i){var l,f,h={};for(f in t)h[f]=e.style[f],e.style[f]=t[f];l=i.call(e);for(f in t)e.style[f]=h[f];return l},on=new RegExp(Ze.join("|"),"i");(function(){function e(){if(w){v.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",w.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ut.appendChild(v).appendChild(w);var R=o.getComputedStyle(w);i=R.top!=="1%",b=t(R.marginLeft)===12,w.style.right="60%",h=t(R.right)===36,l=t(R.width)===36,w.style.position="absolute",f=t(w.offsetWidth/3)===12,ut.removeChild(v),w=null}}function t(R){return Math.round(parseFloat(R))}var i,l,f,h,x,b,v=A.createElement("div"),w=A.createElement("div");w.style&&(w.style.backgroundClip="content-box",w.cloneNode(!0).style.backgroundClip="",E.clearCloneStyle=w.style.backgroundClip==="content-box",u.extend(E,{boxSizingReliable:function(){return e(),l},pixelBoxStyles:function(){return e(),h},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),b},scrollboxSize:function(){return e(),f},reliableTrDimensions:function(){var R,I,C,F;return x==null&&(R=A.createElement("table"),I=A.createElement("tr"),C=A.createElement("div"),R.style.cssText="position:absolute;left:-11111px;border-collapse:separate",I.style.cssText="box-sizing:content-box;border:1px solid",I.style.height="1px",C.style.height="9px",C.style.display="block",ut.appendChild(R).appendChild(I).appendChild(C),F=o.getComputedStyle(I),x=parseInt(F.height,10)+parseInt(F.borderTopWidth,10)+parseInt(F.borderBottomWidth,10)===I.offsetHeight,ut.removeChild(R)),x}}))})();function St(e,t,i){var l,f,h,x,b=Xt.test(t),v=e.style;return i=i||Ht(e),i&&(x=i.getPropertyValue(t)||i[t],b&&x&&(x=x.replace(U,"$1")||void 0),x===""&&!pt(e)&&(x=u.style(e,t)),!E.pixelBoxStyles()&&Gt.test(x)&&on.test(t)&&(l=v.width,f=v.minWidth,h=v.maxWidth,v.minWidth=v.maxWidth=v.width=x,x=i.width,v.width=l,v.minWidth=f,v.maxWidth=h)),x!==void 0?x+"":x}function Cr(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var Sr=["Webkit","Moz","ms"],_r=A.createElement("div").style,Rr={};function ln(e){for(var t=e[0].toUpperCase()+e.slice(1),i=Sr.length;i--;)if(e=Sr[i]+t,e in _r)return e}function $t(e){var t=u.cssProps[e]||Rr[e];return t||(e in _r?e:Rr[e]=ln(e)||e)}var un=/^(none|table(?!-c[ea]).+)/,dn={position:"absolute",visibility:"hidden",display:"block"},Mr={letterSpacing:"0",fontWeight:"400"};function Tr(e,t,i){var l=Nt.exec(t);return l?Math.max(0,l[2]-(i||0))+(l[3]||"px"):t}function Zt(e,t,i,l,f,h){var x=t==="width"?1:0,b=0,v=0,w=0;if(i===(l?"border":"content"))return 0;for(;x<4;x+=2)i==="margin"&&(w+=u.css(e,i+Ze[x],!0,f)),l?(i==="content"&&(v-=u.css(e,"padding"+Ze[x],!0,f)),i!=="margin"&&(v-=u.css(e,"border"+Ze[x]+"Width",!0,f))):(v+=u.css(e,"padding"+Ze[x],!0,f),i!=="padding"?v+=u.css(e,"border"+Ze[x]+"Width",!0,f):b+=u.css(e,"border"+Ze[x]+"Width",!0,f));return!l&&h>=0&&(v+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-h-v-b-.5))||0),v+w}function Or(e,t,i){var l=Ht(e),f=!E.boxSizingReliable()||i,h=f&&u.css(e,"boxSizing",!1,l)==="border-box",x=h,b=St(e,t,l),v="offset"+t[0].toUpperCase()+t.slice(1);if(Gt.test(b)){if(!i)return b;b="auto"}return(!E.boxSizingReliable()&&h||!E.reliableTrDimensions()&&ae(e,"tr")||b==="auto"||!parseFloat(b)&&u.css(e,"display",!1,l)==="inline")&&e.getClientRects().length&&(h=u.css(e,"boxSizing",!1,l)==="border-box",x=v in e,x&&(b=e[v])),b=parseFloat(b)||0,b+Zt(e,t,i||(h?"border":"content"),x,l,b)+"px"}u.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=St(e,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,l){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var f,h,x,b=je(t),v=Xt.test(t),w=e.style;if(v||(t=$t(b)),x=u.cssHooks[t]||u.cssHooks[b],i!==void 0){if(h=typeof i,h==="string"&&(f=Nt.exec(i))&&f[1]&&(i=gr(e,t,f),h="number"),i==null||i!==i)return;h==="number"&&!v&&(i+=f&&f[3]||(u.cssNumber[b]?"":"px")),!E.clearCloneStyle&&i===""&&t.indexOf("background")===0&&(w[t]="inherit"),(!x||!("set"in x)||(i=x.set(e,i,l))!==void 0)&&(v?w.setProperty(t,i):w[t]=i)}else return x&&"get"in x&&(f=x.get(e,!1,l))!==void 0?f:w[t]}},css:function(e,t,i,l){var f,h,x,b=je(t),v=Xt.test(t);return v||(t=$t(b)),x=u.cssHooks[t]||u.cssHooks[b],x&&"get"in x&&(f=x.get(e,!0,i)),f===void 0&&(f=St(e,t,l)),f==="normal"&&t in Mr&&(f=Mr[t]),i===""||i?(h=parseFloat(f),i===!0||isFinite(h)?h||0:f):f}}),u.each(["height","width"],function(e,t){u.cssHooks[t]={get:function(i,l,f){if(l)return un.test(u.css(i,"display"))&&(!i.getClientRects().length||!i.getBoundingClientRect().width)?Nr(i,dn,function(){return Or(i,t,f)}):Or(i,t,f)},set:function(i,l,f){var h,x=Ht(i),b=!E.scrollboxSize()&&x.position==="absolute",v=b||f,w=v&&u.css(i,"boxSizing",!1,x)==="border-box",R=f?Zt(i,t,f,w,x):0;return w&&b&&(R-=Math.ceil(i["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(x[t])-Zt(i,t,"border",!1,x)-.5)),R&&(h=Nt.exec(l))&&(h[3]||"px")!=="px"&&(i.style[t]=l,l=u.css(i,t)),Tr(i,l,R)}}}),u.cssHooks.marginLeft=Cr(E.reliableMarginLeft,function(e,t){if(t)return(parseFloat(St(e,"marginLeft"))||e.getBoundingClientRect().left-Nr(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),u.each({margin:"",padding:"",border:"Width"},function(e,t){u.cssHooks[e+t]={expand:function(i){for(var l=0,f={},h=typeof i=="string"?i.split(" "):[i];l<4;l++)f[e+Ze[l]+t]=h[l]||h[l-2]||h[0];return f}},e!=="margin"&&(u.cssHooks[e+t].set=Tr)}),u.fn.extend({css:function(e,t){return xe(this,function(i,l,f){var h,x,b={},v=0;if(Array.isArray(l)){for(h=Ht(i),x=l.length;v<x;v++)b[l[v]]=u.css(i,l[v],!1,h);return b}return f!==void 0?u.style(i,l,f):u.css(i,l)},e,t,arguments.length>1)}});function Ae(e,t,i,l,f){return new Ae.prototype.init(e,t,i,l,f)}u.Tween=Ae,Ae.prototype={constructor:Ae,init:function(e,t,i,l,f,h){this.elem=e,this.prop=i,this.easing=f||u.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=l,this.unit=h||(u.cssNumber[i]?"":"px")},cur:function(){var e=Ae.propHooks[this.prop];return e&&e.get?e.get(this):Ae.propHooks._default.get(this)},run:function(e){var t,i=Ae.propHooks[this.prop];return this.options.duration?this.pos=t=u.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Ae.propHooks._default.set(this),this}},Ae.prototype.init.prototype=Ae.prototype,Ae.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=u.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){u.fx.step[e.prop]?u.fx.step[e.prop](e):e.elem.nodeType===1&&(u.cssHooks[e.prop]||e.elem.style[$t(e.prop)]!=null)?u.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ae.propHooks.scrollTop=Ae.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},u.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},u.fx=Ae.prototype.init,u.fx.step={};var vt,Yt,fn=/^(?:toggle|show|hide)$/,hn=/queueHooks$/;function er(){Yt&&(A.hidden===!1&&o.requestAnimationFrame?o.requestAnimationFrame(er):o.setTimeout(er,u.fx.interval),u.fx.tick())}function Lr(){return o.setTimeout(function(){vt=void 0}),vt=Date.now()}function Bt(e,t){var i,l=0,f={height:e};for(t=t?1:0;l<4;l+=2-t)i=Ze[l],f["margin"+i]=f["padding"+i]=e;return t&&(f.opacity=f.width=e),f}function Ir(e,t,i){for(var l,f=(qe.tweeners[t]||[]).concat(qe.tweeners["*"]),h=0,x=f.length;h<x;h++)if(l=f[h].call(i,t,e))return l}function pn(e,t,i){var l,f,h,x,b,v,w,R,I="width"in t||"height"in t,C=this,F={},ne=e.style,de=e.nodeType&&Ft(e),oe=V.get(e,"fxshow");i.queue||(x=u._queueHooks(e,"fx"),x.unqueued==null&&(x.unqueued=0,b=x.empty.fire,x.empty.fire=function(){x.unqueued||b()}),x.unqueued++,C.always(function(){C.always(function(){x.unqueued--,u.queue(e,"fx").length||x.empty.fire()})}));for(l in t)if(f=t[l],fn.test(f)){if(delete t[l],h=h||f==="toggle",f===(de?"hide":"show"))if(f==="show"&&oe&&oe[l]!==void 0)de=!0;else continue;F[l]=oe&&oe[l]||u.style(e,l)}if(v=!u.isEmptyObject(t),!(!v&&u.isEmptyObject(F))){I&&e.nodeType===1&&(i.overflow=[ne.overflow,ne.overflowX,ne.overflowY],w=oe&&oe.display,w==null&&(w=V.get(e,"display")),R=u.css(e,"display"),R==="none"&&(w?R=w:(mt([e],!0),w=e.style.display||w,R=u.css(e,"display"),mt([e]))),(R==="inline"||R==="inline-block"&&w!=null)&&u.css(e,"float")==="none"&&(v||(C.done(function(){ne.display=w}),w==null&&(R=ne.display,w=R==="none"?"":R)),ne.display="inline-block")),i.overflow&&(ne.overflow="hidden",C.always(function(){ne.overflow=i.overflow[0],ne.overflowX=i.overflow[1],ne.overflowY=i.overflow[2]})),v=!1;for(l in F)v||(oe?"hidden"in oe&&(de=oe.hidden):oe=V.access(e,"fxshow",{display:w}),h&&(oe.hidden=!de),de&&mt([e],!0),C.done(function(){de||mt([e]),V.remove(e,"fxshow");for(l in F)u.style(e,l,F[l])})),v=Ir(de?oe[l]:0,l,C),l in oe||(oe[l]=v.start,de&&(v.end=v.start,v.start=0))}}function mn(e,t){var i,l,f,h,x;for(i in e)if(l=je(i),f=t[l],h=e[i],Array.isArray(h)&&(f=h[1],h=e[i]=h[0]),i!==l&&(e[l]=h,delete e[i]),x=u.cssHooks[l],x&&"expand"in x){h=x.expand(h),delete e[l];for(i in h)i in e||(e[i]=h[i],t[i]=f)}else t[l]=f}function qe(e,t,i){var l,f,h=0,x=qe.prefilters.length,b=u.Deferred().always(function(){delete v.elem}),v=function(){if(f)return!1;for(var I=vt||Lr(),C=Math.max(0,w.startTime+w.duration-I),F=C/w.duration||0,ne=1-F,de=0,oe=w.tweens.length;de<oe;de++)w.tweens[de].run(ne);return b.notifyWith(e,[w,ne,C]),ne<1&&oe?C:(oe||b.notifyWith(e,[w,1,0]),b.resolveWith(e,[w]),!1)},w=b.promise({elem:e,props:u.extend({},t),opts:u.extend(!0,{specialEasing:{},easing:u.easing._default},i),originalProperties:t,originalOptions:i,startTime:vt||Lr(),duration:i.duration,tweens:[],createTween:function(I,C){var F=u.Tween(e,w.opts,I,C,w.opts.specialEasing[I]||w.opts.easing);return w.tweens.push(F),F},stop:function(I){var C=0,F=I?w.tweens.length:0;if(f)return this;for(f=!0;C<F;C++)w.tweens[C].run(1);return I?(b.notifyWith(e,[w,1,0]),b.resolveWith(e,[w,I])):b.rejectWith(e,[w,I]),this}}),R=w.props;for(mn(R,w.opts.specialEasing);h<x;h++)if(l=qe.prefilters[h].call(w,e,R,w.opts),l)return M(l.stop)&&(u._queueHooks(w.elem,w.opts.queue).stop=l.stop.bind(l)),l;return u?.map(R,Ir,w),M(w.opts.start)&&w.opts.start.call(e,w),w.progress(w.opts.progress).done(w.opts.done,w.opts.complete).fail(w.opts.fail).always(w.opts.always),u.fx.timer(u.extend(v,{elem:e,anim:w,queue:w.opts.queue})),w}u.Animation=u.extend(qe,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return gr(i.elem,e,Nt.exec(t),i),i}]},tweener:function(e,t){M(e)?(t=e,e=["*"]):e=e.match(Ne);for(var i,l=0,f=e.length;l<f;l++)i=e[l],qe.tweeners[i]=qe.tweeners[i]||[],qe.tweeners[i].unshift(t)},prefilters:[pn],prefilter:function(e,t){t?qe.prefilters.unshift(e):qe.prefilters.push(e)}}),u.speed=function(e,t,i){var l=e&&typeof e=="object"?u.extend({},e):{complete:i||!i&&t||M(e)&&e,duration:e,easing:i&&t||t&&!M(t)&&t};return u.fx.off?l.duration=0:typeof l.duration!="number"&&(l.duration in u.fx.speeds?l.duration=u.fx.speeds[l.duration]:l.duration=u.fx.speeds._default),(l.queue==null||l.queue===!0)&&(l.queue="fx"),l.old=l.complete,l.complete=function(){M(l.old)&&l.old.call(this),l.queue&&u.dequeue(this,l.queue)},l},u.fn.extend({fadeTo:function(e,t,i,l){return this.filter(Ft).css("opacity",0).show().end().animate({opacity:t},e,i,l)},animate:function(e,t,i,l){var f=u.isEmptyObject(e),h=u.speed(t,i,l),x=function(){var b=qe(this,u.extend({},e),h);(f||V.get(this,"finish"))&&b.stop(!0)};return x.finish=x,f||h.queue===!1?this.each(x):this.queue(h.queue,x)},stop:function(e,t,i){var l=function(f){var h=f.stop;delete f.stop,h(i)};return typeof e!="string"&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var f=!0,h=e!=null&&e+"queueHooks",x=u.timers,b=V.get(this);if(h)b[h]&&b[h].stop&&l(b[h]);else for(h in b)b[h]&&b[h].stop&&hn.test(h)&&l(b[h]);for(h=x.length;h--;)x[h].elem===this&&(e==null||x[h].queue===e)&&(x[h].anim.stop(i),f=!1,x.splice(h,1));(f||!i)&&u.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,i=V.get(this),l=i[e+"queue"],f=i[e+"queueHooks"],h=u.timers,x=l?l.length:0;for(i.finish=!0,u.queue(this,e,[]),f&&f.stop&&f.stop.call(this,!0),t=h.length;t--;)h[t].elem===this&&h[t].queue===e&&(h[t].anim.stop(!0),h.splice(t,1));for(t=0;t<x;t++)l[t]&&l[t].finish&&l[t].finish.call(this);delete i.finish})}}),u.each(["toggle","show","hide"],function(e,t){var i=u.fn[t];u.fn[t]=function(l,f,h){return l==null||typeof l=="boolean"?i.apply(this,arguments):this.animate(Bt(t,!0),l,f,h)}}),u.each({slideDown:Bt("show"),slideUp:Bt("hide"),slideToggle:Bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){u.fn[e]=function(i,l,f){return this.animate(t,i,l,f)}}),u.timers=[],u.fx.tick=function(){var e,t=0,i=u.timers;for(vt=Date.now();t<i.length;t++)e=i[t],!e()&&i[t]===e&&i.splice(t--,1);i.length||u.fx.stop(),vt=void 0},u.fx.timer=function(e){u.timers.push(e),u.fx.start()},u.fx.interval=13,u.fx.start=function(){Yt||(Yt=!0,er())},u.fx.stop=function(){Yt=null},u.fx.speeds={slow:600,fast:200,_default:400},u.fn.delay=function(e,t){return e=u.fx&&u.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(i,l){var f=o.setTimeout(i,e);l.stop=function(){o.clearTimeout(f)}})},(function(){var e=A.createElement("input"),t=A.createElement("select"),i=t.appendChild(A.createElement("option"));e.type="checkbox",E.checkOn=e.value!=="",E.optSelected=i.selected,e=A.createElement("input"),e.value="t",e.type="radio",E.radioValue=e.value==="t"})();var Ar,_t=u.expr.attrHandle;u.fn.extend({attr:function(e,t){return xe(this,u.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){u.removeAttr(this,e)})}}),u.extend({attr:function(e,t,i){var l,f,h=e.nodeType;if(!(h===3||h===8||h===2)){if(typeof e.getAttribute>"u")return u.prop(e,t,i);if((h!==1||!u.isXMLDoc(e))&&(f=u.attrHooks[t.toLowerCase()]||(u.expr.match.bool.test(t)?Ar:void 0)),i!==void 0){if(i===null){u.removeAttr(e,t);return}return f&&"set"in f&&(l=f.set(e,i,t))!==void 0?l:(e.setAttribute(t,i+""),i)}return f&&"get"in f&&(l=f.get(e,t))!==null?l:(l=u.find.attr(e,t),l??void 0)}},attrHooks:{type:{set:function(e,t){if(!E.radioValue&&t==="radio"&&ae(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,l=0,f=t&&t.match(Ne);if(f&&e.nodeType===1)for(;i=f[l++];)e.removeAttribute(i)}}),Ar={set:function(e,t,i){return t===!1?u.removeAttr(e,i):e.setAttribute(i,i),i}},u.each(u.expr.match.bool.source.match(/\w+/g),function(e,t){var i=_t[t]||u.find.attr;_t[t]=function(l,f,h){var x,b,v=f.toLowerCase();return h||(b=_t[v],_t[v]=x,x=i(l,f,h)!=null?v:null,_t[v]=b),x}});var xn=/^(?:input|select|textarea|button)$/i,gn=/^(?:a|area)$/i;u.fn.extend({prop:function(e,t){return xe(this,u.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[u.propFix[e]||e]})}}),u.extend({prop:function(e,t,i){var l,f,h=e.nodeType;if(!(h===3||h===8||h===2))return(h!==1||!u.isXMLDoc(e))&&(t=u.propFix[t]||t,f=u.propHooks[t]),i!==void 0?f&&"set"in f&&(l=f.set(e,i,t))!==void 0?l:e[t]=i:f&&"get"in f&&(l=f.get(e,t))!==null?l:e[t]},propHooks:{tabIndex:{get:function(e){var t=u.find.attr(e,"tabindex");return t?parseInt(t,10):xn.test(e.nodeName)||gn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),E.optSelected||(u.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),u.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){u.propFix[this.toLowerCase()]=this});function ct(e){var t=e.match(Ne)||[];return t.join(" ")}function dt(e){return e.getAttribute&&e.getAttribute("class")||""}function tr(e){return Array.isArray(e)?e:typeof e=="string"?e.match(Ne)||[]:[]}u.fn.extend({addClass:function(e){var t,i,l,f,h,x;return M(e)?this.each(function(b){u(this).addClass(e.call(this,b,dt(this)))}):(t=tr(e),t.length?this.each(function(){if(l=dt(this),i=this.nodeType===1&&" "+ct(l)+" ",i){for(h=0;h<t.length;h++)f=t[h],i.indexOf(" "+f+" ")<0&&(i+=f+" ");x=ct(i),l!==x&&this.setAttribute("class",x)}}):this)},removeClass:function(e){var t,i,l,f,h,x;return M(e)?this.each(function(b){u(this).removeClass(e.call(this,b,dt(this)))}):arguments.length?(t=tr(e),t.length?this.each(function(){if(l=dt(this),i=this.nodeType===1&&" "+ct(l)+" ",i){for(h=0;h<t.length;h++)for(f=t[h];i.indexOf(" "+f+" ")>-1;)i=i.replace(" "+f+" "," ");x=ct(i),l!==x&&this.setAttribute("class",x)}}):this):this.attr("class","")},toggleClass:function(e,t){var i,l,f,h,x=typeof e,b=x==="string"||Array.isArray(e);return M(e)?this.each(function(v){u(this).toggleClass(e.call(this,v,dt(this),t),t)}):typeof t=="boolean"&&b?t?this.addClass(e):this.removeClass(e):(i=tr(e),this.each(function(){if(b)for(h=u(this),f=0;f<i.length;f++)l=i[f],h.hasClass(l)?h.removeClass(l):h.addClass(l);else(e===void 0||x==="boolean")&&(l=dt(this),l&&V.set(this,"__className__",l),this.setAttribute&&this.setAttribute("class",l||e===!1?"":V.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,l=0;for(t=" "+e+" ";i=this[l++];)if(i.nodeType===1&&(" "+ct(dt(i))+" ").indexOf(t)>-1)return!0;return!1}});var yn=/\r/g;u.fn.extend({val:function(e){var t,i,l,f=this[0];return arguments.length?(l=M(e),this.each(function(h){var x;this.nodeType===1&&(l?x=e.call(this,h,u(this).val()):x=e,x==null?x="":typeof x=="number"?x+="":Array.isArray(x)&&(x=u?.map(x,function(b){return b==null?"":b+""})),t=u.valHooks[this.type]||u.valHooks[this.nodeName.toLowerCase()],(!t||!("set"in t)||t.set(this,x,"value")===void 0)&&(this.value=x))})):f?(t=u.valHooks[f.type]||u.valHooks[f.nodeName.toLowerCase()],t&&"get"in t&&(i=t.get(f,"value"))!==void 0?i:(i=f.value,typeof i=="string"?i.replace(yn,""):i??"")):void 0}}),u.extend({valHooks:{option:{get:function(e){var t=u.find.attr(e,"value");return t??ct(u.text(e))}},select:{get:function(e){var t,i,l,f=e.options,h=e.selectedIndex,x=e.type==="select-one",b=x?null:[],v=x?h+1:f.length;for(h<0?l=v:l=x?h:0;l<v;l++)if(i=f[l],(i.selected||l===h)&&!i.disabled&&(!i.parentNode.disabled||!ae(i.parentNode,"optgroup"))){if(t=u(i).val(),x)return t;b.push(t)}return b},set:function(e,t){for(var i,l,f=e.options,h=u.makeArray(t),x=f.length;x--;)l=f[x],(l.selected=u.inArray(u.valHooks.option.get(l),h)>-1)&&(i=!0);return i||(e.selectedIndex=-1),h}}}}),u.each(["radio","checkbox"],function(){u.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=u.inArray(u(e).val(),t)>-1}},E.checkOn||(u.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var Rt=o.location,Pr={guid:Date.now()},rr=/\?/;u.parseXML=function(e){var t,i;if(!e||typeof e!="string")return null;try{t=new o.DOMParser().parseFromString(e,"text/xml")}catch{}return i=t&&t.getElementsByTagName("parsererror")[0],(!t||i)&&u.error("Invalid XML: "+(i?u?.map(i.childNodes,function(l){return l.textContent}).join(`
`):e)),t};var Fr=/^(?:focusinfocus|focusoutblur)$/,Wr=function(e){e.stopPropagation()};u.extend(u.event,{trigger:function(e,t,i,l){var f,h,x,b,v,w,R,I,C=[i||A],F=k.call(e,"type")?e.type:e,ne=k.call(e,"namespace")?e.namespace.split("."):[];if(h=I=x=i=i||A,!(i.nodeType===3||i.nodeType===8)&&!Fr.test(F+u.event.triggered)&&(F.indexOf(".")>-1&&(ne=F.split("."),F=ne.shift(),ne.sort()),v=F.indexOf(":")<0&&"on"+F,e=e[u.expando]?e:new u.Event(F,typeof e=="object"&&e),e.isTrigger=l?2:3,e.namespace=ne.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+ne.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=t==null?[e]:u.makeArray(t,[e]),R=u.event.special[F]||{},!(!l&&R.trigger&&R.trigger.apply(i,t)===!1))){if(!l&&!R.noBubble&&!P(i)){for(b=R.delegateType||F,Fr.test(b+F)||(h=h.parentNode);h;h=h.parentNode)C.push(h),x=h;x===(i.ownerDocument||A)&&C.push(x.defaultView||x.parentWindow||o)}for(f=0;(h=C[f++])&&!e.isPropagationStopped();)I=h,e.type=f>1?b:R.bindType||F,w=(V.get(h,"events")||Object.create(null))[e.type]&&V.get(h,"handle"),w&&w.apply(h,t),w=v&&h[v],w&&w.apply&&Be(h)&&(e.result=w.apply(h,t),e.result===!1&&e.preventDefault());return e.type=F,!l&&!e.isDefaultPrevented()&&(!R._default||R._default.apply(C.pop(),t)===!1)&&Be(i)&&v&&M(i[F])&&!P(i)&&(x=i[v],x&&(i[v]=null),u.event.triggered=F,e.isPropagationStopped()&&I.addEventListener(F,Wr),i[F](),e.isPropagationStopped()&&I.removeEventListener(F,Wr),u.event.triggered=void 0,x&&(i[v]=x)),e.result}},simulate:function(e,t,i){var l=u.extend(new u.Event,i,{type:e,isSimulated:!0});u.event.trigger(l,null,t)}}),u.fn.extend({trigger:function(e,t){return this.each(function(){u.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return u.event.trigger(e,t,i,!0)}});var vn=/\[\]$/,Hr=/\r?\n/g,bn=/^(?:submit|button|image|reset|file)$/i,jn=/^(?:input|select|textarea|keygen)/i;function nr(e,t,i,l){var f;if(Array.isArray(t))u.each(t,function(h,x){i||vn.test(e)?l(e,x):nr(e+"["+(typeof x=="object"&&x!=null?h:"")+"]",x,i,l)});else if(!i&&se(t)==="object")for(f in t)nr(e+"["+f+"]",t[f],i,l);else l(e,t)}u.param=function(e,t){var i,l=[],f=function(h,x){var b=M(x)?x():x;l[l.length]=encodeURIComponent(h)+"="+encodeURIComponent(b??"")};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!u.isPlainObject(e))u.each(e,function(){f(this.name,this.value)});else for(i in e)nr(i,e[i],t,f);return l.join("&")},u.fn.extend({serialize:function(){return u.param(this.serializeArray())},serializeArray:function(){return this?.map(function(){var e=u.prop(this,"elements");return e?u.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!u(this).is(":disabled")&&jn.test(this.nodeName)&&!bn.test(e)&&(this.checked||!Ct.test(e))})?.map(function(e,t){var i=u(this).val();return i==null?null:Array.isArray(i)?u?.map(i,function(l){return{name:t.name,value:l.replace(Hr,`\r
`)}}):{name:t.name,value:i.replace(Hr,`\r
`)}}).get()}});var Dn=/%20/g,kn=/#.*$/,wn=/([?&])_=[^&]*/,En=/^(.*?):[ \t]*([^\r\n]*)$/mg,Nn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,Sn=/^\/\//,Yr={},ar={},Br="*/".concat("*"),ir=A.createElement("a");ir.href=Rt.href;function qr(e){return function(t,i){typeof t!="string"&&(i=t,t="*");var l,f=0,h=t.toLowerCase().match(Ne)||[];if(M(i))for(;l=h[f++];)l[0]==="+"?(l=l.slice(1)||"*",(e[l]=e[l]||[]).unshift(i)):(e[l]=e[l]||[]).push(i)}}function Jr(e,t,i,l){var f={},h=e===ar;function x(b){var v;return f[b]=!0,u.each(e[b]||[],function(w,R){var I=R(t,i,l);if(typeof I=="string"&&!h&&!f[I])return t.dataTypes.unshift(I),x(I),!1;if(h)return!(v=I)}),v}return x(t.dataTypes[0])||!f["*"]&&x("*")}function sr(e,t){var i,l,f=u.ajaxSettings.flatOptions||{};for(i in t)t[i]!==void 0&&((f[i]?e:l||(l={}))[i]=t[i]);return l&&u.extend(!0,e,l),e}function _n(e,t,i){for(var l,f,h,x,b=e.contents,v=e.dataTypes;v[0]==="*";)v.shift(),l===void 0&&(l=e.mimeType||t.getResponseHeader("Content-Type"));if(l){for(f in b)if(b[f]&&b[f].test(l)){v.unshift(f);break}}if(v[0]in i)h=v[0];else{for(f in i){if(!v[0]||e.converters[f+" "+v[0]]){h=f;break}x||(x=f)}h=h||x}if(h)return h!==v[0]&&v.unshift(h),i[h]}function Rn(e,t,i,l){var f,h,x,b,v,w={},R=e.dataTypes.slice();if(R[1])for(x in e.converters)w[x.toLowerCase()]=e.converters[x];for(h=R.shift();h;)if(e.responseFields[h]&&(i[e.responseFields[h]]=t),!v&&l&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),v=h,h=R.shift(),h){if(h==="*")h=v;else if(v!=="*"&&v!==h){if(x=w[v+" "+h]||w["* "+h],!x){for(f in w)if(b=f.split(" "),b[1]===h&&(x=w[v+" "+b[0]]||w["* "+b[0]],x)){x===!0?x=w[f]:w[f]!==!0&&(h=b[0],R.unshift(b[1]));break}}if(x!==!0)if(x&&e.throws)t=x(t);else try{t=x(t)}catch(I){return{state:"parsererror",error:x?I:"No conversion from "+v+" to "+h}}}}return{state:"success",data:t}}u.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rt.href,type:"GET",isLocal:Nn.test(Rt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Br,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":u.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?sr(sr(e,u.ajaxSettings),t):sr(u.ajaxSettings,e)},ajaxPrefilter:qr(Yr),ajaxTransport:qr(ar),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};var i,l,f,h,x,b,v,w,R,I,C=u.ajaxSetup({},t),F=C.context||C,ne=C.context&&(F.nodeType||F.jquery)?u(F):u.event,de=u.Deferred(),oe=u.Callbacks("once memory"),Se=C.statusCode||{},Ce={},Ke={},Qe="canceled",ce={readyState:0,getResponseHeader:function(he){var we;if(v){if(!h)for(h={};we=En.exec(f);)h[we[1].toLowerCase()+" "]=(h[we[1].toLowerCase()+" "]||[]).concat(we[2]);we=h[he.toLowerCase()+" "]}return we==null?null:we.join(", ")},getAllResponseHeaders:function(){return v?f:null},setRequestHeader:function(he,we){return v==null&&(he=Ke[he.toLowerCase()]=Ke[he.toLowerCase()]||he,Ce[he]=we),this},overrideMimeType:function(he){return v==null&&(C.mimeType=he),this},statusCode:function(he){var we;if(he)if(v)ce.always(he[ce.status]);else for(we in he)Se[we]=[Se[we],he[we]];return this},abort:function(he){var we=he||Qe;return i&&i.abort(we),ft(0,we),this}};if(de.promise(ce),C.url=((e||C.url||Rt.href)+"").replace(Sn,Rt.protocol+"//"),C.type=t.method||t.type||C.method||C.type,C.dataTypes=(C.dataType||"*").toLowerCase().match(Ne)||[""],C.crossDomain==null){b=A.createElement("a");try{b.href=C.url,b.href=b.href,C.crossDomain=ir.protocol+"//"+ir.host!=b.protocol+"//"+b.host}catch{C.crossDomain=!0}}if(C.data&&C.processData&&typeof C.data!="string"&&(C.data=u.param(C.data,C.traditional)),Jr(Yr,C,t,ce),v)return ce;w=u.event&&C.global,w&&u.active++===0&&u.event.trigger("ajaxStart"),C.type=C.type.toUpperCase(),C.hasContent=!Cn.test(C.type),l=C.url.replace(kn,""),C.hasContent?C.data&&C.processData&&(C.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(C.data=C.data.replace(Dn,"+")):(I=C.url.slice(l.length),C.data&&(C.processData||typeof C.data=="string")&&(l+=(rr.test(l)?"&":"?")+C.data,delete C.data),C.cache===!1&&(l=l.replace(wn,"$1"),I=(rr.test(l)?"&":"?")+"_="+Pr.guid+++I),C.url=l+I),C.ifModified&&(u.lastModified[l]&&ce.setRequestHeader("If-Modified-Since",u.lastModified[l]),u.etag[l]&&ce.setRequestHeader("If-None-Match",u.etag[l])),(C.data&&C.hasContent&&C.contentType!==!1||t.contentType)&&ce.setRequestHeader("Content-Type",C.contentType),ce.setRequestHeader("Accept",C.dataTypes[0]&&C.accepts[C.dataTypes[0]]?C.accepts[C.dataTypes[0]]+(C.dataTypes[0]!=="*"?", "+Br+"; q=0.01":""):C.accepts["*"]);for(R in C.headers)ce.setRequestHeader(R,C.headers[R]);if(C.beforeSend&&(C.beforeSend.call(F,ce,C)===!1||v))return ce.abort();if(Qe="abort",oe.add(C.complete),ce.done(C.success),ce.fail(C.error),i=Jr(ar,C,t,ce),!i)ft(-1,"No Transport");else{if(ce.readyState=1,w&&ne.trigger("ajaxSend",[ce,C]),v)return ce;C.async&&C.timeout>0&&(x=o.setTimeout(function(){ce.abort("timeout")},C.timeout));try{v=!1,i.send(Ce,ft)}catch(he){if(v)throw he;ft(-1,he)}}function ft(he,we,Tt,lr){var Ge,Ot,Xe,it,st,He=we;v||(v=!0,x&&o.clearTimeout(x),i=void 0,f=lr||"",ce.readyState=he>0?4:0,Ge=he>=200&&he<300||he===304,Tt&&(it=_n(C,ce,Tt)),!Ge&&u.inArray("script",C.dataTypes)>-1&&u.inArray("json",C.dataTypes)<0&&(C.converters["text script"]=function(){}),it=Rn(C,it,ce,Ge),Ge?(C.ifModified&&(st=ce.getResponseHeader("Last-Modified"),st&&(u.lastModified[l]=st),st=ce.getResponseHeader("etag"),st&&(u.etag[l]=st)),he===204||C.type==="HEAD"?He="nocontent":he===304?He="notmodified":(He=it.state,Ot=it.data,Xe=it.error,Ge=!Xe)):(Xe=He,(he||!He)&&(He="error",he<0&&(he=0))),ce.status=he,ce.statusText=(we||He)+"",Ge?de.resolveWith(F,[Ot,He,ce]):de.rejectWith(F,[ce,He,Xe]),ce.statusCode(Se),Se=void 0,w&&ne.trigger(Ge?"ajaxSuccess":"ajaxError",[ce,C,Ge?Ot:Xe]),oe.fireWith(F,[ce,He]),w&&(ne.trigger("ajaxComplete",[ce,C]),--u.active||u.event.trigger("ajaxStop")))}return ce},getJSON:function(e,t,i){return u.get(e,t,i,"json")},getScript:function(e,t){return u.get(e,void 0,t,"script")}}),u.each(["get","post"],function(e,t){u[t]=function(i,l,f,h){return M(l)&&(h=h||f,f=l,l=void 0),u.ajax(u.extend({url:i,type:t,dataType:h,data:l,success:f},u.isPlainObject(i)&&i))}}),u.ajaxPrefilter(function(e){var t;for(t in e.headers)t.toLowerCase()==="content-type"&&(e.contentType=e.headers[t]||"")}),u._evalUrl=function(e,t,i){return u.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(l){u.globalEval(l,t,i)}})},u.fn.extend({wrapAll:function(e){var t;return this[0]&&(M(e)&&(e=e.call(this[0])),t=u(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t?.map(function(){for(var i=this;i.firstElementChild;)i=i.firstElementChild;return i}).append(this)),this},wrapInner:function(e){return M(e)?this.each(function(t){u(this).wrapInner(e.call(this,t))}):this.each(function(){var t=u(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=M(e);return this.each(function(i){u(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){u(this).replaceWith(this.childNodes)}),this}}),u.expr.pseudos.hidden=function(e){return!u.expr.pseudos.visible(e)},u.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},u.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch{}};var Mn={0:200,1223:204},Mt=u.ajaxSettings.xhr();E.cors=!!Mt&&"withCredentials"in Mt,E.ajax=Mt=!!Mt,u.ajaxTransport(function(e){var t,i;if(E.cors||Mt&&!e.crossDomain)return{send:function(l,f){var h,x=e.xhr();if(x.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(h in e.xhrFields)x[h]=e.xhrFields[h];e.mimeType&&x.overrideMimeType&&x.overrideMimeType(e.mimeType),!e.crossDomain&&!l["X-Requested-With"]&&(l["X-Requested-With"]="XMLHttpRequest");for(h in l)x.setRequestHeader(h,l[h]);t=function(b){return function(){t&&(t=i=x.onload=x.onerror=x.onabort=x.ontimeout=x.onreadystatechange=null,b==="abort"?x.abort():b==="error"?typeof x.status!="number"?f(0,"error"):f(x.status,x.statusText):f(Mn[x.status]||x.status,x.statusText,(x.responseType||"text")!=="text"||typeof x.responseText!="string"?{binary:x.response}:{text:x.responseText},x.getAllResponseHeaders()))}},x.onload=t(),i=x.onerror=x.ontimeout=t("error"),x.onabort!==void 0?x.onabort=i:x.onreadystatechange=function(){x.readyState===4&&o.setTimeout(function(){t&&i()})},t=t("abort");try{x.send(e.hasContent&&e.data||null)}catch(b){if(t)throw b}},abort:function(){t&&t()}}}),u.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),u.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return u.globalEval(e),e}}}),u.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),u.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,i;return{send:function(l,f){t=u("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(h){t.remove(),i=null,h&&f(h.type==="error"?404:200,h.type)}),A.head.appendChild(t[0])},abort:function(){i&&i()}}}});var Ur=[],or=/(=)\?(?=&|$)|\?\?/;u.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ur.pop()||u.expando+"_"+Pr.guid++;return this[e]=!0,e}}),u.ajaxPrefilter("json jsonp",function(e,t,i){var l,f,h,x=e.jsonp!==!1&&(or.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&or.test(e.data)&&"data");if(x||e.dataTypes[0]==="jsonp")return l=e.jsonpCallback=M(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,x?e[x]=e[x].replace(or,"$1"+l):e.jsonp!==!1&&(e.url+=(rr.test(e.url)?"&":"?")+e.jsonp+"="+l),e.converters["script json"]=function(){return h||u.error(l+" was not called"),h[0]},e.dataTypes[0]="json",f=o[l],o[l]=function(){h=arguments},i.always(function(){f===void 0?u(o).removeProp(l):o[l]=f,e[l]&&(e.jsonpCallback=t.jsonpCallback,Ur.push(l)),h&&M(f)&&f(h[0]),h=f=void 0}),"script"}),E.createHTMLDocument=(function(){var e=A.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",e.childNodes.length===2})(),u.parseHTML=function(e,t,i){if(typeof e!="string")return[];typeof t=="boolean"&&(i=t,t=!1);var l,f,h;return t||(E.createHTMLDocument?(t=A.implementation.createHTMLDocument(""),l=t.createElement("base"),l.href=A.location.href,t.head.appendChild(l)):t=A),f=Dt.exec(e),h=!i&&[],f?[t.createElement(f[1])]:(f=jr([e],t,h),h&&h.length&&u(h).remove(),u.merge([],f.childNodes))},u.fn.load=function(e,t,i){var l,f,h,x=this,b=e.indexOf(" ");return b>-1&&(l=ct(e.slice(b)),e=e.slice(0,b)),M(t)?(i=t,t=void 0):t&&typeof t=="object"&&(f="POST"),x.length>0&&u.ajax({url:e,type:f||"GET",dataType:"html",data:t}).done(function(v){h=arguments,x.html(l?u("<div>").append(u.parseHTML(v)).find(l):v)}).always(i&&function(v,w){x.each(function(){i.apply(this,h||[v.responseText,w,v])})}),this},u.expr.pseudos.animated=function(e){return u.grep(u.timers,function(t){return e===t.elem}).length},u.offset={setOffset:function(e,t,i){var l,f,h,x,b,v,w,R=u.css(e,"position"),I=u(e),C={};R==="static"&&(e.style.position="relative"),b=I.offset(),h=u.css(e,"top"),v=u.css(e,"left"),w=(R==="absolute"||R==="fixed")&&(h+v).indexOf("auto")>-1,w?(l=I.position(),x=l.top,f=l.left):(x=parseFloat(h)||0,f=parseFloat(v)||0),M(t)&&(t=t.call(e,i,u.extend({},b))),t.top!=null&&(C.top=t.top-b.top+x),t.left!=null&&(C.left=t.left-b.left+f),"using"in t?t.using.call(e,C):I.css(C)}},u.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(f){u.offset.setOffset(this,e,f)});var t,i,l=this[0];if(l)return l.getClientRects().length?(t=l.getBoundingClientRect(),i=l.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,i,l=this[0],f={top:0,left:0};if(u.css(l,"position")==="fixed")t=l.getBoundingClientRect();else{for(t=this.offset(),i=l.ownerDocument,e=l.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&u.css(e,"position")==="static";)e=e.parentNode;e&&e!==l&&e.nodeType===1&&(f=u(e).offset(),f.top+=u.css(e,"borderTopWidth",!0),f.left+=u.css(e,"borderLeftWidth",!0))}return{top:t.top-f.top-u.css(l,"marginTop",!0),left:t.left-f.left-u.css(l,"marginLeft",!0)}}},offsetParent:function(){return this?.map(function(){for(var e=this.offsetParent;e&&u.css(e,"position")==="static";)e=e.offsetParent;return e||ut})}}),u.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i=t==="pageYOffset";u.fn[e]=function(l){return xe(this,function(f,h,x){var b;if(P(f)?b=f:f.nodeType===9&&(b=f.defaultView),x===void 0)return b?b[t]:f[h];b?b.scrollTo(i?b.pageXOffset:x,i?x:b.pageYOffset):f[h]=x},e,l,arguments.length)}}),u.each(["top","left"],function(e,t){u.cssHooks[t]=Cr(E.pixelPosition,function(i,l){if(l)return l=St(i,t),Gt.test(l)?u(i).position()[t]+"px":l})}),u.each({Height:"height",Width:"width"},function(e,t){u.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,l){u.fn[l]=function(f,h){var x=arguments.length&&(i||typeof f!="boolean"),b=i||(f===!0||h===!0?"margin":"border");return xe(this,function(v,w,R){var I;return P(v)?l.indexOf("outer")===0?v["inner"+e]:v.document.documentElement["client"+e]:v.nodeType===9?(I=v.documentElement,Math.max(v.body["scroll"+e],I["scroll"+e],v.body["offset"+e],I["offset"+e],I["client"+e])):R===void 0?u.css(v,w,b):u.style(v,w,R,b)},t,x?f:void 0,x)}})}),u.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){u.fn[t]=function(i){return this.on(t,i)}}),u.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,l){return this.on(t,e,i,l)},undelegate:function(e,t,i){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),u.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){u.fn[t]=function(i,l){return arguments.length>0?this.on(t,null,i,l):this.trigger(t)}});var Tn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;u.proxy=function(e,t){var i,l,f;if(typeof t=="string"&&(i=e[t],t=e,e=i),!!M(e))return l=s.call(arguments,2),f=function(){return e.apply(t||this,l.concat(s.call(arguments)))},f.guid=e.guid=e.guid||u.guid++,f},u.holdReady=function(e){e?u.readyWait++:u.ready(!0)},u.isArray=Array.isArray,u.parseJSON=JSON.parse,u.nodeName=ae,u.isFunction=M,u.isWindow=P,u.camelCase=je,u.type=se,u.now=Date.now,u.isNumeric=function(e){var t=u.type(e);return(t==="number"||t==="string")&&!isNaN(e-parseFloat(e))},u.trim=function(e){return e==null?"":(e+"").replace(Tn,"$1")};var On=o.jQuery,Ln=o.$;return u.noConflict=function(e){return o.$===u&&(o.$=Ln),e&&o.jQuery===u&&(o.jQuery=On),u},typeof c>"u"&&(o.jQuery=o.$=u),u})})(jquery$1)),jquery$1.exports}var jqueryExports=requireJquery();const jQuery$1=getDefaultExportFromCjs(jqueryExports);window.jQuery=jQuery$1;window.$=jQuery$1;/*! Simple JavaScript Inheritance
 * By John Resig http://ejohn.org/
 * MIT Licensed.
 */(function(){var r=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function o(c){var n=this.prototype;r=!0;var a=new this;r=!1;for(var s in c)if(typeof c[s]=="function"&&typeof n[s]=="function")a[s]=(function(k,_){return function(){var T=this._super;this._super=function(M){return n[k].apply(this,M||[])};var E=_.apply(this,arguments);return this._super=T,E}})(s,c[s]);else if(typeof c[s]=="object"&&typeof n[s]=="object"&&s==="defaultOptions"){var d=n[s],p=c[s],m={},g;for(g in d)m[g]=d[g];for(g in p)m[g]=p[g];a[s]=m}else a[s]=c[s];function j(){!r&&this._init&&this._init.apply(this,arguments)}return j.prototype=a,j.prototype.constructor=j,j.extend=o,j}})();/*! Abstract base class for collection plugins v1.0.2.
	Written by Keith Wood (wood.keith{at}optusnet.com.au) December 2013.
	Licensed under the MIT license (http://keith-wood.name/licence.html). */(function($){JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},deepMerge:!0,_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var r=camelCase(this.name);$[r]=this,$.fn[r]=function(o){var c=Array.prototype.slice.call(arguments,1),n=this,a=this;return this.each(function(){if(typeof o=="string"){if(o[0]==="_"||!$[r][o])throw"Unknown method: "+o;var s=$[r][o].apply($[r],[this].concat(c));if(s!==n&&s!==void 0)return a=s,!1}else $[r]._attach(this,o)}),a}},setDefaults:function(r){$.extend(this.defaultOptions,r||{})},_attach:function(r,o){if(r=$(r),!r.hasClass(this._getMarker())){r.addClass(this._getMarker()),o=$.extend(this.deepMerge,{},this.defaultOptions,this._getMetadata(r),o||{});var c=$.extend({name:this.name,elem:r,options:o},this._instSettings(r,o));r.data(this.name,c),this._postAttach(r,c),this.option(r,o)}},_instSettings:function(r,o){return{}},_postAttach:function(r,o){},_getMetadata:function(elem){try{var data=elem.data(this.name.toLowerCase())||"";data=data.replace(/(\\?)'/g,function(r,o){return o?"'":'"'}).replace(/([a-zA-Z0-9]+):/g,function(r,o,c){var n=data.substring(0,c).match(/"/g);return!n||n.length%2===0?'"'+o+'":':o+":"}).replace(/\\:/g,":"),data=$.parseJSON("{"+data+"}");for(var key in data)if(data.hasOwnProperty(key)){var value=data[key];typeof value=="string"&&value.match(/^new Date\(([-0-9,\s]*)\)$/)&&(data[key]=eval(value))}return data}catch(r){return{}}},_getInst:function(r){return $(r).data(this.name)||{}},option:function(r,o,c){r=$(r);var n=r.data(this.name),a=o||{};if(!o||typeof o=="string"&&typeof c>"u")return a=(n||{}).options,a&&o?a[o]:a;r.hasClass(this._getMarker())&&(typeof o=="string"&&(a={},a[o]=c),this._optionsChanged(r,n,a),$.extend(n.options,a))},_optionsChanged:function(r,o,c){},destroy:function(r){r=$(r),r.hasClass(this._getMarker())&&(this._preDestroy(r,this._getInst(r)),r.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(r,o){}});function camelCase(r){return r.replace(/-([a-z])/g,function(o,c){return c.toUpperCase()})}$.JQPlugin={createPlugin:function(r,o){typeof r=="object"&&(o=r,r="JQPlugin"),r=camelCase(r);var c=camelCase(o.name);JQClass.classes[c]=JQClass.classes[r].extend(o),new JQClass.classes[c]}}})(jQuery);(function(r){function o(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}r.extend(o.prototype,{instance:function(d,p){d=(d||"gregorian").toLowerCase(),p=p||"";var m=this._localCals[d+"-"+p];if(!m&&this.calendars[d]&&(m=new this.calendars[d](p),this._localCals[d+"-"+p]=m),!m)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,d);return m},newDate:function(d,p,m,g,j){return g=(typeof d<"u"&&d!==null&&d.year?d.calendar():typeof g=="string"?this.instance(g,j):g)||this.instance(),g.newDate(d,p,m)},substituteDigits:function(d){return function(p){return(p+"").replace(/[0-9]/g,function(m){return d[m]})}},substituteChineseDigits:function(d,p){return function(m){for(var g="",j=0;m>0;){var k=m%10;g=(k===0?"":d[k]+p[j])+g,j++,m=Math.floor(m/10)}return g.indexOf(d[1]+p[1])===0&&(g=g.substr(1)),g||d[0]}}});function c(d,p,m,g){if(this._calendar=d,this._year=p,this._month=m,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function n(d,p){return d=""+d,"000000".substring(0,p-d.length)+d}r.extend(c.prototype,{newDate:function(d,p,m){return this._calendar.newDate(typeof d>"u"||d===null?this:d,p,m)},year:function(d){return arguments.length===0?this._year:this.set(d,"y")},month:function(d){return arguments.length===0?this._month:this.set(d,"m")},day:function(d){return arguments.length===0?this._day:this.set(d,"d")},date:function(d,p,m){if(!this._calendar.isValid(d,p,m))throw(r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=d,this._month=p,this._day=m,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(d,p){return this._calendar.add(this,d,p)},set:function(d,p){return this._calendar.set(this,d,p)},compareTo:function(d){if(this._calendar.name!==d._calendar.name)throw(r.calendars.local.differentCalendars||r.calendars.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,d._calendar.local.name);var p=this._year!==d._year?this._year-d._year:this._month!==d._month?this.monthOfYear()-d.monthOfYear():this._day-d._day;return p===0?0:p<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(d){return this._calendar.fromJD(d)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(d){return this._calendar.fromJSDate(d)},toString:function(){return(this.year()<0?"-":"")+n(Math.abs(this.year()),4)+"-"+n(this.month(),2)+"-"+n(this.day(),2)}});function a(){this.shortYearCutoff="+10"}r.extend(a.prototype,{_validateLevel:0,newDate:function(d,p,m){return typeof d>"u"||d===null?this.today():(d.year&&(this._validate(d,p,m,r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate),m=d.day(),p=d.month(),d=d.year()),new c(this,d,p,m))},today:function(){return this.fromJSDate(new Date)},epoch:function(d){var p=this._validate(d,this.minMonth,this.minDay,r.calendars.local.invalidYear||r.calendars.regionalOptions[""].invalidYear);return p.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,r.calendars.local.invalidYear||r.calendars.regionalOptions[""].invalidYear);return(p.year()<0?"-":"")+n(Math.abs(p.year()),4)},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,r.calendars.local.invalidYear||r.calendars.regionalOptions[""].invalidYear),12},monthOfYear:function(d,p){var m=this._validate(d,p,this.minDay,r.calendars.local.invalidMonth||r.calendars.regionalOptions[""].invalidMonth);return(m.month()+this.monthsInYear(m)-this.firstMonth)%this.monthsInYear(m)+this.minMonth},fromMonthOfYear:function(d,p){var m=(p+this.firstMonth-2*this.minMonth)%this.monthsInYear(d)+this.minMonth;return this._validate(d,m,this.minDay,r.calendars.local.invalidMonth||r.calendars.regionalOptions[""].invalidMonth),m},daysInYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,r.calendars.local.invalidYear||r.calendars.regionalOptions[""].invalidYear);return this.leapYear(p)?366:365},dayOfYear:function(d,p,m){var g=this._validate(d,p,m,r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(d,p,m){var g=this._validate(d,p,m,r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(d,p,m){return this._validate(d,p,m,r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate),{}},add:function(d,p,m){return this._validate(d,this.minMonth,this.minDay,r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate),this._correctAdd(d,this._add(d,p,m),p,m)},_add:function(d,p,m){this._validateLevel++;var g;if(m==="d"||m==="w"){var j=d.toJD()+p*(m==="w"?this.daysInWeek():1);return g=d.calendar().fromJD(j),this._validateLevel--,[g.year(),g.month(),g.day()]}try{var k=d.year()+(m==="y"?p:0),_=d.monthOfYear()+(m==="m"?p:0);g=d.day();var T=function(M){for(;_<M.minMonth;)k--,_+=M.monthsInYear(k);for(var P=M.monthsInYear(k);_>P-1+M.minMonth;)k++,_-=P,P=M.monthsInYear(k)};m==="y"?(d.month()!==this.fromMonthOfYear(k,_)&&(_=this.newDate(k,d.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(k)),g=Math.min(g,this.daysInMonth(k,this.fromMonthOfYear(k,_)))):m==="m"&&(T(this),g=Math.min(g,this.daysInMonth(k,this.fromMonthOfYear(k,_))));var E=[k,this.fromMonthOfYear(k,_),g];return this._validateLevel--,E}catch(M){throw this._validateLevel--,M}},_correctAdd:function(d,p,m,g){if(!this.hasYearZero&&(g==="y"||g==="m")&&(p[0]===0||d.year()>0!=p[0]>0)){var j={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],k=m<0?-1:1;p=this._add(d,m*j[0]+k*j[1],j[2])}return d.date(p[0],p[1],p[2])},set:function(d,p,m){this._validate(d,this.minMonth,this.minDay,r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate);var g=m==="y"?p:d.year(),j=m==="m"?p:d.month(),k=m==="d"?p:d.day();return(m==="y"||m==="m")&&(k=Math.min(k,this.daysInMonth(g,j))),d.date(g,j,k)},isValid:function(d,p,m){this._validateLevel++;var g=this.hasYearZero||d!==0;if(g){var j=this.newDate(d,p,this.minDay);g=p>=this.minMonth&&p-this.minMonth<this.monthsInYear(j)&&m>=this.minDay&&m-this.minDay<this.daysInMonth(j)}return this._validateLevel--,g},toJSDate:function(d,p,m){var g=this._validate(d,p,m,r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate);return r.calendars.instance().fromJD(this.toJD(g)).toJSDate()},fromJSDate:function(d){return this.fromJD(r.calendars.instance().fromJSDate(d).toJD())},_validate:function(d,p,m,g){if(d.year){if(this._validateLevel===0&&this.name!==d.calendar().name)throw(r.calendars.local.differentCalendars||r.calendars.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,d.calendar().local.name);return d}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(d,p,m))throw g.replace(/\{0\}/,this.local.name);var j=this.newDate(d,p,m);return this._validateLevel--,j}catch(k){throw this._validateLevel--,k}}});function s(d){this.local=this.regionalOptions[d]||this.regionalOptions[""]}s.prototype=new a,r.extend(s.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,r.calendars.local.invalidYear||r.calendars.regionalOptions[""].invalidYear);return d=p.year()+(p.year()<0?1:0),d%4===0&&(d%100!==0||d%400===0)},weekOfYear:function(d,p,m){var g=this.newDate(d,p,m);return g.add(4-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(d,p){var m=this._validate(d,p,this.minDay,r.calendars.local.invalidMonth||r.calendars.regionalOptions[""].invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(d,p,m){return(this.dayOfWeek(d,p,m)||7)<6},toJD:function(d,p,m){var g=this._validate(d,p,m,r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate);d=g.year(),p=g.month(),m=g.day(),d<0&&d++,p<3&&(p+=12,d--);var j=Math.floor(d/100),k=2-j+Math.floor(j/4);return Math.floor(365.25*(d+4716))+Math.floor(30.6001*(p+1))+m+k-1524.5},fromJD:function(d){var p=Math.floor(d+.5),m=Math.floor((p-186721625e-2)/36524.25);m=p+1+m-Math.floor(m/4);var g=m+1524,j=Math.floor((g-122.1)/365.25),k=Math.floor(365.25*j),_=Math.floor((g-k)/30.6001),T=g-k-Math.floor(_*30.6001),E=_-(_>13.5?13:1),M=j-(E>2.5?4716:4715);return M<=0&&M--,this.newDate(M,E,T)},toJSDate:function(d,p,m){var g=this._validate(d,p,m,r.calendars.local.invalidDate||r.calendars.regionalOptions[""].invalidDate),j=new Date(g.year(),g.month()-1,g.day());return j.setHours(0),j.setMinutes(0),j.setSeconds(0),j.setMilliseconds(0),j.setHours(j.getHours()>12?j.getHours()+2:0),j},fromJSDate:function(d){return this.newDate(d.getFullYear(),d.getMonth()+1,d.getDate())}}),r.calendars=new o,r.calendars.cdate=c,r.calendars.baseCalendar=a,r.calendars.calendars.gregorian=s})(jQuery);(function(r){r.extend(r.calendars.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),r.calendars.local=r.calendars.regionalOptions[""],r.extend(r.calendars.cdate.prototype,{formatDate:function(o,c){return typeof o!="string"&&(c=o,o=""),this._calendar.formatDate(o||"",this,c)}}),r.extend(r.calendars.baseCalendar.prototype,{UNIX_EPOCH:r.calendars.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:r.calendars.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(o,c,n){if(typeof o!="string"&&(n=c,c=o,o=""),!c)return"";if(c.calendar()!==this)throw r.calendars.local.invalidFormat||r.calendars.regionalOptions[""].invalidFormat;o=o||this.local.dateFormat,n=n||{};for(var a=n.dayNamesShort||this.local.dayNamesShort,s=n.dayNames||this.local.dayNames,d=n.monthNamesShort||this.local.monthNamesShort,p=n.monthNames||this.local.monthNames,m=n.localNumbers||this.local.localNumbers,g=function(P,A){for(var H=1;M+H<o.length&&o.charAt(M+H)===P;)H++;return M+=H-1,Math.floor(H/(A||1))>1},j=function(P,A,H,Y){var se=""+A;if(g(P,Y))for(;se.length<H;)se="0"+se;return se},k=function(P,A,H,Y){return g(P)?Y[A]:H[A]},_=m&&this.local.digits?this.local.digits:function(P){return P},T="",E=!1,M=0;M<o.length;M++)if(E)o.charAt(M)==="'"&&!g("'")?E=!1:T+=o.charAt(M);else switch(o.charAt(M)){case"d":T+=_(j("d",c.day(),2));break;case"D":T+=k("D",c.dayOfWeek(),a,s);break;case"o":T+=j("o",c.dayOfYear(),3);break;case"w":T+=j("w",c.weekOfYear(),2);break;case"m":T+=_(j("m",c.month(),2));break;case"M":T+=k("M",c.month()-this.minMonth,d,p);break;case"y":T+=_(g("y",2)?c.year():(c.year()%100<10?"0":"")+c.year()%100);break;case"Y":g("Y",2),T+=c.formatYear();break;case"J":T+=c.toJD();break;case"@":T+=(c.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":T+=(c.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":g("'")?T+="'":E=!0;break;default:T+=o.charAt(M)}return T},parseDate:function(o,c,n){if(typeof c>"u"||c===null)throw r.calendars.local.invalidArguments||r.calendars.regionalOptions[""].invalidArguments;if(c=typeof c=="object"?c.toString():c+"",c==="")return null;o=o||this.local.dateFormat,n=n||{};var a=n.shortYearCutoff||this.shortYearCutoff;a=typeof a!="string"?a:this.today().year()%100+parseInt(a,10);for(var s=n.dayNamesShort||this.local.dayNamesShort,d=n.dayNames||this.local.dayNames,p=n.monthNamesShort||this.local.monthNamesShort,m=n.monthNames||this.local.monthNames,g=-1,j=-1,k=-1,_=-1,T=-1,E=!1,M=!1,P=function(ae,Ee){for(var De=1;te+De<o.length&&o.charAt(te+De)===ae;)De++;return te+=De-1,Math.floor(De/(Ee||1))>1},A=function(ae,Ee){var De=P(ae,Ee),Me=[2,3,De?4:2,De?4:2,10,11,20]["oyYJ@!".indexOf(ae)+1],re=new RegExp("^-?\\d{1,"+Me+"}"),U=c.substring(z).match(re);if(!U)throw(r.calendars.local.missingNumberAt||r.calendars.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=U[0].length,parseInt(U[0],10)},H=this,Y=function(ae,Ee,De,Me){for(var re=P(ae,Me)?De:Ee,U=0;U<re.length;U++)if(c.substr(z,re[U].length).toLowerCase()===re[U].toLowerCase())return z+=re[U].length,U+H.minMonth;throw(r.calendars.local.unknownNameAt||r.calendars.regionalOptions[""].unknownNameAt).replace(/\{0\}/,z)},se=function(){if(c.charAt(z)!==o.charAt(te))throw(r.calendars.local.unexpectedLiteralAt||r.calendars.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,z);z++},z=0,te=0;te<o.length;te++)if(M)o.charAt(te)==="'"&&!P("'")?M=!1:se();else switch(o.charAt(te)){case"d":_=A("d");break;case"D":Y("D",s,d);break;case"o":T=A("o");break;case"w":A("w");break;case"m":k=A("m");break;case"M":k=Y("M",p,m);break;case"y":var u=te;E=!P("y",2),te=u,j=A("y",2);break;case"Y":j=A("Y",2);break;case"J":g=A("J")+.5,c.charAt(z)==="."&&(z++,A("J"));break;case"@":g=A("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":g=A("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":z=c.length;break;case"'":P("'")?se():M=!0;break;default:se()}if(z<c.length)throw r.calendars.local.unexpectedText||r.calendars.regionalOptions[""].unexpectedText;if(j===-1?j=this.today().year():j<100&&E&&(j+=a===-1?1900:this.today().year()-this.today().year()%100-(j<=a?0:100)),T>-1){k=1,_=T;for(var fe=this.daysInMonth(j,k);_>fe;fe=this.daysInMonth(j,k))k++,_-=fe}return g>-1?this.fromJD(g):this.newDate(j,k,_)},determineDate:function(o,c,n,a,s){n&&typeof n!="object"&&(s=a,a=n,n=null),typeof a!="string"&&(s=a,a="");var d=this,p=function(m){try{return d.parseDate(a,m,s)}catch{}m=m.toLowerCase();for(var g=(m.match(/^c/)&&n?n.newDate():null)||d.today(),j=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,k=j.exec(m);k;)g.add(parseInt(k[1],10),k[2]||"d"),k=j.exec(m);return g};return c=c?c.newDate():null,o=typeof o>"u"||o===null?c:typeof o=="string"?p(o):typeof o=="number"?isNaN(o)||o===1/0||o===-1/0?c:d.today().add(o,"d"):d.newDate(o),o}})})(jQuery);(function(r){var o="calendarsPicker";r.JQPlugin.createPlugin({name:o,defaultRenderer:{picker:'<div class="calendars"><div class="calendars-nav">{link:prev}{link:today}{link:next}</div>{months}{popup:start}<div class="calendars-ctrl">{link:clear}{link:close}</div>{popup:end}<div class="calendars-clear-fix"></div></div>',monthRow:'<div class="calendars-month-row">{months}</div>',month:'<div class="calendars-month"><div class="calendars-month-header">{monthHeader}</div><table><thead>{weekHeader}</thead><tbody>{weeks}</tbody></table></div>',weekHeader:"<tr>{days}</tr>",dayHeader:"<th>{day}</th>",week:"<tr>{days}</tr>",day:"<td>{day}</td>",monthSelector:".calendars-month",daySelector:"td",rtlClass:"calendars-rtl",multiClass:"calendars-multi",defaultClass:"",selectedClass:"calendars-selected",highlightedClass:"calendars-highlight",todayClass:"calendars-today",otherMonthClass:"calendars-other-month",weekendClass:"calendars-weekend",commandClass:"calendars-cmd",commandButtonClass:"",commandLinkClass:"",disabledClass:"calendars-disabled"},commands:{prev:{text:"prevText",status:"prevStatus",keystroke:{keyCode:33},enabled:function(n){var a=n.curMinDate();return!a||n.drawDate.newDate().add(1-n.options.monthsToStep-n.options.monthsOffset,"m").day(n.options.calendar.minDay).add(-1,"d").compareTo(a)!==-1},date:function(n){return n.drawDate.newDate().add(-n.options.monthsToStep-n.options.monthsOffset,"m").day(n.options.calendar.minDay)},action:function(n){c.changeMonth(this,-n.options.monthsToStep)}},prevJump:{text:"prevJumpText",status:"prevJumpStatus",keystroke:{keyCode:33,ctrlKey:!0},enabled:function(n){var a=n.curMinDate();return!a||n.drawDate.newDate().add(1-n.options.monthsToJump-n.options.monthsOffset,"m").day(n.options.calendar.minDay).add(-1,"d").compareTo(a)!==-1},date:function(n){return n.drawDate.newDate().add(-n.options.monthsToJump-n.options.monthsOffset,"m").day(n.options.calendar.minDay)},action:function(n){c.changeMonth(this,-n.options.monthsToJump)}},next:{text:"nextText",status:"nextStatus",keystroke:{keyCode:34},enabled:function(n){var a=n.get("maxDate");return!a||n.drawDate.newDate().add(n.options.monthsToStep-n.options.monthsOffset,"m").day(n.options.calendar.minDay).compareTo(a)!==1},date:function(n){return n.drawDate.newDate().add(n.options.monthsToStep-n.options.monthsOffset,"m").day(n.options.calendar.minDay)},action:function(n){c.changeMonth(this,n.options.monthsToStep)}},nextJump:{text:"nextJumpText",status:"nextJumpStatus",keystroke:{keyCode:34,ctrlKey:!0},enabled:function(n){var a=n.get("maxDate");return!a||n.drawDate.newDate().add(n.options.monthsToJump-n.options.monthsOffset,"m").day(n.options.calendar.minDay).compareTo(a)!==1},date:function(n){return n.drawDate.newDate().add(n.options.monthsToJump-n.options.monthsOffset,"m").day(n.options.calendar.minDay)},action:function(n){c.changeMonth(this,n.options.monthsToJump)}},current:{text:"currentText",status:"currentStatus",keystroke:{keyCode:36,ctrlKey:!0},enabled:function(n){var a=n.curMinDate(),s=n.get("maxDate"),d=n.selectedDates[0]||n.options.calendar.today();return(!a||d.compareTo(a)!==-1)&&(!s||d.compareTo(s)!==1)},date:function(n){return n.selectedDates[0]||n.options.calendar.today()},action:function(n){var a=n.selectedDates[0]||n.options.calendar.today();c.showMonth(this,a.year(),a.month())}},today:{text:"todayText",status:"todayStatus",keystroke:{keyCode:36,ctrlKey:!0},enabled:function(n){var a=n.curMinDate(),s=n.get("maxDate");return(!a||n.options.calendar.today().compareTo(a)!==-1)&&(!s||n.options.calendar.today().compareTo(s)!==1)},date:function(n){return n.options.calendar.today()},action:function(){c.showMonth(this)}},clear:{text:"clearText",status:"clearStatus",keystroke:{keyCode:35,ctrlKey:!0},enabled:function(){return!0},date:function(){return null},action:function(){c.clear(this)}},close:{text:"closeText",status:"closeStatus",keystroke:{keyCode:27},enabled:function(){return!0},date:function(){return null},action:function(){c.hide(this)}},prevWeek:{text:"prevWeekText",status:"prevWeekStatus",keystroke:{keyCode:38,ctrlKey:!0},enabled:function(n){var a=n.curMinDate();return!a||n.drawDate.newDate().add(-n.options.calendar.daysInWeek(),"d").compareTo(a)!==-1},date:function(n){return n.drawDate.newDate().add(-n.options.calendar.daysInWeek(),"d")},action:function(n){c.changeDay(this,-n.options.calendar.daysInWeek())}},prevDay:{text:"prevDayText",status:"prevDayStatus",keystroke:{keyCode:37,ctrlKey:!0},enabled:function(n){var a=n.curMinDate();return!a||n.drawDate.newDate().add(-1,"d").compareTo(a)!==-1},date:function(n){return n.drawDate.newDate().add(-1,"d")},action:function(){c.changeDay(this,-1)}},nextDay:{text:"nextDayText",status:"nextDayStatus",keystroke:{keyCode:39,ctrlKey:!0},enabled:function(n){var a=n.get("maxDate");return!a||n.drawDate.newDate().add(1,"d").compareTo(a)!==1},date:function(n){return n.drawDate.newDate().add(1,"d")},action:function(){c.changeDay(this,1)}},nextWeek:{text:"nextWeekText",status:"nextWeekStatus",keystroke:{keyCode:40,ctrlKey:!0},enabled:function(n){var a=n.get("maxDate");return!a||n.drawDate.newDate().add(n.options.calendar.daysInWeek(),"d").compareTo(a)!==1},date:function(n){return n.drawDate.newDate().add(n.options.calendar.daysInWeek(),"d")},action:function(n){c.changeDay(this,n.options.calendar.daysInWeek())}}},defaultOptions:{calendar:r.calendars.instance(),pickerClass:"",showOnFocus:!0,showTrigger:null,showAnim:"show",showOptions:{},showSpeed:"normal",popupContainer:null,alignment:"bottom",fixedWeeks:!1,firstDay:null,calculateWeek:null,localNumbers:!1,monthsToShow:1,monthsOffset:0,monthsToStep:1,monthsToJump:12,useMouseWheel:!0,changeMonth:!0,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,defaultDate:null,selectDefaultDate:!1,minDate:null,maxDate:null,dateFormat:null,autoSize:!1,rangeSelect:!1,rangeSeparator:" - ",multiSelect:0,multiSeparator:",",onDate:null,onShow:null,onChangeMonthYear:null,onSelect:null,onClose:null,altField:null,altFormat:null,constrainInput:!0,commandsAsDateFormat:!1,commands:{}},regionalOptions:{"":{renderer:{},prevText:"&lt;Prev",prevStatus:"Show the previous month",prevJumpText:"&lt;&lt;",prevJumpStatus:"Show the previous year",nextText:"Next&gt;",nextStatus:"Show the next month",nextJumpText:"&gt;&gt;",nextJumpStatus:"Show the next year",currentText:"Current",currentStatus:"Show the current month",todayText:"Today",todayStatus:"Show today's month",clearText:"Clear",clearStatus:"Clear all the dates",closeText:"Close",closeStatus:"Close the datepicker",yearStatus:"Change the year",earlierText:"&#160;&#160;▲",laterText:"&#160;&#160;▼",monthStatus:"Change the month",weekText:"Wk",weekStatus:"Week of the year",dayStatus:"Select DD, M d, yyyy",defaultStatus:"Select a date",isRTL:!1}},_disabled:[],_popupClass:"calendars-popup",_triggerClass:"calendars-trigger",_disableClass:"calendars-disable",_monthYearClass:"calendars-month-year",_curMonthClass:"calendars-month-",_anyYearClass:"calendars-any-year",_curDoWClass:"calendars-dow-",_init:function(){this.defaultOptions.commands=this.commands,this.regionalOptions[""].renderer=this.defaultRenderer,this._super()},_instSettings:function(n,a){return{selectedDates:[],drawDate:null,pickingRange:!1,inline:r.inArray(n[0].nodeName.toLowerCase(),["div","span"])>-1,get:function(s){return r.inArray(s,["defaultDate","minDate","maxDate"])>-1?this.options.calendar.determineDate(this.options[s],null,this.selectedDates[0],this.get("dateFormat"),this.getConfig()):s==="dateFormat"?this.options.dateFormat||this.options.calendar.local.dateFormat:this.options[s]},curMinDate:function(){return this.pickingRange?this.selectedDates[0]:this.get("minDate")},getConfig:function(){return{dayNamesShort:this.options.dayNamesShort,dayNames:this.options.dayNames,monthNamesShort:this.options.monthNamesShort,monthNames:this.options.monthNames,calculateWeek:this.options.calculateWeek,shortYearCutoff:this.options.shortYearCutoff}}}},_postAttach:function(n,a){a.inline?(a.drawDate=c._checkMinMax((a.selectedDates[0]||a.get("defaultDate")||a.options.calendar.today()).newDate(),a),a.prevDate=a.drawDate.newDate(),this._update(n[0]),r.fn.mousewheel&&n.mousewheel(this._doMouseWheel)):(this._attachments(n,a),n.on("keydown."+a.name,this._keyDown).on("keypress."+a.name,this._keyPress).on("keyup."+a.name,this._keyUp),n.attr("disabled")&&this.disable(n[0]))},_optionsChanged:function(n,a,s){if(s.calendar&&s.calendar!==a.options.calendar){var d=function(j){return typeof a.options[j]=="object"?null:a.options[j]};s=r.extend({defaultDate:d("defaultDate"),minDate:d("minDate"),maxDate:d("maxDate")},s),a.selectedDates=[],a.drawDate=null}var p=a.selectedDates;r.extend(a.options,s),this.setDate(n[0],p,null,!1,!0),a.pickingRange=!1;var m=a.options.calendar,g=a.get("defaultDate");a.drawDate=this._checkMinMax(g||a.drawDate||g||m.today(),a).newDate(),a.inline||this._attachments(n,a),(a.inline||a.div)&&this._update(n[0])},_attachments:function(n,a){n.off("focus."+a.name),a.options.showOnFocus&&n.on("focus."+a.name,this.show),a.trigger&&a.trigger.remove();var s=a.options.showTrigger;a.trigger=s?r(s).clone().removeAttr("id").addClass(this._triggerClass)[a.options.isRTL?"insertBefore":"insertAfter"](n).click(function(){c.isDisabled(n[0])||c[c.curInst===a?"hide":"show"](n[0])}):r([]),this._autoSize(n,a);var d=this._extractDates(a,n.val());d&&this.setDate(n[0],d,null,!0);var p=a.get("defaultDate");a.options.selectDefaultDate&&p&&a.selectedDates.length===0&&this.setDate(n[0],(p||a.options.calendar.today()).newDate())},_autoSize:function(n,a){if(a.options.autoSize&&!a.inline){var s=a.options.calendar,d=s.newDate(2009,10,20),p=a.get("dateFormat");if(p.match(/[DM]/)){var m=function(g){for(var j=0,k=0,_=0;_<g.length;_++)g[_].length>j&&(j=g[_].length,k=_);return k};d.month(m(s.local[p.match(/MM/)?"monthNames":"monthNamesShort"])+1),d.day(m(s.local[p.match(/DD/)?"dayNames":"dayNamesShort"])+20-d.dayOfWeek())}a.elem.attr("size",d.formatDate(p,{localNumbers:a.options.localnumbers}).length)}},_preDestroy:function(n,a){a.trigger&&a.trigger.remove(),n.empty().off("."+a.name),a.inline&&r.fn.mousewheel&&n.unmousewheel(),!a.inline&&a.options.autoSize&&n.removeAttr("size")},multipleEvents:function(n){var a=arguments;return function(){for(var s=0;s<a.length;s++)a[s].apply(this,arguments)}},enable:function(n){if(n=r(n),!!n.hasClass(this._getMarker())){var a=this._getInst(n);a.inline?n.children("."+this._disableClass).remove().end().find("button,select").prop("disabled",!1).end().find("a").attr("href","#"):(n.prop("disabled",!1),a.trigger.filter("button."+this._triggerClass).prop("disabled",!1).end().filter("img."+this._triggerClass).css({opacity:"1.0",cursor:""})),this._disabled=r?.map(this._disabled,function(s){return s===n[0]?null:s})}},disable:function(n){if(n=r(n),!!n.hasClass(this._getMarker())){var a=this._getInst(n);if(a.inline){var s=n.children(":last"),d=s.offset(),p={left:0,top:0};s.parents().each(function(){if(r(this).css("position")==="relative")return p=r(this).offset(),!1});var m=n.css("zIndex");m=(m==="auto"?0:parseInt(m,10))+1,n.prepend('<div class="'+this._disableClass+'" style="width: '+s.outerWidth()+"px; height: "+s.outerHeight()+"px; left: "+(d.left-p.left)+"px; top: "+(d.top-p.top)+"px; z-index: "+m+'"></div>').find("button,select").prop("disabled",!0).end().find("a").removeAttr("href")}else n.prop("disabled",!0),a.trigger.filter("button."+this._triggerClass).prop("disabled",!0).end().filter("img."+this._triggerClass).css({opacity:"0.5",cursor:"default"});this._disabled=r?.map(this._disabled,function(g){return g===n[0]?null:g}),this._disabled.push(n[0])}},isDisabled:function(n){return n&&r.inArray(n,this._disabled)>-1},show:function(n){n=r(n.target||n);var a=c._getInst(n);if(c.curInst!==a&&(c.curInst&&c.hide(c.curInst,!0),!r.isEmptyObject(a))){a.lastVal=null,a.selectedDates=c._extractDates(a,n.val()),a.pickingRange=!1,a.drawDate=c._checkMinMax((a.selectedDates[0]||a.get("defaultDate")||a.options.calendar.today()).newDate(),a),a.prevDate=a.drawDate.newDate(),c.curInst=a,c._update(n[0],!0);var s=c._checkOffset(a);a.div.css({left:s.left,top:s.top});var d=a.options.showAnim,p=a.options.showSpeed;if(p=p==="normal"&&r.ui&&parseInt(r.ui.version.substring(2))>=8?"_default":p,r.effects&&(r.effects[d]||r.effects.effect&&r.effects.effect[d])){var m=a.div.data();for(var g in m)g.match(/^ec\.storage\./)&&(m[g]=a._mainDiv.css(g.replace(/ec\.storage\./,"")));a.div.data(m).show(d,a.options.showOptions,p)}else a.div[d||"show"](d?p:0)}},_extractDates:function(n,a){if(a!==n.lastVal){n.lastVal=a,a=a.split(n.options.multiSelect?n.options.multiSeparator:n.options.rangeSelect?n.options.rangeSeparator:"\0");for(var s=[],d=0;d<a.length;d++)try{var p=n.options.calendar.parseDate(n.get("dateFormat"),a[d]);if(p){for(var m=!1,g=0;g<s.length;g++)if(s[g].compareTo(p)===0){m=!0;break}m||s.push(p)}}catch{}return s.splice(n.options.multiSelect||(n.options.rangeSelect?2:1),s.length),n.options.rangeSelect&&s.length===1&&(s[1]=s[0]),s}},_update:function(n,a){n=r(n.target||n);var s=c._getInst(n);if(!r.isEmptyObject(s))if((s.inline||c.curInst===s)&&r.isFunction(s.options.onChangeMonthYear)&&(!s.prevDate||s.prevDate.year()!==s.drawDate.year()||s.prevDate.month()!==s.drawDate.month())&&s.options.onChangeMonthYear.apply(n[0],[s.drawDate.year(),s.drawDate.month()]),s.inline){var d=r("a, :input",n).index(r(":focus",n));n.html(this._generateContent(n[0],s));var p=n.find("a, :input");p.eq(Math.max(Math.min(d,p.length-1),0)).focus()}else c.curInst===s&&(s.div||(s.div=r("<div></div>").addClass(this._popupClass).css({display:a?"none":"static",position:"absolute",left:n.offset().left,top:n.offset().top+n.outerHeight()}).appendTo(r(s.options.popupContainer||"body")),r.fn.mousewheel&&s.div.mousewheel(this._doMouseWheel)),s.div.html(this._generateContent(n[0],s)),n.focus())},_updateInput:function(n,a){var s=this._getInst(n);if(!r.isEmptyObject(s)){for(var d="",p="",m=s.options.multiSelect?s.options.multiSeparator:s.options.rangeSeparator,g=s.options.calendar,j=s.get("dateFormat"),k=s.options.altFormat||j,_={localNumbers:s.options.localNumbers},T=0;T<s.selectedDates.length;T++)d+=a?"":(T>0?m:"")+g.formatDate(j,s.selectedDates[T],_),p+=(T>0?m:"")+g.formatDate(k,s.selectedDates[T],_);!s.inline&&!a&&r(n).val(d),r(s.options.altField).val(p),r.isFunction(s.options.onSelect)&&!a&&!s.inSelect&&(s.inSelect=!0,s.options.onSelect.apply(n,[s.selectedDates]),s.inSelect=!1),r(n).change()}},_getBorders:function(n){var a=function(s){return{thin:1,medium:3,thick:5}[s]||s};return[parseFloat(a(n.css("border-left-width"))),parseFloat(a(n.css("border-top-width")))]},_checkOffset:function(n){var a=n.elem.is(":hidden")&&n.trigger?n.trigger:n.elem,s=a.offset(),d=r(window).width(),p=r(window).height();if(d===0)return s;var m=!1;r(n.elem).parents().each(function(){return m=m||r(this).css("position")==="fixed",!m});var g=document.documentElement.scrollLeft||document.body.scrollLeft,j=document.documentElement.scrollTop||document.body.scrollTop,k=s.top-(m?j:0)-n.div.outerHeight(),_=s.top-(m?j:0)+a.outerHeight(),T=s.left-(m?g:0),E=s.left-(m?g:0)+a.outerWidth()-n.div.outerWidth(),M=s.left-g+n.div.outerWidth()>d,P=s.top-j+n.elem.outerHeight()+n.div.outerHeight()>p;n.div.css("position",m?"fixed":"absolute");var A=n.options.alignment;return A==="topLeft"?s={left:T,top:k}:A==="topRight"?s={left:E,top:k}:A==="bottomLeft"?s={left:T,top:_}:A==="bottomRight"?s={left:E,top:_}:A==="top"?s={left:n.options.isRTL||M?E:T,top:k}:s={left:n.options.isRTL||M?E:T,top:P?k:_},s.left=Math.max(m?0:g,s.left),s.top=Math.max(m?0:j,s.top),s},_checkExternalClick:function(n){if(c.curInst){var a=r(n.target);a.closest("."+c._popupClass+",."+c._triggerClass).length===0&&!a.hasClass(c._getMarker())&&c.hide(c.curInst)}},hide:function(n,a){if(n){var s=this._getInst(n);if(r.isEmptyObject(s)&&(s=n),s&&s===c.curInst){var d=a?"":s.options.showAnim,p=s.options.showSpeed;p=p==="normal"&&r.ui&&parseInt(r.ui.version.substring(2))>=8?"_default":p;var m=function(){s.div&&(s.div.remove(),s.div=null,c.curInst=null,r.isFunction(s.options.onClose)&&s.options.onClose.apply(n,[s.selectedDates]))};if(s.div.stop(),r.effects&&(r.effects[d]||r.effects.effect&&r.effects.effect[d]))s.div.hide(d,s.options.showOptions,p,m);else{var g=d==="slideDown"?"slideUp":d==="fadeIn"?"fadeOut":"hide";s.div[g](d?p:"",m)}d||m()}}},_keyDown:function(n){var a=n.data&&n.data.elem||n.target,s=c._getInst(a),d=!1,p;if(s.inline||s.div)if(n.keyCode===9)c.hide(a);else if(n.keyCode===13)c.selectDate(a,r("a."+s.options.renderer.highlightedClass,s.div)[0]),d=!0;else{var m=s.options.commands;for(var g in m)if(s.options.commands.hasOwnProperty(g)&&(p=m[g],p.keystroke.keyCode===n.keyCode&&!!p.keystroke.ctrlKey==!!(n.ctrlKey||n.metaKey)&&!!p.keystroke.altKey===n.altKey&&!!p.keystroke.shiftKey===n.shiftKey)){c.performAction(a,g),d=!0;break}}else p=s.options.commands.current,p.keystroke.keyCode===n.keyCode&&!!p.keystroke.ctrlKey==!!(n.ctrlKey||n.metaKey)&&!!p.keystroke.altKey===n.altKey&&!!p.keystroke.shiftKey===n.shiftKey&&(c.show(a),d=!0);return s.ctrlKey=n.keyCode<48&&n.keyCode!==32||n.ctrlKey||n.metaKey,d&&(n.preventDefault(),n.stopPropagation()),!d},_keyPress:function(n){var a=c._getInst(n.data&&n.data.elem||n.target);if(!r.isEmptyObject(a)&&a.options.constrainInput){var s=String.fromCharCode(n.keyCode||n.charCode),d=c._allowedChars(a);return n.metaKey||a.ctrlKey||s<" "||!d||d.indexOf(s)>-1}return!0},_allowedChars:function(n){for(var a=n.options.multiSelect?n.options.multiSeparator:n.options.rangeSelect?n.options.rangeSeparator:"",s=!1,d=!1,p=n.get("dateFormat"),m=0;m<p.length;m++){var g=p.charAt(m);if(s)g==="'"&&p.charAt(m+1)!=="'"?s=!1:a+=g;else switch(g){case"d":case"m":case"o":case"w":a+=d?"":"0123456789",d=!0;break;case"y":case"@":case"!":a+=(d?"":"0123456789")+"-",d=!0;break;case"J":a+=(d?"":"0123456789")+"-.",d=!0;break;case"D":case"M":case"Y":return null;case"'":p.charAt(m+1)==="'"?a+="'":s=!0;break;default:a+=g}}return a},_keyUp:function(n){var a=n.data&&n.data.elem||n.target,s=c._getInst(a);if(!r.isEmptyObject(s)&&!s.ctrlKey&&s.lastVal!==s.elem.val())try{var d=c._extractDates(s,s.elem.val());d.length>0&&c.setDate(a,d,null,!0)}catch{}return!0},_doMouseWheel:function(n,a){var s=c.curInst&&c.curInst.elem[0]||r(n.target).closest("."+c._getMarker())[0];if(!c.isDisabled(s)){var d=c._getInst(s);d.options.useMouseWheel&&(a=a<0?-1:1,c.changeMonth(s,-d.options[n.ctrlKey?"monthsToJump":"monthsToStep"]*a)),n.preventDefault()}},clear:function(n){var a=this._getInst(n);if(!r.isEmptyObject(a)){a.selectedDates=[],this.hide(n);var s=a.get("defaultDate");a.options.selectDefaultDate&&s?this.setDate(n,(s||a.options.calendar.today()).newDate()):this._updateInput(n)}},getDate:function(n){var a=this._getInst(n);return r.isEmptyObject(a)?[]:a.selectedDates},setDate:function(n,a,s,d,p){var m=this._getInst(n);if(!r.isEmptyObject(m)){r.isArray(a)||(a=[a],s&&a.push(s));var g=m.get("minDate"),j=m.get("maxDate"),k=m.selectedDates[0];m.selectedDates=[];for(var _=0;_<a.length;_++){var T=m.options.calendar.determineDate(a[_],null,k,m.get("dateFormat"),m.getConfig());if(T&&(!g||T.compareTo(g)!==-1)&&(!j||T.compareTo(j)!==1)){for(var E=!1,M=0;M<m.selectedDates.length;M++)if(m.selectedDates[M].compareTo(T)===0){E=!0;break}E||m.selectedDates.push(T)}}if(m.selectedDates.splice(m.options.multiSelect||(m.options.rangeSelect?2:1),m.selectedDates.length),m.options.rangeSelect){switch(m.selectedDates.length){case 1:m.selectedDates[1]=m.selectedDates[0];break;case 2:m.selectedDates[1]=m.selectedDates[0].compareTo(m.selectedDates[1])===1?m.selectedDates[0]:m.selectedDates[1];break}m.pickingRange=!1}m.prevDate=m.drawDate?m.drawDate.newDate():null,m.drawDate=this._checkMinMax((m.selectedDates[0]||m.get("defaultDate")||m.options.calendar.today()).newDate(),m),p||(this._update(n),this._updateInput(n,d))}},isSelectable:function(n,a){var s=this._getInst(n);return r.isEmptyObject(s)?!1:(a=s.options.calendar.determineDate(a,s.selectedDates[0]||s.options.calendar.today(),null,s.options.dateFormat,s.getConfig()),this._isSelectable(n,a,s.options.onDate,s.get("minDate"),s.get("maxDate")))},_isSelectable:function(n,a,s,d,p){var m=typeof s=="boolean"?{selectable:s}:r.isFunction(s)?s.apply(n,[a,!0]):{};return m.selectable!==!1&&(!d||a.toJD()>=d.toJD())&&(!p||a.toJD()<=p.toJD())},performAction:function(n,a){var s=this._getInst(n);if(!r.isEmptyObject(s)&&!this.isDisabled(n)){var d=s.options.commands;d[a]&&d[a].enabled.apply(n,[s])&&d[a].action.apply(n,[s])}},showMonth:function(n,a,s,d){var p=this._getInst(n);if(!r.isEmptyObject(p)&&(typeof d<"u"&&d!==null||p.drawDate.year()!==a||p.drawDate.month()!==s)){p.prevDate=p.drawDate.newDate();var m=p.options.calendar,g=this._checkMinMax(typeof a<"u"&&a!==null?m.newDate(a,s,1):m.today(),p);p.drawDate.date(g.year(),g.month(),typeof d<"u"&&d!==null?d:Math.min(p.drawDate.day(),m.daysInMonth(g.year(),g.month()))),this._update(n)}},changeMonth:function(n,a){var s=this._getInst(n);if(!r.isEmptyObject(s)){var d=s.drawDate.newDate().add(a,"m");this.showMonth(n,d.year(),d.month())}},changeDay:function(n,a){var s=this._getInst(n);if(!r.isEmptyObject(s)){var d=s.drawDate.newDate().add(a,"d");this.showMonth(n,d.year(),d.month(),d.day())}},_checkMinMax:function(n,a){var s=a.get("minDate"),d=a.get("maxDate");return n=s&&n.compareTo(s)===-1?s.newDate():n,n=d&&n.compareTo(d)===1?d.newDate():n,n},retrieveDate:function(n,a){var s=this._getInst(n);return r.isEmptyObject(s)?null:s.options.calendar.fromJD(parseFloat(a.className.replace(/^.*jd(\d+\.5).*$/,"$1")))},selectDate:function(n,a){var s=this._getInst(n);if(!r.isEmptyObject(s)&&!this.isDisabled(n)){var d=this.retrieveDate(n,a);if(s.options.multiSelect){for(var p=!1,m=0;m<s.selectedDates.length;m++)if(d.compareTo(s.selectedDates[m])===0){s.selectedDates.splice(m,1),p=!0;break}!p&&s.selectedDates.length<s.options.multiSelect&&s.selectedDates.push(d)}else s.options.rangeSelect?(s.pickingRange?s.selectedDates[1]=d:s.selectedDates=[d,d],s.pickingRange=!s.pickingRange):s.selectedDates=[d];s.prevDate=s.drawDate=d.newDate(),this._updateInput(n),s.inline||s.pickingRange||s.selectedDates.length<(s.options.multiSelect||(s.options.rangeSelect?2:1))?this._update(n):this.hide(n)}},_generateContent:function(n,a){var s=a.options.monthsToShow;s=r.isArray(s)?s:[1,s],a.drawDate=this._checkMinMax(a.drawDate||a.get("defaultDate")||a.options.calendar.today(),a);for(var d=a.drawDate.newDate().add(-a.options.monthsOffset,"m"),p="",m=0;m<s[0];m++){for(var g="",j=0;j<s[1];j++)g+=this._generateMonth(n,a,d.year(),d.month(),a.options.calendar,a.options.renderer,m===0&&j===0),d.add(1,"m");p+=this._prepare(a.options.renderer.monthRow,a).replace(/\{months\}/,g)}var k=this._prepare(a.options.renderer.picker,a).replace(/\{months\}/,p).replace(/\{weekHeader\}/g,this._generateDayHeaders(a,a.options.calendar,a.options.renderer)),_=function(Y,se,z,te,u){if(k.indexOf("{"+Y+":"+te+"}")!==-1){var fe=a.options.commands[te],ae=a.options.commandsAsDateFormat?fe.date.apply(n,[a]):null;k=k.replace(new RegExp("\\{"+Y+":"+te+"\\}","g"),"<"+se+(fe.status?' title="'+a.options[fe.status]+'"':"")+' class="'+a.options.renderer.commandClass+" "+a.options.renderer.commandClass+"-"+te+" "+u+(fe.enabled(a)?"":" "+a.options.renderer.disabledClass)+'">'+(ae?ae.formatDate(a.options[fe.text],{localNumbers:a.options.localNumbers}):a.options[fe.text])+"</"+z+">")}};for(var T in a.options.commands)a.options.commands.hasOwnProperty(T)&&(_("button",'button type="button"',"button",T,a.options.renderer.commandButtonClass),_("link",'a href="javascript:void(0)"',"a",T,a.options.renderer.commandLinkClass));if(k=r(k),s[1]>1){var E=0;r(a.options.renderer.monthSelector,k).each(function(){var Y=++E%s[1];r(this).addClass(Y===1?"first":Y===0?"last":"")})}var M=this;function P(Y){(a.inline?r(Y).closest("."+M._getMarker()):a.div).find(a.options.renderer.daySelector+" a").removeClass(a.options.renderer.highlightedClass)}k.find(a.options.renderer.daySelector+" a").hover(function(){P(this),r(this).addClass(a.options.renderer.highlightedClass)},function(){P(this)}).click(function(){M.selectDate(n,this)}).end().find("select."+this._monthYearClass+":not(."+this._anyYearClass+")").change(function(){var Y=r(this).val().split("/");M.showMonth(n,parseInt(Y[1],10),parseInt(Y[0],10))}).end().find("select."+this._anyYearClass).click(function(){r(this).css("visibility","hidden").next("input").css({left:this.offsetLeft,top:this.offsetTop,width:this.offsetWidth,height:this.offsetHeight}).show().focus()}).end().find("input."+M._monthYearClass).change(function(){try{var Y=parseInt(r(this).val(),10);Y=isNaN(Y)?a.drawDate.year():Y,M.showMonth(n,Y,a.drawDate.month(),a.drawDate.day())}catch{}}).keydown(function(Y){Y.keyCode===13?r(Y.elem).change():Y.keyCode===27&&(r(Y.elem).hide().prev("select").css("visibility","visible"),a.elem.focus())});var A={elem:a.elem[0]};k.keydown(A,this._keyDown).keypress(A,this._keyPress).keyup(A,this._keyUp),k.find("."+a.options.renderer.commandClass).click(function(){if(!r(this).hasClass(a.options.renderer.disabledClass)){var Y=this.className.replace(new RegExp("^.*"+a.options.renderer.commandClass+"-([^ ]+).*$"),"$1");c.performAction(n,Y)}}),a.options.isRTL&&k.addClass(a.options.renderer.rtlClass),s[0]*s[1]>1&&k.addClass(a.options.renderer.multiClass),a.options.pickerClass&&k.addClass(a.options.pickerClass),r("body").append(k);var H=0;return k.find(a.options.renderer.monthSelector).each(function(){H+=r(this).outerWidth()}),k.width(H/s[0]),r.isFunction(a.options.onShow)&&a.options.onShow.apply(n,[k,a.options.calendar,a]),k},_generateMonth:function(n,a,s,d,p,m,g){var j=p.daysInMonth(s,d),k=a.options.monthsToShow;k=r.isArray(k)?k:[1,k];var _=a.options.fixedWeeks||k[0]*k[1]>1,T=a.options.firstDay;T=typeof T>"u"||T===null?p.local.firstDay:T;var E=(p.dayOfWeek(s,d,p.minDay)-T+p.daysInWeek())%p.daysInWeek(),M=_?6:Math.ceil((E+j)/p.daysInWeek()),P=a.options.selectOtherMonths&&a.options.showOtherMonths,A=a.pickingRange?a.selectedDates[0]:a.get("minDate"),H=a.get("maxDate"),Y=m.week.indexOf("{weekOfYear}")>-1,se=p.today(),z=p.newDate(s,d,p.minDay);z.add(-E-(_&&(z.dayOfWeek()===T||z.daysInMonth()<p.daysInWeek())?p.daysInWeek():0),"d");for(var te=z.toJD(),u=function(Te){return a.options.localNumbers&&p.local.digits?p.local.digits(Te):Te},fe="",ae=0;ae<M;ae++){for(var Ee=Y?'<span class="jd'+te+'">'+(r.isFunction(a.options.calculateWeek)?a.options.calculateWeek(z):z.weekOfYear())+"</span>":"",De="",Me=0;Me<p.daysInWeek();Me++){var re=!1;if(a.options.rangeSelect&&a.selectedDates.length>0)re=z.compareTo(a.selectedDates[0])!==-1&&z.compareTo(a.selectedDates[1])!==1;else for(var U=0;U<a.selectedDates.length;U++)if(a.selectedDates[U].compareTo(z)===0){re=!0;break}var ye=r.isFunction(a.options.onDate)?a.options.onDate.apply(n,[z,z.month()===d]):{},ke=(P||z.month()===d)&&this._isSelectable(n,z,ye.selectable,A,H);De+=this._prepare(m.day,a).replace(/\{day\}/g,(ke?'<a href="javascript:void(0)"':"<span")+' class="jd'+te+" "+(ye.dateClass||"")+(re&&(P||z.month()===d)?" "+m.selectedClass:"")+(ke?" "+m.defaultClass:"")+(z.weekDay()?"":" "+m.weekendClass)+(z.month()===d?"":" "+m.otherMonthClass)+(z.compareTo(se)===0&&z.month()===d?" "+m.todayClass:"")+(z.compareTo(a.drawDate)===0&&z.month()===d?" "+m.highlightedClass:"")+'"'+(ye.title||a.options.dayStatus&&ke?' title="'+(ye.title||z.formatDate(a.options.dayStatus,{localNumbers:a.options.localNumbers}))+'"':"")+">"+(a.options.showOtherMonths||z.month()===d?ye.content||u(z.day()):"&#160;")+(ke?"</a>":"</span>")),z.add(1,"d"),te++}fe+=this._prepare(m.week,a).replace(/\{days\}/g,De).replace(/\{weekOfYear\}/g,Ee)}var J=this._prepare(m.month,a).match(/\{monthHeader(:[^\}]+)?\}/);J=J[0].length<=13?"MM yyyy":J[0].substring(13,J[0].length-1),J=g?this._generateMonthSelection(a,s,d,A,H,J,p,m):p.formatDate(J,p.newDate(s,d,p.minDay),{localNumbers:a.options.localNumbers});var K=this._prepare(m.weekHeader,a).replace(/\{days\}/g,this._generateDayHeaders(a,p,m));return this._prepare(m.month,a).replace(/\{monthHeader(:[^\}]+)?\}/g,J).replace(/\{weekHeader\}/g,K).replace(/\{weeks\}/g,fe)},_generateDayHeaders:function(n,a,s){var d=n.options.firstDay;d=typeof d>"u"||d===null?a.local.firstDay:d;for(var p="",m=0;m<a.daysInWeek();m++){var g=(m+d)%a.daysInWeek();p+=this._prepare(s.dayHeader,n).replace(/\{day\}/g,'<span class="'+this._curDoWClass+g+'" title="'+a.local.dayNames[g]+'">'+a.local.dayNamesMin[g]+"</span>")}return p},_generateMonthSelection:function(n,a,s,d,p,m,g){if(!n.options.changeMonth)return g.formatDate(m,g.newDate(a,s,1),{localNumbers:n.options.localNumbers});for(var j=g.local["monthNames"+(m.match(/mm/i)?"":"Short")],k=m.replace(/m+/i,"\\x2E").replace(/y+/i,"\\x2F"),_='<select class="'+this._monthYearClass+'" title="'+n.options.monthStatus+'">',T=g.monthsInYear(a)+g.minMonth,E=g.minMonth;E<T;E++)(!d||g.newDate(a,E,g.daysInMonth(a,E)-1+g.minDay).compareTo(d)!==-1)&&(!p||g.newDate(a,E,g.minDay).compareTo(p)!==1)&&(_+='<option value="'+E+"/"+a+'"'+(s===E?' selected="selected"':"")+">"+j[E-g.minMonth]+"</option>");_+="</select>",k=k.replace(/\\x2E/,_);var M=function(u){return n.options.localNumbers&&g.local.digits?g.local.digits(u):u},P=n.options.yearRange;if(P==="any")_='<select class="'+this._monthYearClass+" "+this._anyYearClass+'" title="'+n.options.yearStatus+'"><option value="'+a+'">'+M(a)+'</option></select><input class="'+this._monthYearClass+" "+this._curMonthClass+s+'" value="'+a+'">';else{P=P.split(":");var A=g.today().year(),H=P[0].match("c[+-].*")?a+parseInt(P[0].substring(1),10):(P[0].match("[+-].*")?A:0)+parseInt(P[0],10),Y=P[1].match("c[+-].*")?a+parseInt(P[1].substring(1),10):(P[1].match("[+-].*")?A:0)+parseInt(P[1],10);_='<select class="'+this._monthYearClass+'" title="'+n.options.yearStatus+'">',H=g.newDate(H+1,g.firstMonth,g.minDay).add(-1,"d"),Y=g.newDate(Y,g.firstMonth,g.minDay);var se=function(u,fe){(u!==0||g.hasYearZero)&&(_+='<option value="'+Math.min(s,g.monthsInYear(u)-1+g.minMonth)+"/"+u+'"'+(a===u?' selected="selected"':"")+">"+(fe||M(u))+"</option>")},z,te;if(H.toJD()<Y.toJD()){for(H=(d&&d.compareTo(H)===1?d:H).year(),Y=(p&&p.compareTo(Y)===-1?p:Y).year(),z=Math.floor((Y-H)/2),(!d||d.year()<H)&&se(H-z,n.options.earlierText),te=H;te<=Y;te++)se(te);(!p||p.year()>Y)&&se(Y+z,n.options.laterText)}else{for(H=(p&&p.compareTo(H)===-1?p:H).year(),Y=(d&&d.compareTo(Y)===1?d:Y).year(),z=Math.floor((H-Y)/2),(!p||p.year()>H)&&se(H+z,n.options.earlierText),te=H;te>=Y;te--)se(te);(!d||d.year()<Y)&&se(Y-z,n.options.laterText)}_+="</select>"}return k=k.replace(/\\x2F/,_),k},_prepare:function(n,a){var s=function(m,g){for(;;){var j=n.indexOf("{"+m+":start}");if(j===-1)return;var k=n.substring(j).indexOf("{"+m+":end}");k>-1&&(n=n.substring(0,j)+(g?n.substr(j+m.length+8,k-m.length-8):"")+n.substring(j+k+m.length+6))}};s("inline",a.inline),s("popup",!a.inline);for(var d=/\{l10n:([^\}]+)\}/,p=d.exec(n);p;)n=n.replace(p[0],a.options[p[1]]),p=d.exec(n);return n}});var c=r.calendarsPicker;r(function(){r(document).on("mousedown."+o,c._checkExternalClick).on("resize."+o,function(){c.hide(c.curInst)})})})(jQuery);(function(r){function o(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}o.prototype=new r.calendars.baseCalendar,r.extend(o.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var n=this._validate(c,this.minMonth,this.minDay,r.calendars.local.invalidYear);return c=n.year()+(n.year()<0?1:0),c%4===3||c%4===-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,r.calendars.local.invalidYear||r.calendars.regionalOptions[""].invalidYear),13},weekOfYear:function(c,n,a){var s=this.newDate(c,n,a);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(c,n){var a=this._validate(c,n,this.minDay,r.calendars.local.invalidMonth);return this.daysPerMonth[a.month()-1]+(a.month()===13&&this.leapYear(a.year())?1:0)},weekDay:function(c,n,a){return(this.dayOfWeek(c,n,a)||7)<6},toJD:function(c,n,a){var s=this._validate(c,n,a,r.calendars.local.invalidDate);return c=s.year(),c<0&&c++,s.day()+(s.month()-1)*30+(c-1)*365+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var n=Math.floor(c)+.5-this.jdEpoch,a=Math.floor((n-Math.floor((n+366)/1461))/365)+1;a<=0&&a--,n=Math.floor(c)+.5-this.newDate(a,1,1).toJD();var s=Math.floor(n/30)+1,d=n-(s-1)*30+1;return this.newDate(a,s,d)}}),r.calendars.calendars.ethiopian=o})(jQuery);(function(r){r.calendars.calendars.ethiopian.prototype.regionalOptions.am={name:"የኢትዮጵያ ዘመን አቆጣጠር",epochs:["BEE","EE"],monthNames:["መስከረም","ጥቅምት","ኅዳር","ታህሣሥ","ጥር","የካቲት","መጋቢት","ሚያዝያ","ግንቦት","ሰኔ","ሐምሌ","ነሐሴ","ጳጉሜ"],monthNamesShort:["መስከ","ጥቅም","ኅዳር","ታህሣ","ጥር","የካቲ","መጋቢ","ሚያዝ","ግንቦ","ሰኔ","ሐምሌ","ነሐሴ","ጳጉሜ"],dayNames:["እሑድ","ሰኞ","ማክሰኞ","ረቡዕ","ሓሙስ","ዓርብ","ቅዳሜ"],dayNamesShort:["እሑድ","ሰኞ","ማክሰ","ረቡዕ","ሓሙስ","ዓርብ","ቅዳሜ"],dayNamesMin:["እሑ","ሰኞ","ማክ","ረቡ","ሐሙ","ዓር","ቅዳ"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}})(jQuery);const ETHIOPIAN_UTC_OFFSET_HOURS=3,toEthiopianTimeInput=r=>{if(!(r instanceof Date)||isNaN(r.getTime()))return"00:00";const c=(r.getUTCHours()*60+r.getUTCMinutes()+ETHIOPIAN_UTC_OFFSET_HOURS*60+1440)%1440,n=Math.floor(c/60).toString().padStart(2,"0"),a=(c%60).toString().padStart(2,"0");return`${n}:${a}`},getCurrentEthiopianTimeInput=()=>toEthiopianTimeInput(new Date),normalizeDigits=r=>r.replace(/[٠-٩]/g,o=>String(o.charCodeAt(0)-1632)).replace(/[۰-۹]/g,o=>String(o.charCodeAt(0)-1776)),toEthiopianDateInput=r=>{if(!(r instanceof Date)||Number.isNaN(r.getTime())||!jQuery$1||!jQuery$1.calendars)return"";try{const o=jQuery$1.calendars.instance("ethiopian","am"),c=o.fromJSDate(new Date(r.getTime()+ETHIOPIAN_UTC_OFFSET_HOURS*60*60*1e3));return o.formatDate("yyyy-mm-dd",c,{localNumbers:!1})}catch{return""}},EthiopianDatePickerModal=({value:r,onChange:o})=>{const c=reactExports.useRef(null),n=reactExports.useRef(null),a=reactExports.useRef(!1),s=reactExports.useRef(""),d=reactExports.useRef(o),p=reactExports.useRef(r),[m,g]=reactExports.useState(""),[j,k]=reactExports.useState(getCurrentEthiopianTimeInput),_=reactExports.useRef(j);reactExports.useEffect(()=>{d.current=o},[o]),reactExports.useEffect(()=>{_.current=j},[j]),reactExports.useEffect(()=>{if(!(r instanceof Date)||Number.isNaN(r.getTime()))return;const E=toEthiopianDateInput(r),M=toEthiopianTimeInput(r);if(g(E),k(M),!(!n.current||!jQuery$1||!jQuery$1.calendars||!E||s.current===E))try{const P=jQuery$1.calendars.instance("ethiopian","am"),[A,H,Y]=E.split("-")?.map(Number);if(Number.isFinite(A)&&Number.isFinite(H)&&Number.isFinite(Y)){const se=P.newDate(A,H,Y);a.current=!0;try{n.current.calendarsPicker("setDate",se),s.current=E}finally{a.current=!1}}}catch{}},[r]),reactExports.useEffect(()=>{if(!jQuery$1||!jQuery$1.calendars||!c.current)return;const E=c.current,M=jQuery$1.calendars.instance("ethiopian","am"),P=jQuery$1(E);n.current=P,P.calendarsPicker({calendar:M,dateFormat:"yyyy-mm-dd",onSelect:H=>{if(a.current||!(H!=null&&H.length))return;const Y=H[0].toString();s.current=Y,g(Y),d.current(`${Y} ${_.current}`)}});const A=p.current;if(A instanceof Date&&!Number.isNaN(A.getTime()))try{const H=toEthiopianDateInput(A);if(H){const[Y,se,z]=H.split("-")?.map(Number);if(Number.isFinite(Y)&&Number.isFinite(se)&&Number.isFinite(z)){a.current=!0;try{P.calendarsPicker("setDate",M.newDate(Y,se,z)),s.current=H}finally{a.current=!1}}}}catch{}return()=>{try{P.calendarsPicker("destroy")}catch{}n.current=null,s.current=""}},[]);const T=E=>{const M=E.target.value;k(M),m&&o(`${m} ${M}`)};return jsxRuntimeExports.jsxs("div",{className:"ethiopian-picker-surface w-full space-y-3",children:[jsxRuntimeExports.jsx("div",{ref:c,className:"ethiopian-picker-calendar w-full overflow-hidden rounded-md border border-gray-200 dark:border-gray-700"}),jsxRuntimeExports.jsxs("div",{className:"space-y-1",children:[jsxRuntimeExports.jsx("p",{className:"text-xs font-medium text-gray-600 dark:text-gray-300",children:"Time"}),jsxRuntimeExports.jsx("input",{type:"time",className:"h-10 w-full rounded-md border border-gray-300 bg-white px-3 text-sm text-gray-800 shadow-sm transition-colors focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-100",value:j,onChange:T})]})]})};function convertEthiopianToGregorian(r){if(!r||typeof r!="string")return new Date(NaN);const o=normalizeDigits(r.trim()),[c,n="00:00"]=o.split(" ");if(!c||!c.match(/^\d{4}-\d{2}-\d{2}$/))return new Date(NaN);const a=jQuery$1.calendars.instance("ethiopian","am"),[s,d,p]=c.split("-")?.map(Number);if(isNaN(s)||isNaN(d)||isNaN(p))return new Date(NaN);try{const g=a.newDate(s,d,p).toJSDate(),[j,k]=n.split(":")?.map(Number);return isNaN(j)||isNaN(k)||j<0||j>23||k<0||k>59?new Date(NaN):new Date(Date.UTC(g.getFullYear(),g.getMonth(),g.getDate(),j-ETHIOPIAN_UTC_OFFSET_HOURS,k,0,0))}catch{return new Date(NaN)}}function ActivityFilters({searchQuery:r,onSearchChange:o,moduleFilter:c,onModuleChange:n,actionFilter:a,onActionChange:s,statusFilter:d,onStatusChange:p,dateRange:m,onDateRangeChange:g,modules:j,actions:k,onClearFilters:_}){const{i18n:T,t:E}=useTranslation(),[M,P]=reactExports.useState(!1),[A,H]=reactExports.useState(!1),[Y,se]=reactExports.useState(!1),[z,te]=reactExports.useState(""),[u,fe]=reactExports.useState(""),ae=T.language.startsWith("am");reactExports.useEffect(()=>{m.from?te(format(m.from,"yyyy-MM-dd")):te(""),m.to?fe(format(m.to,"yyyy-MM-dd")):fe("")},[m.from,m.to]);const Ee=r||c!=="all"||a!=="all"||d!=="all"||m.from||m.to,De=reactExports.useMemo(()=>m.from?m.to?`${format(m.from,"LLL dd, y")} - ${format(m.to,"LLL dd, y")}`:format(m.from,"LLL dd, y"):E("auditLogShared.filters.dateRange"),[m.from,m.to,E]),Me=U=>{const ye=convertEthiopianToGregorian(U);ye.setHours(0,0,0,0),te(U.split(" ")[0]||U),g({from:ye,to:m.to}),H(!1)},re=U=>{const ye=convertEthiopianToGregorian(U);ye.setHours(23,59,59,999),fe(U.split(" ")[0]||U),g({from:m.from,to:ye}),se(!1)};return jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:"Filters"}),Ee&&jsxRuntimeExports.jsxs(Button$1,{variant:"ghost",size:"sm",onClick:_,className:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",children:[jsxRuntimeExports.jsx(X,{className:"h-4 w-4 mr-1"}),E("auditLogShared.filters.clearFilters")]})]}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Search,{className:"absolute left-3 top-3 h-4 w-4 text-gray-400 dark:text-gray-500"}),jsxRuntimeExports.jsx(Input,{placeholder:E("auditLogShared.filters.searchPlaceholder"),value:r,onChange:U=>o(U.target.value),className:"pl-10"})]}),jsxRuntimeExports.jsxs(Select,{value:c,onValueChange:n,children:[jsxRuntimeExports.jsx(SelectTrigger,{children:jsxRuntimeExports.jsx(SelectValue,{placeholder:E("auditLogShared.filters.module")})}),jsxRuntimeExports.jsxs(SelectContent,{children:[jsxRuntimeExports.jsx(SelectItem,{value:"all",children:E("auditLogShared.filters.allModules")}),j?.map(U=>jsxRuntimeExports.jsx(SelectItem,{value:U,children:U},U))]})]}),jsxRuntimeExports.jsxs(Select,{value:a,onValueChange:s,children:[jsxRuntimeExports.jsx(SelectTrigger,{children:jsxRuntimeExports.jsx(SelectValue,{placeholder:E("auditLogShared.filters.action")})}),jsxRuntimeExports.jsxs(SelectContent,{children:[jsxRuntimeExports.jsx(SelectItem,{value:"all",children:E("auditLogShared.filters.allActions")}),k?.map(U=>jsxRuntimeExports.jsx(SelectItem,{value:U,children:U},U))]})]}),jsxRuntimeExports.jsxs(Select,{value:d,onValueChange:p,children:[jsxRuntimeExports.jsx(SelectTrigger,{children:jsxRuntimeExports.jsx(SelectValue,{placeholder:E("auditLogShared.filters.status")})}),jsxRuntimeExports.jsxs(SelectContent,{children:[jsxRuntimeExports.jsx(SelectItem,{value:"all",children:E("auditLogShared.filters.allStatuses")}),jsxRuntimeExports.jsx(SelectItem,{value:"success",children:E("auditLogShared.status.success")}),jsxRuntimeExports.jsx(SelectItem,{value:"failure",children:E("auditLogShared.status.failure")}),jsxRuntimeExports.jsx(SelectItem,{value:"warning",children:E("auditLogShared.status.warning")}),jsxRuntimeExports.jsx(SelectItem,{value:"pending",children:E("auditLogShared.status.pending")})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-4",children:[ae?jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Input,{readOnly:!0,value:z,onClick:()=>H(U=>!U),className:"w-[150px] cursor-pointer",placeholder:E("auditLogShared.filters.fromDate")}),A&&jsxRuntimeExports.jsx("div",{className:"absolute z-50 mt-1 bg-white dark:bg-gray-800 shadow-lg rounded-md p-2",children:jsxRuntimeExports.jsx(EthiopianDatePickerModal,{onChange:Me})})]}),jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Input,{readOnly:!0,value:u,onClick:()=>se(U=>!U),className:"w-[150px] cursor-pointer",placeholder:E("auditLogShared.filters.toDate")}),Y&&jsxRuntimeExports.jsx("div",{className:"absolute z-50 mt-1 bg-white dark:bg-gray-800 shadow-lg rounded-md p-2",children:jsxRuntimeExports.jsx(EthiopianDatePickerModal,{onChange:re})})]})]}):jsxRuntimeExports.jsxs(Popover,{open:M,onOpenChange:P,children:[jsxRuntimeExports.jsx(PopoverTrigger,{asChild:!0,children:jsxRuntimeExports.jsxs(Button$1,{variant:"outline",className:"w-full md:w-auto justify-start text-left font-normal",children:[jsxRuntimeExports.jsx(Calendar$1,{className:"mr-2 h-4 w-4"}),jsxRuntimeExports.jsx("span",{children:De})]})}),jsxRuntimeExports.jsx(PopoverContent,{className:"w-auto p-0",align:"start",children:jsxRuntimeExports.jsx(Calendar,{initialFocus:!0,mode:"range",defaultMonth:m.from,selected:{from:m.from,to:m.to},onSelect:U=>{g({from:U!=null&&U.from?new Date(new Date(U.from).setHours(0,0,0,0)):void 0,to:U!=null&&U.to?new Date(new Date(U.to).setHours(23,59,59,999)):void 0})},numberOfMonths:2})})]}),jsxRuntimeExports.jsx(Button$1,{variant:"outline",onClick:()=>{const U=new Date,ye=new Date(U);ye.setDate(ye.getDate()-7),g({from:ye,to:U})},children:E("auditLogShared.filters.last7Days")}),jsxRuntimeExports.jsx(Button$1,{variant:"outline",onClick:()=>{const U=new Date,ye=new Date(U);ye.setDate(ye.getDate()-30),g({from:ye,to:U})},children:E("auditLogShared.filters.last30Days")})]})]})}function ActivityStats({totalActivities:r,successRate:o,avgDailyActivities:c,uniqueUsers:n,topActions:a}){const{t:s}=useTranslation(),d=[{label:s("auditLogShared.stats.totalActivities"),value:r.toLocaleString(),icon:Activity,color:"text-primary dark:text-primary-300",bgColor:"bg-primary/10 dark:bg-primary/20"},{label:s("auditLogShared.stats.successRate"),value:`${o}%`,icon:CircleCheckBig,color:"text-primary-600 dark:text-primary-400",bgColor:"bg-primary-50 dark:bg-primary-900/30"},{label:s("auditLogShared.stats.dailyAverage"),value:c.toLocaleString(),icon:TrendingUp,color:"text-purple-600 dark:text-purple-400",bgColor:"bg-purple-50 dark:bg-purple-900/30"},{label:s("auditLogShared.stats.uniqueUsers"),value:n.toLocaleString(),icon:Clock,color:"text-orange-600 dark:text-orange-400",bgColor:"bg-orange-50 dark:bg-orange-900/30"}];return jsxRuntimeExports.jsxs("div",{className:"space-y-6",children:[jsxRuntimeExports.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:d?.map((p,m)=>jsxRuntimeExports.jsx(Card,{className:"border-gray-200 dark:border-gray-700 dark:bg-gray-800",children:jsxRuntimeExports.jsx(CardContent,{className:"p-6",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:p.label}),jsxRuntimeExports.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100 mt-1",children:p.value})]}),jsxRuntimeExports.jsx("div",{className:`p-3 rounded-full ${p.bgColor}`,children:jsxRuntimeExports.jsx(p.icon,{className:`h-6 w-6 ${p.color}`})})]})})},m))}),jsxRuntimeExports.jsx(Card,{className:"border-gray-200 dark:border-gray-700 dark:bg-gray-800",children:jsxRuntimeExports.jsxs(CardContent,{className:"p-6",children:[jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-4",children:s("auditLogShared.stats.topActions")}),jsxRuntimeExports.jsx("div",{className:"space-y-3",children:a?.map((p,m)=>jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"w-8 h-8 rounded-md bg-gray-100 dark:bg-gray-700 flex items-center justify-center",children:jsxRuntimeExports.jsx("span",{className:"text-sm font-medium text-gray-600 dark:text-gray-300",children:p.action.charAt(0)})}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:p.action})]}),jsxRuntimeExports.jsxs("span",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:[p.count," ",s("auditLogShared.stats.times")]})]},m))})]})})]})}function ExportModal({open:r,onOpenChange:o,onExport:c}){const{t:n}=useTranslation(),[a,s]=reactExports.useState({format:"csv",includeDetails:!0,dateRange:!0,fileName:`activity-logs-${new Date().toISOString().split("T")[0]}`}),d=()=>{c(a),o(!1)};return jsxRuntimeExports.jsx(Dialog,{open:r,onOpenChange:o,children:jsxRuntimeExports.jsxs(DialogContent,{className:"sm:max-w-[500px]",children:[jsxRuntimeExports.jsxs(DialogHeader,{children:[jsxRuntimeExports.jsx(DialogTitle,{children:n("auditLogShared.export.title")}),jsxRuntimeExports.jsx(DialogDescription,{children:n("auditLogShared.export.description")})]}),jsxRuntimeExports.jsxs("div",{className:"space-y-6 py-4",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx(Label,{children:n("auditLogShared.export.fileName")}),jsxRuntimeExports.jsx(Input,{value:a.fileName,onChange:p=>s({...a,fileName:p.target.value}),placeholder:n("auditLogShared.export.fileNamePlaceholder")})]}),jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsx(Label,{children:n("auditLogShared.export.format")}),jsxRuntimeExports.jsxs(RadioGroup,{value:a.format,onValueChange:p=>s({...a,format:p}),className:"grid grid-cols-3 gap-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(RadioGroupItem,{value:"csv",id:"csv",className:"peer sr-only"}),jsxRuntimeExports.jsxs(Label,{htmlFor:"csv",className:"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-white p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary cursor-pointer",children:[jsxRuntimeExports.jsx(FileText,{className:"mb-3 h-6 w-6"}),"CSV"]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(RadioGroupItem,{value:"json",id:"json",className:"peer sr-only"}),jsxRuntimeExports.jsxs(Label,{htmlFor:"json",className:"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-white p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary cursor-pointer",children:[jsxRuntimeExports.jsx(FileText,{className:"mb-3 h-6 w-6"}),"JSON"]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(RadioGroupItem,{value:"xlsx",id:"xlsx",className:"peer sr-only"}),jsxRuntimeExports.jsxs(Label,{htmlFor:"xlsx",className:"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-white p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary cursor-pointer",children:[jsxRuntimeExports.jsx(FileSpreadsheet,{className:"mb-3 h-6 w-6"}),"Excel"]})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntimeExports.jsx(Checkbox,{id:"includeDetails",checked:a.includeDetails,onCheckedChange:p=>s({...a,includeDetails:p})}),jsxRuntimeExports.jsx(Label,{htmlFor:"includeDetails",className:"cursor-pointer",children:n("auditLogShared.export.includeDetails")})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntimeExports.jsx(Checkbox,{id:"dateRange",checked:a.dateRange,onCheckedChange:p=>s({...a,dateRange:p})}),jsxRuntimeExports.jsx(Label,{htmlFor:"dateRange",className:"cursor-pointer",children:n("auditLogShared.export.includeDateRange")})]})]})]}),jsxRuntimeExports.jsxs(DialogFooter,{children:[jsxRuntimeExports.jsx(Button$1,{variant:"outline",onClick:()=>o(!1),children:n("auditLogShared.actions.cancel")}),jsxRuntimeExports.jsxs(Button$1,{onClick:d,children:[jsxRuntimeExports.jsx(Download,{className:"mr-2 h-4 w-4"}),n("auditLogShared.actions.export")]})]})]})})}function isAxiosError(r){return axios.isAxiosError(r)}function createHttpClient(r){const o=axios.create({baseURL:r.baseURL});o.interceptors.request.use(a=>{const s=api.get(r.cookieKeys.access);return s&&(a.headers=a.headers??{},a.headers.Authorization=`Bearer ${s}`),a});let c=null;const n=a=>a?(r.skipRefreshPaths??[])?.some(d=>a.includes(d)):!1;return o.interceptors.response.use(a=>a,async a=>{var m,g,j;if(!isAxiosError(a))return Promise.reject(a);const s=(m=a.response)==null?void 0:m.status,d=a.config;if(!d||n(d.url)||s!==401||d._retry)return Promise.reject(a);d._retry=!0;const p=api.get(r.cookieKeys.refresh);if(!p)return(g=r.onAuthFailure)==null||g.call(r,a),Promise.reject(a);c||(c=(async()=>{const k=await r.refreshFn(p);return api.set(r.cookieKeys.access,k.accessToken),k.refreshToken&&api.set(r.cookieKeys.refresh,k.refreshToken),k.accessToken})().finally(()=>{c=null}));try{const k=await c;return d.headers=d.headers??{},d.headers.Authorization=`Bearer ${k}`,o(d)}catch(k){return api.remove(r.cookieKeys.access),api.remove(r.cookieKeys.refresh),r.cookieKeys.user&&api.remove(r.cookieKeys.user),(j=r.onAuthFailure)==null||j.call(r,k),Promise.reject(k)}}),o}async function refreshFn(r){const o=await getRefreshToken(r);return{accessToken:o.data.token,refreshToken:o.data.refreshToken}}const auditHttp=createHttpClient({baseURL:AUDITLOG_API_URL,cookieKeys:{access:"auth-token",refresh:"refresh-token",user:"auth-user"},refreshFn,skipRefreshPaths:["/auth/login","/auth/refresh","/auth/me"],onAuthFailure:()=>{toast.error("Session expired",{description:"Please log in again.",duration:4e3}),setTimeout(()=>{window.location.href="/"},1200)}});function toParams(r){if(!r)return;const o=new URLSearchParams;return Object.entries(r).forEach(([c,n])=>{n!=null&&(typeof n=="string"&&n.trim()===""||o.set(c,String(n)))}),o}async function listAuditLogCommandsByModule(r,o){const{data:c}=await auditHttp.get(`/audit-log-commands/all/${encodeURIComponent(r)}`,{params:toParams(o)});return c}function safeString(r){if(r==null)return"";if(typeof r=="string")return r;try{return JSON.stringify(r)}catch{return String(r)}}function toTitleCase(r){return r.split(" ").filter(Boolean)?.map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")}function humanizeKey(r){if(!r)return"";const o=r.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[:_.-]+/g," ").trim().toLowerCase();return toTitleCase(o)}function asName(r){if(!r)return"-";if(typeof r=="string")return r;const o=r;return typeof(o==null?void 0:o.en)=="string"&&o.en.trim()?o.en:typeof(o==null?void 0:o.am)=="string"&&o.am.trim()?o.am:"-"}function unique(r){return Array.from(new Set(r.filter(Boolean)))}function mapRoleLabel(r){return r?humanizeKey(r):"Role"}function mapPermissionLabel(r){const o=r,c=typeof(o==null?void 0:o.key)=="string"?o.key:"",n=asName(o==null?void 0:o.name);return n!=="-"?n:c?humanizeKey(c):"Permission"}function buildUserSummary(r){const o=r,c=Array.isArray(o==null?void 0:o.employee)?o.employee:[];return{name:asName(o==null?void 0:o.name),email:typeof(o==null?void 0:o.email)=="string"?o.email:"-",phone:typeof(o==null?void 0:o.phoneNumber)=="string"?o.phoneNumber:"-",status:humanizeKey(typeof(o==null?void 0:o.status)=="string"?o.status:""),userType:humanizeKey(typeof(o==null?void 0:o.userType)=="string"?o.userType:""),roles:unique((Array.isArray(o==null?void 0:o.roles)?o.roles:[])?.map(n=>{const a=n;return mapRoleLabel(typeof(a==null?void 0:a.key)=="string"?a.key:"")})),employeeInfo:c?.map((n,a)=>{var p,m;const s=n,d=Array.isArray(s==null?void 0:s.positions)?s.positions:[];return{unit:asName((p=s==null?void 0:s.unit)==null?void 0:p.name)!=="-"?asName((m=s==null?void 0:s.unit)==null?void 0:m.name):`Unit ${a+1}`,positions:d?.map(g=>{const j=g;return{name:asName(j==null?void 0:j.name),rank:typeof(j==null?void 0:j.rank)=="number"?j.rank:"-",permissions:unique((Array.isArray(j==null?void 0:j.permissions)?j.permissions:[])?.map(k=>mapPermissionLabel(k)))}})}}),registrationComplete:!!(o!=null&&o.hasFinishedRegistration),passwordSet:!!(o!=null&&o.hasSetPassword)}}function summarizeValue(r){return r==null?instance.t("common.None"):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?String(r):Array.isArray(r)?instance.t("auditLogShared.modal.itemsCount",{count:r.length}):instance.t("auditLogShared.modal.updatedDetails")}function getValueType(r){return Array.isArray(r)?"array":r===null?"null":typeof r}function collectDiffPaths(r,o,c="",n=[],a=0){if(n.length>=40||a>8)return n;const s=getValueType(r),d=getValueType(o);if(s!==d)return n.push(c||"(root)"),n;if(s==="string"||s==="number"||s==="boolean"||s==="undefined"||s==="null")return r!==o&&n.push(c||"(root)"),n;if(s==="array"){const j=Array.isArray(r)?r:[],k=Array.isArray(o)?o:[];j.length!==k.length&&n.push(`${c||"(root)"}.length`);const _=Math.min(Math.max(j.length,k.length),20);for(let T=0;T<_&&(collectDiffPaths(j[T],k[T],`${c}[${T}]`,n,a+1),!(n.length>=40));T++);return n}const p=r&&typeof r=="object"?r:{},m=o&&typeof o=="object"?o:{},g=Array.from(new Set([...Object.keys(p),...Object.keys(m)]));for(const j of g){const k=c?`${c}.${j}`:j;if(collectDiffPaths(p[j],m[j],k,n,a+1),n.length>=40)break}return n}function pickFileInfoFromChanges(r){if(!(r!=null&&r.length))return;const o=r.find(c=>(c==null?void 0:c.field)==="fileInfo");return(o==null?void 0:o.to)||(o==null?void 0:o.from)}function pickResourceNameFromChanges(r){const o=pickFileInfoFromChanges(r),c=(o==null?void 0:o.originalname)||(o==null?void 0:o.fileName)||(o==null?void 0:o.contentType);return c?String(c):void 0}function pickResourceName(r,o){const c=pickResourceNameFromChanges(o);if(c)return c;const n=r,a=n==null?void 0:n.payload;if(a&&typeof a=="object"){const s=a;if(typeof(s==null?void 0:s.entity)=="string"&&s.entity.trim())return s.entity;if(typeof(s==null?void 0:s.id)=="string"&&s.id.trim())return s.id}}function extractActor(r){var a,s;if(!r||typeof r!="object")return null;const o=r,c=typeof(o==null?void 0:o.email)=="string"?o.email:void 0,n=typeof(o==null?void 0:o.name)=="string"?o.name:typeof((a=o==null?void 0:o.name)==null?void 0:a.en)=="string"?o.name.en:typeof((s=o==null?void 0:o.name)==null?void 0:s.am)=="string"?o.name.am:typeof(o==null?void 0:o.username)=="string"?o.username:void 0;return!n&&!c?null:{name:n||(c?c.split("@")[0]:"System"),email:c||"system@audit"}}function pickPerformedBy(r,o){var a;if(o!=null&&o.length){const s=o.find(p=>(p==null?void 0:p.field)==="userInfo"),d=extractActor((s==null?void 0:s.to)||(s==null?void 0:s.from));if(d)return d}const c=r,n=extractActor((a=c==null?void 0:c.auditLog)==null?void 0:a.user);return n||{name:"System",email:"system@audit"}}function mapQueryMethodToStatus(r){return"success"}function mapQueryMethodToSeverity(r){switch((r||"").toUpperCase()){case"DELETE":return"high";case"INSERT":case"INSERT_CHILD":return"medium";case"UPDATE":return"low";default:return"low"}}function buildDescription(r,o){const c=r||"entity",n=(o||"ACTION").toUpperCase();return n==="UPDATE"?`Updated ${c}`:n==="INSERT"?`Created ${c}`:n==="INSERT_CHILD"?`Created related ${c}`:n==="DELETE"?`Deleted ${c}`:`${n} on ${c}`}function buildDetails(r,o,c,n){if(!(r!=null&&r.length)){if(o&&typeof o=="object"){const d=o,p=typeof(d==null?void 0:d.entity)=="string"?d.entity:n,m=typeof(d==null?void 0:d.id)=="string"?d.id:void 0;if(p||m)return`${(c||"ACTION").toUpperCase()} ${p||"entity"}${m?` (id: ${m})`:""}`}return}const a=r.slice(0,8)?.map(d=>{var j,k;const p=(d==null?void 0:d.field)||"field";if(p==="userInfo"){const _=d==null?void 0:d.from,T=d==null?void 0:d.to,E=_!=null&&_.email?String(_.email):"-",M=T!=null&&T.email?String(T.email):"-",P=asName(((j=_==null?void 0:_.name)==null?void 0:j.en)??(_==null?void 0:_.name)),A=asName(((k=T==null?void 0:T.name)==null?void 0:k.en)??(T==null?void 0:T.name));return`userInfo: ${P} (${E}) -> ${A} (${M})`}const m=(d==null?void 0:d.from)===null?"null":safeString(d==null?void 0:d.from),g=(d==null?void 0:d.to)===null?"null":safeString(d==null?void 0:d.to);return`${p}: ${m} -> ${g}`}),s=r.length>8?`
... +${r.length-8} more`:"";return a.join(`
`)+s}function AuditLogPageShared({moduleKey:r,title:o="Activity Log",subtitle:c="Monitor and track audit events across the platform",initialPage:n=1,limit:a=200}){var lt;const{t:s}=useTranslation(),[d,p]=reactExports.useState(""),[m,g]=reactExports.useState("all"),[j,k]=reactExports.useState("all"),[_,T]=reactExports.useState("all"),[E,M]=reactExports.useState("all"),[P,A]=reactExports.useState({}),[H,Y]=reactExports.useState("card"),[se,z]=reactExports.useState(!1),[te,u]=reactExports.useState(!1),[fe,ae]=reactExports.useState(null),[Ee,De]=reactExports.useState(n),[Me,re]=reactExports.useState(0),[U,ye]=reactExports.useState([]),[ke,J]=reactExports.useState([]),K=reactExports.useCallback(async()=>{if(!r){toast.error(s("auditLogShared.messages.missingModuleKey"));return}u(!0);try{const O=await listAuditLogCommandsByModule(r,{take:Ee*a,skip:(Ee-1)*a}),pe=((O==null?void 0:O.items)||[])?.map(ee=>{const xe=ee!=null&&ee.entityName?String(ee.entityName):r,Fe=ee!=null&&ee.queryMethod?String(ee.queryMethod):"UPDATE",Ve=Array.isArray(ee==null?void 0:ee.changes)?ee.changes:[];return{id:ee!=null&&ee.id?String(ee.id):crypto.randomUUID(),action:Fe.toUpperCase(),description:buildDescription(xe,Fe),performedBy:pickPerformedBy(ee,Ve),timestamp:ee!=null&&ee.createdAt?String(ee.createdAt):new Date().toISOString(),module:xe,resourceName:pickResourceName(ee,Ve),status:mapQueryMethodToStatus(Fe),details:buildDetails(Ve,ee==null?void 0:ee.payload,Fe,xe),severity:mapQueryMethodToSeverity(Fe),raw:ee}});pe.sort((ee,xe)=>new Date(xe.timestamp).getTime()-new Date(ee.timestamp).getTime()),ye(pe),re(typeof(O==null?void 0:O.count)=="number"?O.count:pe.length),toast.success(s("auditLogShared.messages.logsLoaded"))}catch(O){const me=O;toast.error(s("auditLogShared.messages.logsLoadFailed"),{description:(me==null?void 0:me.message)||s("auditLogShared.messages.tryAgain"),duration:5e3}),ye([]),re(0)}finally{u(!1)}},[r,Ee,a,s]);reactExports.useEffect(()=>{De(n)},[n,r]),reactExports.useEffect(()=>{K()},[K]);const Te=reactExports.useMemo(()=>Array.from(new Set(U?.map(O=>O.module))).sort(),[U]),rt=reactExports.useMemo(()=>Array.from(new Set(U?.map(O=>O.action))).sort(),[U]),nt=reactExports.useMemo(()=>{const O=ke.length,me=ke.filter(Oe=>Oe.status==="success").length,pe=O>0?Math.round(me/O*100):0,ee=new Set(ke?.map(Oe=>Oe.performedBy.email)).size,xe=Math.round(O/30),Fe={};ke.forEach(Oe=>{Fe[Oe.action]=(Fe[Oe.action]||0)+1});const Ve=Object.entries(Fe)?.map(([Oe,je])=>({action:Oe,count:je})).sort((Oe,je)=>je.count-Oe.count).slice(0,5);return{totalActivities:O,successRate:pe,avgDailyActivities:xe,uniqueUsers:ee,topActions:Ve}},[ke]);reactExports.useEffect(()=>{let O=[...U];if(d){const me=d.toLowerCase();O=O.filter(pe=>pe.description.toLowerCase().includes(me)||pe.performedBy.name.toLowerCase().includes(me)||pe.performedBy.email.toLowerCase().includes(me)||pe.resourceName&&pe.resourceName.toLowerCase().includes(me)||pe.details&&pe.details.toLowerCase().includes(me))}m!=="all"&&(O=O.filter(me=>me.module===m)),j!=="all"&&(O=O.filter(me=>me.action===j)),_!=="all"&&(O=O.filter(me=>me.status===_)),E!=="all"&&(O=O.filter(me=>me.severity===E)),(P.from||P.to)&&(O=O.filter(me=>{const pe=new Date(me.timestamp),ee=P.from?new Date(new Date(P.from).setHours(0,0,0,0)):null,xe=P.to?new Date(new Date(P.to).setHours(23,59,59,999)):null;return ee&&xe?pe>=ee&&pe<=xe:ee?pe>=ee:xe?pe<=xe:!0})),O.sort((me,pe)=>new Date(pe.timestamp).getTime()-new Date(me.timestamp).getTime()),J(O)},[U,d,m,j,_,E,P]);const Dt=()=>{p(""),g("all"),k("all"),T("all"),M("all"),A({})},kt=O=>{toast.success(s("auditLogShared.messages.exportingLogs",{count:ke.length,format:O.format.toUpperCase()}));const me={logs:ke,exportOptions:O,exportedAt:new Date().toISOString()},pe=new Blob([JSON.stringify(me,null,2)],{type:`application/${O.format==="json"?"json":"octet-stream"}`}),ee=URL.createObjectURL(pe),xe=document.createElement("a");xe.href=ee,xe.download=`${O.fileName}.${O.format}`,document.body.appendChild(xe),xe.click(),document.body.removeChild(xe),URL.revokeObjectURL(ee)},It=O=>{switch(O){case"critical":return"bg-red-100 text-red-800 border-red-300";case"high":return"bg-orange-100 text-orange-800 border-orange-300";case"medium":return"bg-yellow-100 text-yellow-800 border-yellow-300";case"low":return"bg-primary-100 text-primary-800 border-primary-300";default:return"bg-gray-100 text-gray-800 border-gray-300"}},Vt=O=>{switch(O){case"success":return"bg-primary-100 text-primary-800";case"failure":return"bg-red-100 text-red-800";case"warning":return"bg-yellow-100 text-yellow-800";case"pending":return"bg-blue-100 text-blue-800";default:return"bg-gray-100 text-gray-800"}},At=r==="record"||r==="smartoffice",ve=(fe==null?void 0:fe.raw)??null,wt=Array.isArray(ve==null?void 0:ve.changes)?ve.changes:[],Et=ve!=null&&ve.createdAt?new Date(String(ve.createdAt)):null,Ne=ve!=null&&ve.payload&&typeof ve.payload=="object"?ve.payload:null,Ue=(lt=ve==null?void 0:ve.auditLog)!=null&&lt.user&&typeof ve.auditLog.user=="object"?ve.auditLog.user:null,ze=Math.max(1,Math.ceil(Me/a));return jsxRuntimeExports.jsx("div",{className:"bg-gray-50 dark:bg-gray-900 p-4 md:p-6 h-full",children:jsxRuntimeExports.jsxs("div",{className:"max-w-7xl mx-auto space-y-6",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-gray-900 dark:text-white",children:o}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 mt-1",children:c})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsxs(Button$1,{variant:"outline",onClick:K,disabled:te,className:"flex items-center gap-2 dark:border-gray-600 dark:text-gray-200 dark:hover:bg-gray-800",children:[jsxRuntimeExports.jsx(RefreshCw,{className:`h-4 w-4 ${te?"animate-spin":""}`}),s("auditLogShared.actions.refresh")]}),jsxRuntimeExports.jsxs(Button$1,{onClick:()=>z(!0),className:"flex items-center gap-2",disabled:ke.length===0,children:[jsxRuntimeExports.jsx(Download,{className:"h-4 w-4"}),s("auditLogShared.actions.export")]})]})]}),jsxRuntimeExports.jsx(ActivityStats,{...nt}),jsxRuntimeExports.jsxs(Card,{className:"border-gray-200 dark:border-gray-700 shadow-sm dark:bg-gray-800",children:[jsxRuntimeExports.jsx(CardHeader,{className:"pb-4",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(CardTitle,{className:"text-lg font-semibold dark:text-white",children:s("auditLogShared.labels.activityLogs")}),jsxRuntimeExports.jsxs(CardDescription,{className:"dark:text-gray-400",children:[s("auditLogShared.labels.activitiesFound",{count:ke.length}),P.from&&jsxRuntimeExports.jsxs("span",{className:"ml-2",children:["• ",format(P.from,"MMM d, yyyy"),P.to&&` - ${format(P.to,"MMM d, yyyy")}`]})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsxs(Button$1,{variant:H==="card"?"default":"outline",size:"sm",onClick:()=>Y("card"),className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Eye,{className:"h-4 w-4"}),s("auditLogShared.actions.cardView")]}),jsxRuntimeExports.jsxs(Button$1,{variant:H==="table"?"default":"outline",size:"sm",onClick:()=>Y("table"),className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(EyeOff,{className:"h-4 w-4"}),s("auditLogShared.actions.tableView")]})]})]})}),jsxRuntimeExports.jsxs(CardContent,{children:[jsxRuntimeExports.jsx(ActivityFilters,{searchQuery:d,onSearchChange:p,moduleFilter:m,onModuleChange:g,actionFilter:j,onActionChange:k,statusFilter:_,onStatusChange:T,dateRange:P,onDateRangeChange:A,modules:Te,actions:rt,onClearFilters:Dt}),te?jsxRuntimeExports.jsx("div",{className:"flex items-center justify-center py-12",children:jsxRuntimeExports.jsxs("div",{className:"text-center",children:[jsxRuntimeExports.jsx(RefreshCw,{className:"h-8 w-8 animate-spin mx-auto text-gray-400"}),jsxRuntimeExports.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400",children:s("auditLogShared.messages.loadingActivities")})]})}):ke.length===0?jsxRuntimeExports.jsxs("div",{className:"text-center py-12 border-2 border-dashed border-gray-200 dark:border-gray-700 rounded-lg",children:[jsxRuntimeExports.jsx("div",{className:"mx-auto w-12 h-12 bg-gray-100 dark:bg-gray-700 rounded-full flex items-center justify-center mb-4",children:jsxRuntimeExports.jsx(Eye,{className:"h-6 w-6 text-gray-400 dark:text-gray-500"})}),jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:s("auditLogShared.messages.noActivitiesFound")}),jsxRuntimeExports.jsx("p",{className:"text-gray-600 dark:text-gray-400 max-w-md mx-auto",children:s("auditLogShared.messages.adjustFilters")}),jsxRuntimeExports.jsx(Button$1,{variant:"outline",onClick:Dt,className:"mt-4 dark:border-gray-600 dark:text-gray-200",children:s("auditLogShared.filters.clearFilters")})]}):H==="card"?jsxRuntimeExports.jsx("div",{className:"space-y-4 mt-6",children:ke?.map(O=>jsxRuntimeExports.jsx(ActivityCard,{activity:O},O.id))}):jsxRuntimeExports.jsx("div",{className:"mt-6 rounded-lg border border-gray-200 dark:border-gray-700 overflow-hidden",children:jsxRuntimeExports.jsx("div",{className:"overflow-x-auto",children:jsxRuntimeExports.jsxs(Table$1,{children:[jsxRuntimeExports.jsx(TableHeader,{className:"bg-gray-50 dark:bg-gray-700",children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableHead,{className:"w-[180px] dark:text-gray-300",children:s("auditLogShared.table.time")}),jsxRuntimeExports.jsx(TableHead,{className:"dark:text-gray-300",children:s("auditLogShared.table.user")}),jsxRuntimeExports.jsx(TableHead,{className:"dark:text-gray-300",children:s("auditLogShared.table.action")}),jsxRuntimeExports.jsx(TableHead,{className:"w-[300px] dark:text-gray-300",children:s("auditLogShared.table.description")}),jsxRuntimeExports.jsx(TableHead,{className:"dark:text-gray-300",children:s("auditLogShared.table.module")}),jsxRuntimeExports.jsx(TableHead,{className:"dark:text-gray-300",children:s("auditLogShared.table.severity")}),jsxRuntimeExports.jsx(TableHead,{className:"dark:text-gray-300",children:s("auditLogShared.table.status")}),jsxRuntimeExports.jsx(TableHead,{className:"w-[100px]"})]})}),jsxRuntimeExports.jsx(TableBody,{children:ke?.map(O=>jsxRuntimeExports.jsxs(TableRow,{className:"hover:bg-gray-50 dark:hover:bg-gray-700/50",children:[jsxRuntimeExports.jsx(TableCell,{className:"font-medium",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col",children:[jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-900 dark:text-gray-100",children:format(new Date(O.timestamp),"MMM d, yyyy")}),jsxRuntimeExports.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:format(new Date(O.timestamp),"HH:mm:ss")})]})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsxs(Avatar,{className:"h-8 w-8",children:[O.performedBy.avatar&&jsxRuntimeExports.jsx(AvatarImage,{src:O.performedBy.avatar}),jsxRuntimeExports.jsx(AvatarFallback,{className:"dark:bg-gray-700 dark:text-gray-300",children:O.performedBy.name.charAt(0).toUpperCase()})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"font-medium text-gray-900 dark:text-gray-100",children:O.performedBy.name}),jsxRuntimeExports.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 truncate max-w-[150px]",children:O.performedBy.email})]})]})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Badge,{variant:"outline",className:"font-medium dark:border-gray-600 dark:text-gray-300",children:O.action})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"font-medium text-gray-900 dark:text-gray-100",children:O.description}),O.resourceName&&jsxRuntimeExports.jsx("div",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1 truncate",children:O.resourceName})]})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Badge,{variant:"secondary",className:"dark:bg-gray-700 dark:text-gray-300",children:O.module})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Badge,{variant:"outline",className:`text-xs font-medium ${It(O.severity)}`,children:O.severity.charAt(0).toUpperCase()+O.severity.slice(1)})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Badge,{className:`text-xs font-medium ${Vt(O.status)}`,children:O.status.charAt(0).toUpperCase()+O.status.slice(1)})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Button$1,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 dark:hover:bg-gray-700",onClick:()=>{if(At){ae(O);return}toast.message(`Audit ID: ${O.id}`,{description:O.details||O.description})},children:jsxRuntimeExports.jsx(Eye,{className:"h-4 w-4"})})})]},O.id))})]})})}),ke.length>0&&jsxRuntimeExports.jsxs("div",{className:"mt-6 flex items-center justify-between text-sm text-gray-600 dark:text-gray-400",children:[jsxRuntimeExports.jsx("div",{children:s("auditLogShared.pagination.showing",{shown:ke.length,total:Me})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Button$1,{variant:"outline",size:"sm",disabled:te||Ee<=1,onClick:()=>De(O=>Math.max(1,O-1)),className:"dark:border-gray-600 dark:text-gray-200",children:s("common.previous")}),jsxRuntimeExports.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 min-w-[84px] text-center",children:s("auditLogShared.pagination.pageOf",{page:Ee,totalPages:ze})}),jsxRuntimeExports.jsx(Button$1,{variant:"outline",size:"sm",disabled:te||Ee>=ze,onClick:()=>De(O=>Math.min(ze,O+1)),className:"dark:border-gray-600 dark:text-gray-200",children:s("common.next")})]})]})]})]}),jsxRuntimeExports.jsx(ExportModal,{open:se,onOpenChange:z,onExport:kt}),At&&jsxRuntimeExports.jsx(Dialog,{open:!!fe,onOpenChange:O=>{O||ae(null)},children:jsxRuntimeExports.jsxs(DialogContent,{className:"sm:max-w-4xl max-h-[85vh] overflow-hidden flex flex-col dark:bg-gray-800 dark:border-gray-700",children:[jsxRuntimeExports.jsxs(DialogHeader,{children:[jsxRuntimeExports.jsx(DialogTitle,{className:"dark:text-white",children:s("auditLogShared.modal.title")}),jsxRuntimeExports.jsx(DialogDescription,{className:"dark:text-gray-400",children:s("auditLogShared.modal.description",{id:fe==null?void 0:fe.id})})]}),jsxRuntimeExports.jsxs("div",{className:"mt-2 space-y-4 overflow-auto",children:[jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"rounded-md border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.entity")}),jsxRuntimeExports.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:(ve==null?void 0:ve.entityName)||"-"})]}),jsxRuntimeExports.jsxs("div",{className:"rounded-md border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.method")}),jsxRuntimeExports.jsx("div",{className:"mt-1",children:jsxRuntimeExports.jsx(Badge,{variant:"outline",className:"font-medium dark:border-gray-600 dark:text-gray-300",children:(ve==null?void 0:ve.queryMethod)||"-"})})]}),jsxRuntimeExports.jsxs("div",{className:"rounded-md border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.createdAt")}),jsxRuntimeExports.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:Et?format(Et,"MMM d, yyyy HH:mm:ss"):"-"})]}),jsxRuntimeExports.jsxs("div",{className:"rounded-md border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.changes")}),jsxRuntimeExports.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:wt.length})]})]}),jsxRuntimeExports.jsxs("div",{className:"rounded-md border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("div",{className:"mb-3 text-sm font-semibold text-gray-900 dark:text-gray-100",children:s("auditLogShared.modal.changes")}),wt.length===0?jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.noChanges")}),(Ne||Ue)&&jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[Ne&&jsxRuntimeExports.jsxs("article",{className:"rounded border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.payload")}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-900 dark:text-gray-100 mt-1",children:`${(Ne==null?void 0:Ne.entity)||"entity"}${Ne!=null&&Ne.id?` (id: ${Ne.id})`:""}`})]}),Ue&&jsxRuntimeExports.jsxs("article",{className:"rounded border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.performedBy")}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-900 dark:text-gray-100 mt-1",children:asName(Ue==null?void 0:Ue.name)}),jsxRuntimeExports.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:(Ue==null?void 0:Ue.email)||"-"})]})]})]}):jsxRuntimeExports.jsx("div",{className:"space-y-3",children:wt?.map((O,me)=>jsxRuntimeExports.jsx("div",{className:"rounded-md border p-3 bg-slate-50 dark:bg-gray-700",children:(()=>{var Ve,Oe;const pe=collectDiffPaths(O==null?void 0:O.from,O==null?void 0:O.to),ee=pe.length>0,xe=getValueType(O==null?void 0:O.from),Fe=getValueType(O==null?void 0:O.to);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[jsxRuntimeExports.jsxs("div",{className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:[s("auditLogShared.modal.field"),":"," ",(O==null?void 0:O.field)||"-"]}),jsxRuntimeExports.jsx(Badge,{variant:"outline",className:ee?"text-amber-700 dark:text-amber-300 border-amber-300 dark:border-amber-600 bg-amber-50 dark:bg-amber-900/30":"text-primary-700 dark:text-primary-300 border-primary-300 dark:border-primary-600 bg-primary-50 dark:bg-primary-900/30",children:s(ee?"auditLogShared.modal.changed":"auditLogShared.modal.noEffectiveChange")})]}),jsxRuntimeExports.jsx("div",{className:"text-[11px] text-gray-500 dark:text-gray-400 mb-2",children:`Type: ${xe} -> ${Fe}`}),ee?jsxRuntimeExports.jsxs("div",{className:"mb-3 rounded border bg-white dark:bg-gray-700 p-2",children:[jsxRuntimeExports.jsx("div",{className:"text-[11px] uppercase tracking-wide text-gray-500 dark:text-gray-400 mb-1",children:s("auditLogShared.modal.changedPaths")}),jsxRuntimeExports.jsxs("div",{className:"text-xs text-gray-700 dark:text-gray-200 break-all",children:[pe.slice(0,8).join(", "),pe.length>8?` ... (+${pe.length-8} more)`:""]})]}):jsxRuntimeExports.jsx("div",{className:"mb-3 rounded border bg-primary-50 dark:bg-primary-900/30 p-2 text-xs text-primary-800 dark:text-primary-300",children:s("auditLogShared.modal.noDifference")}),(O==null?void 0:O.field)==="userInfo"?jsxRuntimeExports.jsx("div",{className:"rounded-md border bg-white dark:bg-gray-800 p-3 space-y-4",children:(()=>{const je=buildUserSummary((O==null?void 0:O.to)||(O==null?void 0:O.from)||{});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("section",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[jsxRuntimeExports.jsxs("article",{className:"rounded border p-3 bg-slate-50 dark:bg-gray-700",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.name")}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:je.name})]}),jsxRuntimeExports.jsxs("article",{className:"rounded border p-3 bg-slate-50 dark:bg-gray-700",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.email")}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:je.email})]}),jsxRuntimeExports.jsxs("article",{className:"rounded border p-3 bg-slate-50 dark:bg-gray-700",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.phone")}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:je.phone})]}),jsxRuntimeExports.jsxs("article",{className:"rounded border p-3 bg-slate-50 dark:bg-gray-700",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.status")}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:je.status||"-"})]}),jsxRuntimeExports.jsxs("article",{className:"rounded border p-3 bg-slate-50 dark:bg-gray-700",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.userType")}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:je.userType||"-"})]}),jsxRuntimeExports.jsxs("article",{className:"rounded border p-3 bg-slate-50 dark:bg-gray-700",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.registration")}),jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:je.registrationComplete?s("auditLogShared.modal.user.complete"):s("auditLogShared.modal.user.incomplete")})]})]}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400 mb-2",children:s("auditLogShared.modal.user.roles")}),jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-2",children:je.roles.length>0?je.roles?.map(Be=>jsxRuntimeExports.jsx(Badge,{variant:"outline",className:"dark:border-gray-600 dark:text-gray-300",children:Be},Be)):jsxRuntimeExports.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.noRoles")})})]}),jsxRuntimeExports.jsxs("section",{className:"space-y-3",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.employeeInfo")}),je.employeeInfo.length>0?je.employeeInfo?.map((Be,at)=>jsxRuntimeExports.jsxs("article",{className:"rounded border p-3 bg-slate-50 dark:bg-gray-700",children:[jsxRuntimeExports.jsx("p",{className:"text-sm font-semibold text-gray-900 dark:text-gray-100 mb-2",children:Be.unit}),jsxRuntimeExports.jsx("div",{className:"space-y-2",children:Be.positions?.map((V,_e)=>jsxRuntimeExports.jsxs("div",{className:"rounded border bg-white dark:bg-gray-600 p-3",children:[jsxRuntimeExports.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:V.name}),jsxRuntimeExports.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-2",children:[s("auditLogShared.modal.user.rank"),": ",V.rank]}),jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-2",children:V.permissions.length>0?V.permissions?.map(Pt=>jsxRuntimeExports.jsx(Badge,{variant:"secondary",className:"dark:bg-gray-600 dark:text-gray-200",children:Pt},Pt)):jsxRuntimeExports.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.noPermissions")})})]},`pos-${at}-${_e}`))})]},`emp-${at}`)):jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.user.noEmployeeDetails")})]})]})})()}):(O==null?void 0:O.field)==="fileInfo"?jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[jsxRuntimeExports.jsxs("article",{className:"rounded border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.previousFile")}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-900 dark:text-gray-100 mt-1",children:((Ve=O==null?void 0:O.from)==null?void 0:Ve.fileName)||s("common.None")})]}),jsxRuntimeExports.jsxs("article",{className:"rounded border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.currentFile")}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-900 dark:text-gray-100 mt-1",children:((Oe=O==null?void 0:O.to)==null?void 0:Oe.fileName)||s("common.None")})]})]}):jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[jsxRuntimeExports.jsxs("article",{className:"rounded border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.from")}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-900 dark:text-gray-100 mt-1",children:summarizeValue(O==null?void 0:O.from)})]}),jsxRuntimeExports.jsxs("article",{className:"rounded border bg-white dark:bg-gray-800 p-3",children:[jsxRuntimeExports.jsx("h4",{className:"text-xs text-gray-500 dark:text-gray-400",children:s("auditLogShared.modal.to")}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-900 dark:text-gray-100 mt-1",children:summarizeValue(O==null?void 0:O.to)})]})]})]})})()},`${(O==null?void 0:O.field)||"field"}-${me}`))})]})]})]})})]})})}function SmartOfficeAuditPage(){const{t:r}=useTranslation();return jsxRuntimeExports.jsx(AuditLogPageShared,{moduleKey:"record",title:r("auditLogShared.page.smartOfficeTitle"),subtitle:r("auditLogShared.page.smartOfficeSubtitle"),limit:10})}export{SmartOfficeAuditPage as S};
