UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

152 lines 145 kB
/* @license */
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("kendo.core.min.js"),require("kendo.textarea.min.js"),require("kendo.textbox.min.js"),require("kendo.html.button.min.js"),require("kendo.icons.min.js"),require("kendo.speechtotextbutton.min.js"),require("kendo.upload.min.js")):typeof define==`function`&&define.amd?define([`exports`,`kendo.core.min`,`kendo.textarea.min`,`kendo.textbox.min`,`kendo.html.button.min`,`kendo.icons.min`,`kendo.speechtotextbutton.min`,`kendo.upload.min`],t):(e=typeof globalThis<`u`?globalThis:e||self,t((e.kendo=e.kendo||{},e.kendo._globals=e.kendo._globals||{},e.kendo._globals.Promptbox={}),e.kendo._globals.Core,e.kendo._globals.Textarea,e.kendo._globals.Textbox,e.kendo._globals.HtmlButton,e.kendo._globals.Icons,e.kendo._globals.Speechtotextbutton,e.kendo._globals.Upload))})(this,function(e,t,n,r,i,a,o,s){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let c=`prefix`,l=new class{constructor(){this.themeColorValues=[`base`,`primary`,`secondary`,`tertiary`,`inherit`,`info`,`success`,`warning`,`error`,`inverse`],this.fillModeValues=[`solid`,`outline`,`flat`],this.shapeValues=[`rectangle`,`square`],this.sizeValues=[[`xsmall`,`xs`],[`small`,`sm`],[`medium`,`md`],[`large`,`lg`]],this.roundedValues=[[`small`,`sm`],[`medium`,`md`],[`large`,`lg`],[`full`,`full`],[`none`,`none`]],this.positionModeValues=[`fixed`,`static`,`sticky`,`absolute`],this.resizeValues=[[`both`,`resize`],[`horizontal`,`resize-x`],[`vertical`,`resize-y`]],this.overflowValues=[`auto`,`hidden`,`visible`,`scroll`,`clip`],this.layoutFlowValues=[[`vertical`,`!k-flex-col`],[`horizontal`,`!k-flex-row`]],this.defaultValues={},this.propertyDictionary={},this.propertyToCssClassMap={},this.registerDefaultCssClasses(`themeColor`,this.themeColorValues),this.registerDefaultCssClasses(`fillMode`,this.fillModeValues),this.registerDefaultCssClasses(`shape`,this.shapeValues),this.registerDefaultCssClasses(`size`,this.sizeValues),this.registerDefaultCssClasses(`positionMode`,this.positionModeValues),this.registerDefaultCssClasses(`rounded`,this.roundedValues),this.registerDefaultCssClasses(`resize`,this.resizeValues),this.registerDefaultCssClasses(`overflow`,this.overflowValues),this.registerDefaultCssClasses(`layoutFlow`,this.layoutFlowValues),this.registerCssClasses(`themeColor`,this.themeColorValues),this.registerCssClasses(`fill`,this.fillModeValues),this.registerCssClasses(`shape`,this.shapeValues),this.registerCssClasses(`size`,this.sizeValues),this.registerCssClasses(`positionMode`,this.positionModeValues)}registerPrefix(e,t){this.propertyDictionary[e]||(this.propertyDictionary[e]={}),this.propertyDictionary[e][c]=t}registerValues(e,t){let n,r,i,a,o,s;for(this.propertyDictionary[e]||(this.propertyDictionary[e]={}),n=0;n<t.length;n++)for(i=t[n].prop,o=t[n].values,this.propertyDictionary[e][i]||(this.propertyDictionary[e][i]={}),a=this.propertyDictionary[e][i],r=0;r<o.length;r++)s=o[r],Array.isArray(s)?a[s[0]]=s[1]:a[s]=s}getValidClass(e){let t=e.widget,n=e.propName,r=e.value,i=e.prefix,a=this.defaultValues[n],o=this.propertyDictionary[t];if(!o)return``;let s=o[n],l=s?s[r]:a&&a[r];if(l){let e;return e=n===`themeColor`?o[c]:n===`positionMode`?`k-pos-`:n===`rounded`?`k-rounded-`:n===`resize`?`k-`:n===`overflow`?`k-overflow-`:n===`layoutFlow`?``:o[c],e=i||e,e+l}else return``}registerDefaultCssClass(e,t,n){this.defaultValues[e]||(this.defaultValues[e]={}),this.defaultValues[e][t]=n||t}registerDefaultCssClasses(e,t){for(let n=0;n<t.length;n++)if(Array.isArray(t[n])){let r=t[n];this.registerDefaultCssClass(e,r[0],r[1])}else this.registerDefaultCssClass(e,t[n])}registerCssClass(e,t,n){this.propertyToCssClassMap[e]||(this.propertyToCssClassMap[e]={}),this.propertyToCssClassMap[e][t]=n||t}registerCssClasses(e,t){for(let n=0;n<t.length;n++)if(Array.isArray(t[n])){let r=t[n];this.registerCssClass(e,r[0],r[1])}else this.registerCssClass(e,t[n])}getValidCssClass(e,t,n){if(n===void 0)return``;let r=this.propertyToCssClassMap[t]?.[n];if(r)return e+r}},u=`undefined`;function d(e,t,n){for(let n in t)if(t.hasOwnProperty(n)&&t[n].test(e))return n;return n===void 0?e:n}let f=new class{constructor(){this._scrollbar=void 0,this.scrollbar=this.scrollbar.bind(this),this.isRtl=this.isRtl.bind(this),this.detectOS=this.detectOS.bind(this),this.detectBrowser=this.detectBrowser.bind(this),this.detectClipboardAccess=this.detectClipboardAccess.bind(this),this.zoomLevel=this.zoomLevel.bind(this),this.delayedClick=this.delayedClick.bind(this),this.initialize()}initialize(){let e=window,t=document,n=navigator,r=t.createElement(`table`);try{r.innerHTML=`<tr><td></td></tr>`,this.tbodyInnerHtml=!0}catch{this.tbodyInnerHtml=!1}this.touch=`ontouchstart`in e;let i=t.documentElement.style,a=`HTMLElement`in e?HTMLElement.prototype:[];this.transforms=this.transitions={css:``,prefix:``,event:`transitionend`},this.hasHW3D=`WebKitCSSMatrix`in e&&`m11`in new e.WebKitCSSMatrix||`MozPerspective`in i||`msPerspective`in i,this.cssFlexbox=`flexWrap`in i||`WebkitFlexWrap`in i||`msFlexWrap`in i,this.devicePixelRatio=e.devicePixelRatio===void 0?1:e.devicePixelRatio;try{this.screenWidth=e.outerWidth||e.screen?e.screen.availWidth:e.innerWidth,this.screenHeight=e.outerHeight||e.screen?e.screen.availHeight:e.innerHeight}catch{this.screenWidth=e.screen.availWidth,this.screenHeight=e.screen.availHeight}let o=this.detectOS(n.userAgent);this.mobileOS=o,this.wpDevicePixelRatio=o&&o.wp?screen.width/320:0,this.hasNativeScrolling=!1,o&&(o.ios||o.android&&parseInt(o.majorVersion)>2||o.wp)&&(this.hasNativeScrolling=o),this.mouseAndTouchPresent=this.touch&&!(o&&(o.ios||o.android)),this.browser=this.detectBrowser(n.userAgent),!o&&this.touch&&this.browser.safari&&(o=this.mobileOS={ios:!0,tablet:`tablet`,device:`ipad`,majorVersion:`13`,minorVersion:`0`,flatVersion:`1300`,cordova:!1,appMode:!1,name:`ios`,browser:`mobilesafari`}),this.clipboard=this.detectClipboardAccess(),this.eventCapture=!!t.documentElement.addEventListener;let s=t.createElement(`input`);this.placeholder=`placeholder`in s,this.propertyChangeEvent=`onpropertychange`in s,this.input=this.detectInputTypes(s),s.style.cssText=`float:left;`,this.cssFloat=!!s.style.cssFloat,this.stableSort=this.detectStableSort(),this.matchesSelector=a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.matchesSelector||a.matches||function(e){let n=t.querySelectorAll?(this.parentNode||t).querySelectorAll(e)||[]:$(e),r=n.length;for(;r--;)if(n[r]===this)return!0;return!1},this.matchMedia=`matchMedia`in e,this.pushState=!!(e.history&&e.history.pushState),this.hashChange=`onhashchange`in e,this.customElements=`registerElement`in t;let c=this.browser.chrome,l=this.browser.crios,u=this.browser.mozilla,d=this.browser.safari;this.msPointers=!c&&e.MSPointerEvent,this.pointers=!c&&!l&&!u&&!d&&e.PointerEvent,this.kineticScrollNeeded=!!(o&&(o.device!==`ipad`||parseInt(o.majorVersion)<13)&&(this.touch||this.msPointers||this.pointers)),this.touch?this.mobileOS?(this.mousedown=`touchstart`,this.mouseup=`touchend`,this.mousemove=`touchmove`,this.mousecancel=`touchcancel`,this.click=`touchend`,this.resize=`orientationchange`):(this.mousedown=`mousedown touchstart`,this.mouseup=`mouseup touchend`,this.mousemove=`mousemove touchmove`,this.mousecancel=`mouseleave touchcancel`,this.click=`click`,this.resize=`resize`):this.pointers?(this.mousemove=`pointermove`,this.mousedown=`pointerdown`,this.mouseup=`pointerup`,this.mousecancel=`pointercancel`,this.click=`pointerup`,this.resize=`orientationchange resize`):this.msPointers?(this.mousemove=`MSPointerMove`,this.mousedown=`MSPointerDown`,this.mouseup=`MSPointerUp`,this.mousecancel=`MSPointerCancel`,this.click=`MSPointerUp`,this.resize=`orientationchange resize`):(this.mousemove=`mousemove`,this.mousedown=`mousedown`,this.mouseup=`mouseup`,this.mousecancel=`mouseleave`,this.click=`click`,this.resize=`resize`),this.addBrowserCssClasses($)}scrollbar(e){if(!isNaN(this._scrollbar)&&!e)return this._scrollbar;let t=document.createElement(`div`);return t.style.cssText=`overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block`,t.innerHTML=`&nbsp;`,document.body.appendChild(t),this._scrollbar=t.offsetWidth-t.scrollWidth,document.body.removeChild(t),this._scrollbar}isRtl(e){return $(e).closest(`.k-rtl`).length>0}detectOS(e){let t=!1,n,r=null,i=!/mobile safari/i.test(e),a={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},s={tablet:/playbook|ipad|fire/i},c={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i,edge:/edge|edg|edgios|edga/i};for(let l in a)if(a.hasOwnProperty(l)&&(r=e.match(a[l]),r)){if(l===`windows`&&`plugins`in navigator)return!1;t={},t.device=l,t.tablet=d(l,s,!1),t.browser=d(e,c,`default`),t.name=d(l,o),t[t.name]=!0,t.majorVersion=r[2],t.minorVersion=(r[3]||`0`).replace(`_`,`.`),n=t.minorVersion.replace(`.`,``).substr(0,2),t.flatVersion=t.majorVersion+n+Array(3-(n.length<3?n.length:2)).join(`0`),t.cordova=typeof window.PhoneGap!=u||typeof window.cordova!=u,t.appMode=!!navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||t.cordova,t.android&&(this.devicePixelRatio<1.5&&parseInt(t.flatVersion)<400||i)&&(this.screenWidth>800||this.screenHeight>800)&&(t.tablet=l);break}return t}detectBrowser(e){let t=!1,n,r,i={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(let a in i)if(i.hasOwnProperty(a)&&(n=e.match(i[a]),n)){t={},t[a]=!0,t[n[1].toLowerCase().split(` `)[0].split(`/`)[0]]=!0,t.version=parseInt(document.documentMode||n[2],10),t.chrome&&(r=e.match(/(edg)[ \/]([\w.]+)/i),r&&(t.chromiumEdge=!0));break}return t||{version:0}}detectClipboardAccess(){let e=document,t={copy:e.queryCommandSupported?e.queryCommandSupported(`copy`):!1,cut:e.queryCommandSupported?e.queryCommandSupported(`cut`):!1,paste:e.queryCommandSupported?e.queryCommandSupported(`paste`):!1};return this.browser.chrome&&(t.paste=!1,this.browser.version>=43&&(t.copy=!0,t.cut=!0)),t}zoomLevel(){try{let e=this.browser,t=0,n=document.documentElement;return e.msie&&e.version===11&&n.scrollHeight>n.clientHeight&&!this.touch&&(t=this.scrollbar()),this.touch?n.clientWidth/window.innerWidth:e.msie&&e.version>=10?((top||window).document.documentElement.offsetWidth+t)/(top||window).innerWidth:1}catch{return 1}}delayedClick(){if(this.touch){let e=this.mobileOS;if(e&&e.ios)return!0;if(e&&e.android)return this.browser.chrome?this.browser.version<32?!1:!($(`meta[name=viewport]`).attr(`content`)||``).match(/user-scalable=no/i):!0}return!1}detectInputTypes(e){let t=[`number`,`date`,`time`,`month`,`week`,`datetime`,`datetime-local`],n=`test`,r={};for(let i of t)e.setAttribute(`type`,i),e.value=n,r[i.replace(`-`,``)]=e.type!==`text`&&e.value!==n;return r}detectStableSort(){let e=[{index:0,field:`b`}];for(let t=1;t<513;t++)e.push({index:t,field:`a`});return e.sort((e,t)=>e.field>t.field?1:e.field<t.field?-1:0),e[0].index===1}addBrowserCssClasses(e){let t=this.browser,n=``,r=e(document.documentElement),i=parseInt(String(t.version),10);t.msie?n=`ie`:t.mozilla?n=`ff`:t.safari?n=`safari`:t.webkit?n=`webkit`:t.opera?n=`opera`:t.edge&&(n=`edge`),n&&=`k-`+n+` k-`+n+i,this.mobileOS&&(n+=` k-mobile`),this.cssFlexbox||(n+=` k-no-flexbox`),r.addClass(n)}bootstrapToMedia(e){return{xs:`(max-width: 576px)`,sm:`(min-width: 576px)`,md:`(min-width: 768px)`,lg:`(min-width: 992px)`,xl:`(min-width: 1200px)`}[e]}matchesMedia(e){let t=this.bootstrapToMedia(e)||e;return this.matchMedia&&window.matchMedia(t).matches}},p=new class{constructor(){this.mouseTrap=!1,this.bustClick=!1,this.captureMouse=!1,this.MOUSE_EVENTS=[`mousedown`,`mousemove`,`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`mouseup`,`click`],this.EXCLUDE_BUST_CLICK_SELECTOR=`label, input, [data-rel=external]`}setupMouseMute(){let e=0,t=this.MOUSE_EVENTS.length,n=document.documentElement;if(this.mouseTrap||!f.eventCapture)return;this.mouseTrap=!0,this.bustClick=!1,this.captureMouse=!1;let r=this,i=function(e){r.captureMouse&&(e.type===`click`?r.bustClick&&!$(e.target).is(r.EXCLUDE_BUST_CLICK_SELECTOR)&&(e.preventDefault(),e.stopPropagation()):e.stopPropagation())};for(;e<t;e++)n.addEventListener(this.MOUSE_EVENTS[e],i,!0)}muteMouse(e){this.captureMouse=!0,e.data?.bustClick&&(this.bustClick=!0),clearTimeout(this.mouseTrapTimeoutID)}unMuteMouse(){clearTimeout(this.mouseTrapTimeoutID),this.mouseTrapTimeoutID=setTimeout(()=>{this.captureMouse=!1,this.bustClick=!1},400)}},m=new class{constructor(){this.eventRegEx=/([^ ]+)/g,this.eventMap=this.buildEventMap(),this.setupMSPointerEvents()}buildEventMap(){let e={down:`touchstart mousedown`,move:`mousemove touchmove`,up:`mouseup touchend touchcancel`,cancel:`mouseleave touchcancel`};return f.touch&&f.mobileOS&&(f.mobileOS.ios||f.mobileOS.android)?e={down:`touchstart`,move:`touchmove`,up:`touchend touchcancel`,cancel:`touchcancel`}:f.pointers?e={down:`pointerdown`,move:`pointermove`,up:`pointerup`,cancel:`pointercancel pointerleave`}:f.msPointers&&(e={down:`MSPointerDown`,move:`MSPointerMove`,up:`MSPointerUp`,cancel:`MSPointerCancel MSPointerLeave`}),e}setupMSPointerEvents(){f.msPointers&&!(`onmspointerenter`in window)&&$.each({MSPointerEnter:`MSPointerOver`,MSPointerLeave:`MSPointerOut`},(e,t)=>{$.event.special[e]={delegateType:t,bindType:t,handle:function(e){let n,r=this,i=e.relatedTarget,a=e.handleObj;return(!i||i!==r&&!this.$.contains(r,i))&&(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})}getEventMap(e){return this.eventMap[e]||e}getFullEventMap(){return{...this.eventMap}}applyEventMap(e,t){return e=e.replace(this.eventRegEx,e=>this.getEventMap(e)),t&&(e=e.replace(this.eventRegEx,`$1.`+t)),e}},h=`object`,g=new class{constructor(){this.keys={INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,SHIFT:16,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110},this.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6}}get kendoData(){return window.kendo?.data||{}}toHyphens(e){return e.replace(/([a-z][A-Z])/g,e=>e.charAt(0)+`-`+e.charAt(1).toLowerCase())}toCamelCase(e){return e.replace(/\-(\w)/g,(e,t)=>t.toUpperCase())}size(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&n!==`toJSON`&&t++;return t}deepExtend(e,...t){for(let n=0;n<t.length;n++)this.deepExtendOne(e,t[n]);return e}deepExtendOne(e,t){let n=this.kendoData.ObservableArray,r=this.kendoData.LazyObservableArray,i=this.kendoData.DataSource,a=this.kendoData.HierarchicalDataSource;for(let o in t){if(o===`__proto__`||o===`constructor`||o===`prototype`)continue;let s=t[o],c=typeof s,l=null;c===h&&s!==null&&(l=s.constructor);let u=l?.name===`RegExp`,d=l?.name===`ArrayBuffer`,f=l?.name===`Date`;if(l&&!Array.isArray(s)&&l!==n&&l!==r&&l!==i&&l!==a&&!u&&(!this.isFunction(window.ArrayBuffer)||!d)&&!(s instanceof HTMLElement))if(f)e[o]=new Date(s.getTime());else if(this.isCloneable(s))e[o]=s.clone();else{let t=e[o];typeof t==h?e[o]=t||{}:e[o]={},this.deepExtendOne(e[o],s)}else c!==`undefined`&&(e[o]=s)}return e}isCloneable(e){return typeof e.clone==`function`}throttle(e,t){if(!t||t<=0)return e;let n,r=0,i=function(...i){let a=this,o=+new Date-r;function s(){let t=e.apply(a,i);return r=+new Date,t}if(!r||(n&&clearTimeout(n),o>t))return s();n=setTimeout(s,t-o)};return i.cancel=function(){n&&=(clearTimeout(n),void 0)},i}guid(){let e=window.crypto;try{return e.randomUUID()}catch{return e.getRandomValues(new Uint8Array(16)).reduce((e,t,n)=>((n===4||n===6||n===8||n===10)&&(e+=`-`),e+=t.toString(16).padStart(2,`0`),e),``)}}trim(e){return e?e.toString().trim():``}isPresent(e){return e!=null}isBlank(e){return e==null}isEmpty(e){return e.length===0}isString(e){return typeof e==`string`}isInteger(e){return Number.isInteger(e)}isNumeric(e){return!isNaN(e-parseFloat(e))}isDate(e){return e&&e.getTime}isFunction(e){return typeof e==`function`}isObject(e){return e!==null&&typeof e==h}logToConsole(e,t){let n=window.console;!window.kendo.suppressLog&&n!==void 0&&n.log&&n[t||`log`](e)}whenAll(e){let t=window.jQuery,n=arguments.length===1&&Array.isArray(e)?e:Array.prototype.slice.call(arguments),r=n.length,i=r,a=t.Deferred(),o=0,s=0,c=Array(r),l=Array(r),u=Array(r),d,f=(e,t,r)=>function(){r!==n&&s++,a.notifyWith(t[e]=this,r[e]=Array.prototype.slice.call(arguments)),--i||a[(s?`reject`:`resolve`)+`With`](t,r)};for(;o<r;o++)d=n[o],d&&this.isFunction(d.promise)?d.promise().done(f(o,u,n)).fail(f(o,c,l)):(a.notifyWith(this,d),--i);return i||a.resolveWith(u,n),a.promise()}isLocalUrl(e){return e&&!/^([a-z]+:)?\/\//i.test(e)}getAllMethods(e){let t=Object.getOwnPropertyNames(e).filter(t=>typeof e[t]==`function`),n=Object.getOwnPropertyNames(Object.getPrototypeOf(new e({}))).filter(e=>e!==`constructor`);return t.concat(n)}getBaseClass(e){if(e instanceof Function){let t=Object.getPrototypeOf(e);if(t&&t!==Object&&t.name)return t}return null}createProxyMember(e,t){e.fn[t]=function(){let e=this._instance;if(e)return e[t].apply(e,arguments)}}convertPromiseToDeferred(e){let t=$.Deferred();return e.finally(t.always).then(t.resolve).catch(t.reject),t.promise()}},_=new class{constructor(){this.originalOn=$.fn.on,this.kendoJQuery=this.createKendoJQuery(),this.rootjQuery=this.kendoJQuery(document)}noDeprecateExtend(e,t,...n){let r,i,a,o,s;typeof t!=`object`&&typeof t!=`function`&&(t={});for(let c of n)if(c!=null)for(o in c)o!==`filters`&&o!==`concat`&&o!==`:`&&o!==`cssNumber`&&(r=t[o],a=c[o],t!==a&&(e&&a&&($.isPlainObject(a)||(i=Array.isArray(a)))?(i?(i=!1,s=r&&Array.isArray(r)?r:[]):s=r&&$.isPlainObject(r)?r:{},t[o]=this.noDeprecateExtend(e,s,a)):a!==void 0&&(t[o]=a)));return t}createKendoJQuery(){let e=this,t=function(e,n){return new t.fn.init(e,n)};return this.noDeprecateExtend(!0,t,$),t.fn=t.prototype=new $,t.fn.constructor=t,t.fn.init=function(n,r){return r&&r instanceof $&&!(r instanceof t)&&(r=t(r)),$.fn.init.call(this,n,r,e.rootjQuery)},t.fn.init.prototype=t.fn,$.extend(t.fn,{handler:function(e){return this.data(`handler`,e),this},autoApplyNS:function(e){return this.data(`kendoNS`,e||g.guid()),this},on:function(...t){let n=this,r=n.data(`kendoNS`),i=e.originalOn;if(t.length===1)return i.call(n,t[0]);let a=n,o=t.slice();o[o.length-1]===void 0&&o.pop();let s=o[o.length-1],c=m.applyEventMap(o[0],r);if(f.mouseAndTouchPresent&&c.search(/mouse|click/)>-1&&this[0]!==document.documentElement){p.setupMouseMute();let e=o.length===2?null:o[1],t=c.indexOf(`click`)>-1&&c.indexOf(`touchend`)>-1;i.call(this,{touchstart:e=>p.muteMouse(e),touchend:()=>p.unMuteMouse()},e,{bustClick:t})}if(o[0].indexOf(`keydown`)!==-1&&o[1]&&o[1].options){o[0]=c;let t=o[1],r=o[o.length-1];return o[o.length-1]=function(n){if(e.keyDownHandler(n,t))return r.apply(this,[n])},i.apply(n,o),n}if(typeof s==`string`){a=n.data(`handler`);let e=a[s];o[o.length-1]=function(t){e.call(a,t)}}return o[0]=c,i.apply(n,o),n},kendoDestroy:function(e){return e||=this.data(`kendoNS`),e&&this.off(`.`+e),this}}),t}getConstructor(){return this.kendoJQuery}create(e,t){return this.kendoJQuery(e,t)}keyDownHandler(e,t){let n=t._events.kendoKeydown;if(!n)return!0;let r=n.slice();e.sender=t,e.preventKendoKeydown=!1;for(let n=0,i=r.length;n<i;n++)r[n].call(t,e);return!e.preventKendoKeydown}};var v=class{static extend(e){let t=this,n=function(){};n.prototype=t.prototype;let r=e&&e.init?e.init:function(...e){t.prototype.init&&t.prototype.init.apply(this,e)},i=r.fn=r.prototype=new n;if(e)for(let t in e)e[t]!=null&&e[t].constructor===Object?i[t]=_.getConstructor().extend(!0,{},n.prototype[t],e[t]):i[t]=e[t];return i.constructor=r,r.extend=t.extend,r}};v.fn=v.prototype,v.prototype.init=function(...e){},v.prototype._initOptions=function(e){this.options=_.getConstructor().extend(!0,{},this.options,e)};let y=`string`,b=`function`;function x(){this._defaultPrevented=!0}function S(){return this._defaultPrevented===!0}var C=class extends v{constructor(){super(),this._events={}}init(...e){this._events={}}bind(e,t,n){let r=this,i,a,o,s,c=typeof t==b,l;if(t===void 0){let t=e;for(i in t)r.bind(i,t[i]);return r}let u=typeof e==y?[e]:e;for(i=0,a=u.length;i<a;i++){let e=u[i];s=c?t:t[e],s&&(n&&(o=s,s=(function(e,t){let n=function(){r.unbind(e,n),t.apply(r,arguments)};return n.original=t,n})(e,o)),l=r._events[e]=r._events[e]||[],l.push(s))}return r}one(e,t){return this.bind(e,t,!0)}first(e,t){let n=this,r,i=typeof e==y?[e]:e,a=i.length,o,s=typeof t==b,c;for(r=0;r<a;r++){let e=i[r];o=s?t:t[e],o&&(c=n._events[e]=n._events[e]||[],c.unshift(o))}return n}trigger(e,t){let n=this,r=n._events[e],i,a=r?r.length:0;if(r){let e=t||{};for(e.sender=n,e._defaultPrevented=!1,e.preventDefault=x,e.isDefaultPrevented=S,r=r.slice(),i=0;i<a;i++)r[i].call(n,e);return e._defaultPrevented===!0}return!1}unbind(e,t){let n=this,r=e?n._events[e]:void 0,i;if(e===void 0)n._events={};else if(r)if(t)for(i=r.length-1;i>=0;i--)(r[i]===t||r[i].original===t)&&r.splice(i,1);else n._events[e]=[];return n}};let w=C.prototype;[`init`,`bind`,`one`,`first`,`trigger`,`unbind`].forEach(e=>{let t=w[e];Object.defineProperty(w,e,{value:t,writable:!0,configurable:!0,enumerable:!0})}),C.fn=C.prototype;let T=new class{constructor(){this._ns=``}get ns(){return this._ns}setNs(e){this._ns=e}},E=/%/,D=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i;var O=class{constructor(){this.animationQueue=[];let e=window;this.animationFrameFn=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||(e=>{setTimeout(e,1e3/60)})}isElement(e){return e instanceof Element||e instanceof HTMLDocument}outerWidth(e,t,n){let r=$(e);return n?this.getHiddenDimensions(r,t).width:r.outerWidth(t||!1)||0}outerHeight(e,t,n){let r=$(e);return n?this.getHiddenDimensions(r,t).height:r.outerHeight(t||!1)||0}getComputedStyles(e,t){let n={},r;return document.defaultView&&document.defaultView.getComputedStyle?(r=document.defaultView.getComputedStyle(e,``),t&&$.each(t,(e,t)=>{n[t]=r.getPropertyValue(t)})):(r=e.currentStyle,t&&$.each(t,(e,t)=>{n[t]=r[g.toCamelCase(t)]})),g.size(n)?n:r}isScrollable(e){if(e.dataset[T.ns+`scrollable`]===`false`)return!1;if(typeof e.className==`string`&&e.className.indexOf(`k-auto-scrollable`)>-1)return!0;let t=this.getComputedStyles(e,[`overflow`]).overflow||``;return t.indexOf(`auto`)>-1||t.indexOf(`scroll`)>-1}scrollLeft(e,t){let n=f.browser.webkit,r=f.browser.mozilla,i=f.browser.version;if(e instanceof $&&t!==void 0){e.each((e,n)=>{this.scrollLeft(n,t)});return}let a=e instanceof $?e[0]:e;if(!a)return;let o=f.isRtl(e);if(t!==void 0)o&&n&&(i<85||f.browser.safari)?a.scrollLeft=a.scrollWidth-a.clientWidth-t:o&&(r||n)&&t>0?a.scrollLeft=-t:a.scrollLeft=t;else if(o&&n&&(i<85||f.browser.safari))return a.scrollWidth-a.clientWidth-a.scrollLeft;else return Math.abs(a.scrollLeft)}getOffset(e,t=`offset`,n){let r=e[t](),i={top:r.top,right:r.right,bottom:r.bottom,left:r.left};if(f.browser.msie&&(f.pointers||f.msPointers)&&!n){let t=f.isRtl(e)?1:-1;i.top-=window.pageYOffset-document.documentElement.scrollTop,i.left-=window.pageXOffset+t*document.documentElement.scrollLeft}return i}getHiddenDimensions(e,t){let n=e.clone();n.css(`display`,``),n.css(`visibility`,`hidden`),n.appendTo($(`body`));let r=n.outerWidth(t||!1),i=n.outerHeight(t||!1);return n.remove(),{width:r||0,height:i||0}}parseEffects(e){let t={},n=typeof e==`string`?e.split(` `):e;return $.each(n,function(e){t[e]=this}),t}stripWhitespace(e){if(document.createNodeIterator){let t=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,t=>t.parentNode===e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT);for(;t.nextNode();){let e=t.referenceNode;e&&!e.textContent?.trim()&&e.parentNode?.removeChild(e)}}}animationFrame(e){this.animationFrameFn.call(window,e)}queueAnimation(e){this.animationQueue.push(e),this.animationQueue.length===1&&this.runNextAnimation()}runNextAnimation(){this.animationFrame(()=>{this.animationQueue[0]&&(this.animationQueue.shift()(),this.animationQueue[0]&&this.runNextAnimation())})}parseQueryStringParams(e){let t=e.split(`?`)[1]||``,n={},r=t.split(/&|=/),i=r.length;for(let e=0;e<i;e+=2)r[e]!==``&&(n[decodeURIComponent(r[e])]=decodeURIComponent(r[e+1]));return n}elementUnderCursor(e){return e.x.client===void 0?null:document.elementFromPoint(e.x.client,e.y.client)}wheelDeltaY(e){let t=e.originalEvent,n=t.wheelDeltaY,r;return t.wheelDelta?(n===void 0||n)&&(r=t.wheelDelta):t.detail&&t.axis===t.VERTICAL_AXIS&&(r=-t.detail*10),r}getShadows(e){let t=e.css(`box-shadow`),n=t&&D.exec(t)||[0,0,0,0,0],r=Math.max(+n[3],+(n[4]||0));return{left:-n[1]+r,right:+n[1]+r,bottom:+n[2]+r}}wrap(e,t,n,r=!0,i){let a=e.parent(),o=this.outerWidth(window);if(a.parent().removeClass(`k-animation-container-sm`),a.hasClass(`k-child-animation-container`))this.wrapResize(e,t,r);else{let n=e[0].style.width,r=e[0].style.height,o=E.test(n),s=E.test(r),c=e.hasClass(`k-tooltip`)||e.is(`.k-menu-horizontal.k-context-menu`),l=e.hasClass(`k-tooltip`),u=o||s,d=n,f=r;!o&&(!t||t&&n||c)&&(d=t?this.outerWidth(e,!1,l)+1:this.outerWidth(e,!1,l)),(!s&&(!t||t&&r)||c)&&(f=this.outerHeight(e,!1,l)),e.wrap($(`<div/>`).addClass(`k-child-animation-container`).css({width:i?`auto`:d,height:f})),a=e.parent(),a.wrap($(`<div/>`).addClass(`k-animation-container`).attr(`role`,`region`)),u&&e.css({width:`100%`,height:`100%`})}return a=a.parent(),o<this.outerWidth(a)&&(a.addClass(`k-animation-container-sm`),n=!0),n&&this.wrapResize(e,t,r),a}wrapResize(e,t,n=!0){let r=e.parent(),i=e.closest(`.k-animation-container`),a=e.hasClass(`k-tooltip`),o=e.is(`:visible`),s=r[0].style,c=e[0].style.height;i.is(`:hidden`)&&i.css({display:``,position:``}),E.test(s.width)||E.test(s.height)||(o||e.add(r).show(),n&&r.css(`width`,``),r.css({width:t?this.outerWidth(e,!1,a)+1:this.outerWidth(e,!1,a)}),c===`auto`?e.css({height:this.outerHeight(r)}):r.css({height:this.outerHeight(e)}),o||e.hide())}scrollByDelta(e,t){let n=f.isRtl(e),r=(n?-this.scrollLeft(e):this.scrollLeft(e))+t,i=e[0].scrollWidth-e[0].clientWidth,a={scrollLeft:r};e.finish().animate(a,`fast`,`linear`);let o=n?-i:i,s=n?Math.max(Math.min(r,0),o):Math.min(Math.max(r,0),o);return{atStart:s===0,atEnd:s===o}}scrollVerticalByDelta(e,t,n={}){let{duration:r=`fast`,easing:i=`linear`}=n,a=(e.scrollTop()||0)+t,o={scrollTop:a};e.finish().animate(o,r,i);let s=e[0].scrollHeight-e[0].clientHeight,c=Math.min(Math.max(a,0),s);return{atTop:c===0,atBottom:c>=s}}scrollToElement(e,t,n={}){if(!e.length||!t.length)return!1;let{duration:r=0,easing:i=`linear`,position:a=`center`,offset:o=0,onComplete:s}=n,c=e.height()||0,l=e.scrollTop()||0,u=e.offset(),d=t.offset(),f=t.outerHeight()||0,p=d.top-u.top+l,m;switch(a){case`top`:m=p+o;break;case`bottom`:m=p-c+f+o;break;default:m=p-c/2+f/2+o;break}let h=e[0].scrollHeight-e[0].clientHeight;return m=Math.min(Math.max(m,0),h),e.finish().animate({scrollTop:m},r,i,s),!0}addAttribute(e,t,n){let r=e.attr(t)||``;r.indexOf(n)<0&&e.attr(t,(r+` `+n).trim())}removeAttribute(e,t){e.removeAttr(t)}toggleAttribute(e,t,n){let r=(e.attr(t)||``).indexOf(n)<0,i=[`disabled`,`readonly`].indexOf(t)>-1;r&&!i||i&&n?this.addAttribute(e,t,n):this.removeAttribute(e,t)}onResize(e){let t=e;return f.mobileOS&&f.mobileOS.android&&(t=function(){setTimeout(e,600)}),$(window).on(f.resize,t),t}unbindResize(e){$(window).off(f.resize,e)}attrValue(e,t){return e.data(T.ns+t)}attr(e){return`data-`+T.ns+e}dimensions(e,t){let n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}}triggeredByInput(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)}applyStylesFromKendoAttributes(e,t){let n=t.map(e=>`[${this.attr(`style-${e}`)}]`).join(`,`);e.find(n).addBack(n).each((e,n)=>{let r=$(n);t.forEach(e=>{let t=this.attr(`style-${e}`);r.attr(t)&&(r.css(e,r.attr(t)),r.removeAttr(t))})})}progress(e,t,n){let r=e.find(`.k-loading-mask`),i=f.browser,a=$.extend({},{width:`100%`,height:`100%`,top:e.scrollTop(),opacity:!1},n),o=a.opacity?`k-loading-mask k-opaque`:`k-loading-mask`;if(t){if(!r.length){let t=f.isRtl(e),n=t?`right`:`left`,r=this.scrollLeft(e),s=0;i.webkit&&t&&(s=e[0].scrollWidth-(e.width()||0)-2*r);let c=window.kendo.ui?.progress?.messages?.loading||`Loading...`;$(`<div class='${o}'><span role='alert' aria-live='polite' class='k-loading-text'>${c}</span><div class='k-loading-image'></div><div class='k-loading-color'></div></div>`).width(a.width).height(a.height).css(`top`,a.top).css(n,Math.abs(r)+s).prependTo(e)}}else r&&r.remove()}eventTarget(e){if(!f.touch)return e.target;let t=e.originalEvent?.changedTouches||e.changedTouches;return t&&t.length>0?document.elementFromPoint(t[0].clientX,t[0].clientY):e.target}createDragToScrollHandler(e,t){return new k(e,t)}createResizeObserver(e){return new j(e)}},k=class e{static{this.DRAG_THRESHOLD=5}constructor(e,t){this.isDragging=!1,this.hasDragged=!1,this.dragStartX=0,this.scrollStartLeft=0,this.currentDragTarget=null,this.scrollContainer=e,this.namespace=t.namespace,this.captureElement=t.captureElement,this.delegateSelector=t.delegateSelector,this.onDragStart=this.onDragStart.bind(this),this.onDragMove=this.onDragMove.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.preventClickOnce=this.preventClickOnce.bind(this)}attach(){this.captureElement&&(this.delegateSelector?this.scrollContainer.on(`mousedown`+this.namespace,this.delegateSelector,this.onDragStart).on(`touchstart`+this.namespace,this.delegateSelector,this.onDragStart):this.scrollContainer.on(`mousedown`+this.namespace,this.onDragStart).on(`touchstart`+this.namespace,this.onDragStart),this.bindCaptureEvents())}destroy(){this.scrollContainer.off(this.namespace),this.captureElement&&this.unbindCaptureEvents(),this.scrollContainer[0].removeEventListener(`click`,this.preventClickOnce,!0)}getClientX(e){if(e.type.indexOf(`touch`)!==-1){let t=e.originalEvent?.touches?.[0]||e.originalEvent?.changedTouches?.[0];return t?t.clientX:0}return e.clientX||e.originalEvent?.clientX||0}preventClickOnce(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),this.scrollContainer[0].removeEventListener(`click`,this.preventClickOnce,!0)}onDragStart(e){let t=$(e.currentTarget);t.length&&(this.isDragging=!0,this.hasDragged=!1,this.currentDragTarget=t[0],this.dragStartX=this.getClientX(e),this.scrollStartLeft=t[0].scrollLeft,t.css(`cursor`,`grabbing`),t.css(`user-select`,`none`))}onDragMove(t){if(!this.isDragging||!this.currentDragTarget)return;let n=this.getClientX(t),r=this.dragStartX-n;!this.hasDragged&&Math.abs(r)>=e.DRAG_THRESHOLD&&(this.hasDragged=!0),this.hasDragged&&(t.preventDefault(),this.currentDragTarget.scrollLeft=this.scrollStartLeft+r)}onDragEnd(){if(this.isDragging){if(this.currentDragTarget){let e=$(this.currentDragTarget);e.css(`cursor`,``),e.css(`user-select`,``)}this.hasDragged&&this.scrollContainer[0].addEventListener(`click`,this.preventClickOnce,!0),this.isDragging=!1,this.hasDragged=!1,this.currentDragTarget=null}}bindCaptureEvents(){this.captureElement&&$(document).on(`mousemove`+this.namespace,this.onDragMove).on(`touchmove`+this.namespace,this.onDragMove).on(`mouseup`+this.namespace,this.onDragEnd).on(`touchend`+this.namespace,this.onDragEnd)}unbindCaptureEvents(){$(document).off(this.namespace)}};let A=typeof ResizeObserver<`u`;var j=class{static supported(){return A}constructor(e){this.onResize=e=>{this.resizeCallback&&this.resizeCallback()};let t=e.element;this.element=t instanceof $?t[0]:t,this.resizeCallback=e.onResize,this.debounceTime=e.debounceTime??50,this.observeOptions=e.observeOptions||{},this.resizeObserver=null,this.debounceResize=null,this.initResizeObserver()}initResizeObserver(){this.debounceResize=g.throttle(this.onResize.bind(this),this.debounceTime),A&&(this.resizeObserver=new ResizeObserver(this.debounceResize),this.resizeObserver.observe(this.element,this.observeOptions))}destroy(){this.destroyResizeObserver(),this.element=null}destroyResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect(),this.debounceResize&&this.debounceResize.cancel(),this.resizeObserver=null,this.debounceResize=null,this.resizeCallback=null}};let M=new O,N=new class{constructor(){this.overrides={},this._hasOverrides=!1,this.registry=new WeakMap,this._tokenCounter=0,this._activeContexts=new Map,this._contextOrder=[]}setIcons(e){let t=Object.keys(e);for(let n=0;n<t.length;n++){let r=t[n],i=e[r];if(typeof i==`string`||this.isSVGIcon(i))this.overrides[r]=i;else if(typeof i==`object`&&i){(!this.overrides[r]||this.isSVGIcon(this.overrides[r])||typeof this.overrides[r]==`string`)&&(this.overrides[r]={});let e=Object.keys(i);for(let t=0;t<e.length;t++)this.overrides[r][e[t]]=i[e[t]]}}this._hasOverrides=!0}beginInit(e,t){let n=++this._tokenCounter;return this._activeContexts.set(n,e),this._contextOrder.push(n),t&&this.registerElement(t,e),n}registerElement(e,t){let n=this._contextOrder.length>0?this._contextOrder[0]:null,r=n===null?t:this._activeContexts.get(n);this.registry.set(e,{root:r,self:t})}finalizeContext(e){this._activeContexts.delete(e);let t=this._contextOrder.indexOf(e);t!==-1&&this._contextOrder.splice(t,1)}resolve(e,t){if(!this._hasOverrides)return null;let n;if(this._contextOrder.length>0){n=[];for(let e=0;e<this._contextOrder.length;e++)n.push(this._activeContexts.get(this._contextOrder[e]))}else if(t){let e=this.registry.get(t)||this._findAncestorContext(t);e&&(n=e.root===e.self?[e.root]:[e.root,e.self])}if(n)for(let t=0;t<n.length;t++){let r=this.overrides[n[t]];if(r&&!this.isSVGIcon(r)&&typeof r!=`string`){let t=r[e];if(t)return t}}let r=this.overrides[e];return r&&(this.isSVGIcon(r)||typeof r==`string`)?r:null}reset(){this.overrides={},this._hasOverrides=!1,this._activeContexts.clear(),this._contextOrder=[],this._tokenCounter=0}_findAncestorContext(e){let t=e.parentElement;for(;t;){let e=this.registry.get(t);if(e)return e;t=t.parentElement}}isSVGIcon(e){return typeof e==`object`&&!!e&&`name`in e&&`viewBox`in e&&`content`in e}};var P;(function(e){e.BLAZOR=`BLAZOR`,e.DPL=`DPL`,e.JM=`JM`,e.KENDOUIANGULAR=`KENDOUIANGULAR`,e.KENDOUICOMPLETE=`KENDOUICOMPLETE`,e.KENDOUIMVC=`KENDOUIMVC`,e.KENDOUIREACT=`KENDOUIREACT`,e.KENDOUIVUE=`KENDOUIVUE`,e.MAUI=`MAUI`,e.RCAJAX=`RCAJAX`,e.RCWF=`RCWF`,e.RCWPF=`RCWPF`,e.REPORTING=`REPORTING`,e.REPORTSERVER=`REPORTSERVER`,e.UIASPCORE=`UIASPCORE`,e.UIXAM=`UIXAM`,e.WINUI=`WINUI`})(P||={}),Object.freeze({[P.BLAZOR]:`Telerik UI for Blazor`,[P.DPL]:`Telerik Document Processing`,[P.JM]:`Telerik JustMock`,[P.KENDOUIANGULAR]:`Kendo UI for Angular`,[P.KENDOUICOMPLETE]:`Kendo UI for jQuery`,[P.KENDOUIMVC]:`Telerik UI for ASP.NET MVC`,[P.KENDOUIREACT]:`KendoReact`,[P.KENDOUIVUE]:`Kendo UI for Vue`,[P.MAUI]:`Telerik UI for .NET MAUI`,[P.RCAJAX]:`Telerik UI for ASP.NET AJAX`,[P.RCWF]:`Telerik UI for WinForms`,[P.RCWPF]:`Telerik UI for WPF`,[P.REPORTING]:`Telerik Reporting`,[P.REPORTSERVER]:`Telerik Report Server`,[P.UIASPCORE]:`Telerik UI for ASP.NET Core`,[P.UIXAM]:`Telerik UI for Xamarin`,[P.WINUI]:`Telerik UI for WinUI`});function ee(e){return Math.floor(e.getTime()/1e3)}function te(e,t){let n=new Date(1e3*e);return n.setDate(n.getDate()+t),ee(n)}function F(){return ee(new Date)}function ne(e){let t=function(e){if(typeof atob==`function`)return atob(e);if(typeof Buffer==`function`)return Buffer.from(e,`base64`).toString(`utf8`);throw Error(`atob is undefined`)}(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function re(e){return ne(e.replace(/-/g,`+`).replace(/_/g,`/`))}function I(e){return new Date(1e3*e)}function L(e,t){let n=I(t);return e>new Date(n.getFullYear(),n.getMonth(),n.getDate()+1).getTime()/1e3}function ie(e,t){let n=[];return e.licenses?.length>0?n=e.licenses.map(e=>function(e){let t=e.split(`.`)[1],n=String.fromCharCode(...re(t));return JSON.parse(n)}(e)):e.products?.length>0&&(n=e.products.map(t=>({type:t.trial?`trial`:`perpetual`,code:t.code,expiration:t.licenseExpirationDate,licenseId:null,userId:e.userId}))),function(e,t){let n=t.filter(e=>e.type!==`usage`).filter(t=>e.productCode===t.code||e.redistributedBy?.includes(t.code)||e.productCodes?.includes(t.code)).sort((e,t)=>t.expiration-e.expiration);return n.find(e=>e.type===`subscription`&&!L(F(),e.expiration))||n.find(t=>t.type===`perpetual`&&!L(e.publishDate,t.expiration))||n.find(e=>e.type===`subscription`&&!L(te(F(),10),e.expiration))||n.find(e=>e.type===`trial`&&!L(F(),e.expiration))||n.find(e=>e.type===`subscription`)||n.find(e=>e.type===`perpetual`)||n.find(e=>e.type===`trial`)}(t,n)}let ae=e=>e.productCode||e.productCodes[0],oe=Object.freeze({name:`key`,content:`
        <svg
            width="32"
            height="32"
            viewBox="0 0 32 32"
            fill="none"
            xmlns="http://www.w3.org/2000/svg"
        >
            <path
            fillRule="evenodd"
            clipRule="evenodd"
            d="M22.702 2.1821C24.3149 2.51082 25.8077 3.27291 27.0199 4.38645C28.2321 5.49999 29.1179 6.92286 29.582 8.5021C30.012 9.9501 30.076 11.4821 29.768 12.9621C29.3228 14.9898 28.2025 16.8063 26.5904 18.1143C24.9783 19.4223 22.9699 20.1443 20.894 20.1621C20.018 20.1621 19.146 20.0361 18.308 19.7821L16.708 21.6581L15.95 22.0081H14V25.0081L13 26.0081H10V29.0081L9 30.0081H3L2 29.0081V24.3941L2.292 23.6881L12.24 13.7401C11.9577 12.8308 11.8226 11.8821 11.84 10.9301C11.8582 9.59817 12.1701 8.28666 12.7533 7.08907C13.3365 5.89147 14.1767 4.83728 15.214 4.00164C16.2514 3.166 17.4603 2.56949 18.7546 2.25464C20.0489 1.93978 21.3967 1.91633 22.702 2.1821ZM25.338 16.5821C26.5944 15.5647 27.4681 14.1509 27.816 12.5721L27.824 12.5821C28.0718 11.4277 28.0272 10.2297 27.6943 9.09691C27.3614 7.96412 26.7507 6.93248 25.9177 6.09572C25.0847 5.25896 24.0558 4.64361 22.9246 4.30557C21.7933 3.96753 20.5955 3.91753 19.44 4.1601C17.8816 4.506 16.4837 5.36334 15.4688 6.59561C14.454 7.82789 13.8806 9.36426 13.84 10.9601C13.82 11.8721 13.98 12.7761 14.318 13.6201L14.098 14.7061L4 24.8081V28.0081H8V25.0081L9 24.0081H12V21.0081L13 20.0081H15.49L17.242 17.9761L18.364 17.6961C19.1728 18.0121 20.0337 18.1736 20.902 18.1721C22.5181 18.1597 24.082 17.5991 25.338 16.5821ZM23.662 11.1181C23.8197 10.9002 23.9318 10.6527 23.9916 10.3905C24.0515 10.1283 24.0578 9.85665 24.0103 9.59192C23.9627 9.32718 23.8622 9.07476 23.7148 8.84975C23.5675 8.62474 23.3762 8.43177 23.1526 8.28238C22.9289 8.133 22.6774 8.03026 22.4131 7.98033C22.1488 7.93039 21.8771 7.93428 21.6144 7.99176C21.3516 8.04925 21.1031 8.15914 20.8838 8.31487C20.6645 8.4706 20.4789 8.66896 20.338 8.8981C20.067 9.33887 19.9774 9.86752 20.088 10.373C20.1985 10.8784 20.5007 11.3214 20.931 11.6087C21.3613 11.8961 21.8862 12.0055 22.3954 11.914C22.9047 11.8226 23.3587 11.5373 23.662 11.1181Z"
            fill="black"
            />
            <path
            d="M23.1299 16.0186L31.1387 31.0273L31.0068 31.25H14.9932L14.8604 31.0273L22.8955 16.0186H23.1299Z"
            fill="#FFC000"
            stroke="black"
            strokeWidth="1.5"
            />
            <rect x="22.25" y="21.2686" width="1.5" height="5" rx="0.75" fill="black" />
            <path
            d="M24 28.2686C24 27.7163 23.5523 27.2686 23 27.2686C22.4479 27.2687 22 27.7164 22 28.2686C22 28.8207 22.4479 29.2684 23 29.2686C23.5523 29.2686 24 28.8208 24 28.2686Z"
            fill="black"
            />
        </svg>
    `}),se=Object.freeze({name:`trial-tag`,content:`
        <svg
            width="38"
            height="38"
            viewBox="0 0 38 38"
            fill="none"
            xmlns="http://www.w3.org/2000/svg"
        >
            <g clipPath="url(#clip0)">
            <path
                d="M24.9056 7.60146L34.4998 10.1722L31.9299 19.7659L13.7653 30.2532L6.7419 18.0883L24.9056 7.60146Z"
                stroke="black"
                strokeWidth="1.75"
            />
            <path
                d="M13.0913 19.7635L15.4762 23.8942L14.6279 24.384L12.2431 20.2533L13.0913 19.7635ZM14.3623 19.0297L14.7473 19.6964L11.3769 21.6423L10.992 20.9756L14.3623 19.0297ZM14.8475 18.7496L16.388 17.8602C16.7038 17.6778 17.0025 17.5684 17.2841 17.532C17.5675 17.4944 17.8242 17.5328 18.0542 17.6472C18.2841 17.7616 18.4772 17.954 18.6333 18.2244C18.7611 18.4457 18.833 18.6576 18.8491 18.8602C18.866 19.0598 18.8369 19.2518 18.7619 19.4364C18.6876 19.6179 18.5778 19.7923 18.4322 19.9596L18.2446 20.257L16.9055 21.0301L16.5166 20.3695L17.5124 19.7946C17.6618 19.7083 17.7704 19.6103 17.8381 19.5006C17.9059 19.3909 17.9371 19.2745 17.9317 19.1516C17.9281 19.0275 17.8903 18.9031 17.8183 18.7782C17.7418 18.6458 17.6512 18.5456 17.5463 18.4775C17.4415 18.4095 17.3242 18.3788 17.1944 18.3857C17.0647 18.3925 16.9242 18.4395 16.7729 18.5269L16.0835 18.9249L18.0834 22.3889L17.2323 22.8803L14.8475 18.7496ZM19.5417 21.547L17.5367 20.2496L18.4328 19.7247L20.4294 20.9815L20.4523 21.0212L19.5417 21.547ZM19.4746 16.0781L21.8595 20.2088L21.0112 20.6986L18.6264 16.5679L19.4746 16.0781ZM22.4103 15.3251L23.2638 19.398L22.3588 19.9205L21.5088 14.9037L22.0847 14.5712L22.4103 15.3251ZM25.3207 18.2105L22.2174 15.4365L21.7187 14.7825L22.3003 14.4467L26.2285 17.6864L25.3207 18.2105ZM24.3818 16.7023L24.7668 17.369L22.5851 18.6286L22.2002 17.9619L24.3818 16.7023ZM28.8837 15.2683L29.267 15.9321L27.1874 17.1327L26.8041 16.4689L28.8837 15.2683ZM25.0778 12.8432L27.4626 16.9739L26.6115 17.4652L24.2267 13.3345L25.0778 12.8432Z"
                fill="black"
            />
            <circle
                cx="30.1049"
                cy="12.7084"
                r="1.12128"
                transform="rotate(15 30.1049 12.7084)"
                fill="black"
            />
            </g>
            <path
            d="M27.6201 19.7998L35.6016 34.7578L35.499 34.9316H19.542L19.4385 34.7578L27.4463 19.7998H27.6201Z"
            fill="#FFC000"
            stroke="black"
            strokeWidth="1.6"
            />
            <rect x="26.7705" y="25" width="1.5" height="5" rx="0.75" fill="black" />
            <path
            d="M28.5205 32C28.5205 31.4477 28.0728 31 27.5205 31C26.9684 31.0002 26.5205 31.4478 26.5205 32C26.5205 32.5522 26.9684 32.9998 27.5205 33C28.0728 33 28.5205 32.5523 28.5205 32Z"
            fill="black"
            />
            <defs>
            <clipPath id="clip0">
                <rect
                width="30"
                height="31.1538"
                fill="white"
                transform="translate(8.06323) rotate(15)"
                />
            </clipPath>
            </defs>
        </svg>
    `}),ce=Object.freeze({name:`recurring-payment`,content:`
        <svg
            width="32"
            height="32"
            viewBox="0 0 32 32"
            fill="none"
            xmlns="http://www.w3.org/2000/svg"
        >
            <path
            d="M27.8295 9.38659C28.8049 12.1653 28.7404 15.1391 27.774 17.7996C26.8014 20.4767 24.9215 22.8356 22.2691 24.367C19.7765 25.8061 16.9908 26.2908 14.3393 25.9323C11.6293 25.5682 9.06228 24.3215 7.08577 22.3155L8.23679 21.1826C9.95578 22.9294 12.1925 24.0142 14.5527 24.333C16.8583 24.6438 19.2821 24.2206 21.457 22.965C23.7719 21.6284 25.4118 19.5739 26.2565 17.2495C27.0643 15.0253 27.1474 12.5486 26.3976 10.2107L24.951 11.0459L25.5942 7.15112L29.2888 8.54145L27.8284 9.38462L27.8295 9.38659Z"
            fill="black"
            />
            <path
            fillRule="evenodd"
            clipRule="evenodd"
            d="M16.3594 8.08301C17.1842 8.16959 17.8382 8.41741 18.3281 8.8252C18.8135 9.2331 19.1263 9.78023 19.2607 10.4639L17.2939 10.6875C17.1732 10.1497 16.8607 9.78518 16.3594 9.59375V12.2617C17.6035 12.5557 18.4514 12.9408 18.9004 13.4102C19.3516 13.8819 19.5771 14.4863 19.5771 15.2246C19.5771 16.0494 19.2949 16.7425 18.7275 17.3076C18.1601 17.8728 17.3712 18.2233 16.3594 18.3623V19.6387H15.2334V18.3779C14.3448 18.2822 13.6246 17.9934 13.0664 17.5059C12.5081 17.0182 12.155 16.3275 12 15.4365L14.0127 15.2266C14.0947 15.5912 14.2497 15.9036 14.4775 16.168C14.7053 16.4321 14.9555 16.6218 15.2334 16.7402V13.8799C14.2264 13.6247 13.4906 13.2395 13.0234 12.7246C12.554 12.2073 12.3164 11.5801 12.3164 10.8418C12.3165 10.0946 12.5834 9.46575 13.1143 8.95996C13.6452 8.45184 14.3516 8.16053 15.2334 8.08301V7C15.6731 7 15.9197 7 16.3594 7V8.08301ZM16.3574 16.8535H16.3594C16.7467 16.7783 17.0661 16.6149 17.3076 16.3643C17.5537 16.1113 17.6738 15.8147 17.6738 15.4707C17.6738 15.1677 17.5715 14.9033 17.3643 14.6846C17.1615 14.4636 16.8267 14.2943 16.3574 14.1758V16.8535ZM15.2334 9.56836C14.9304 9.66408 14.6911 9.82132 14.5156 10.04C14.3379 10.2588 14.252 10.5004 14.252 10.7646C14.252 11.0062 14.3314 11.2301 14.4932 11.4375C14.655 11.6424 14.9038 11.8113 15.2363 11.9365V9.56836H15.2334Z"
            fill="black"
            />
            <path
            d="M2.71127 18.5075L4.18352 17.6575C3.21672 14.9028 3.27173 11.9581 4.21167 9.31563C5.17535 6.60942 7.06671 4.22018 9.74281 2.67513C12.0972 1.31581 14.709 0.807832 17.2232 1.05612C19.8041 1.3106 22.2798 2.36266 24.2693 4.10853L23.7361 4.71636L23.2029 5.32418C23.1532 5.27918 23.1016 5.23531 23.0511 5.19342C21.3484 3.75295 19.2504 2.88549 17.0678 2.66937C14.8802 2.45355 12.6065 2.89529 10.5561 4.07914C8.2194 5.42821 6.56974 7.50687 5.7328 9.85834C4.94555 12.068 4.87307 14.5175 5.61235 16.8326L6.69304 16.2087L6.98491 16.4014L6.40585 19.8979L2.71127 18.5075Z"
            fill="black"
            />
            <path
            d="M23.0996 15.7998L31.0811 30.7578L30.9785 30.9316H15.0215L14.918 30.7578L22.9258 15.7998H23.0996Z"
            fill="#FFC000"
            stroke="black"
            strokeWidth="1.6"
            />
            <rect x="22.25" y="21" width="1.5" height="5" rx="0.75" fill="black" />
            <path
            d="M24 28C24 27.4477 23.5523 27 23 27C22.4479 27.0002 22 27.4478 22 28C22 28.5522 22.4479 28.9998 23 29C23.5523 29 24 28.5523 24 28Z"
            fill="black"
            />
        </svg>
    `});var le=class{constructor(e,t,n,r){this.productName=e,this.severity=`WARN`,this.code=`TKL201`,this.notificationIcon=oe,this.message=`No Telerik and Kendo UI License found.
  To download a license key file, visit https://prgress.co/3PwQMKZ`,this.notificationMessage=`License key missing for ${e} v${n}.  A license key is required for both paid and trial usage. Learn <a href="${r}">how to set up a license key</a>.`,this.notificationTitle=`License key missing for ${e} v${n}.`,this.notificationBody=`A license key is required for both paid and trial usage.`,this.callToAction={link:`https://www.telerik.com/download?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=no_license_key_found`,message:`Start Free Trial`}}},ue=class{constructor(e,t,n,r){this.productName=e,this.severity=`WARN`,this.code=`TKL202`,this.notificationIcon=oe,this.message=`${e} is not listed in your current license file.\n  Learn more about ${e} licensing at ${r}`,this.notificationMessage=`No license found for ${e} v${n}.  Access to the latest updates and support requires a <a href="${r}">valid license</a>.`,this.notificationTitle=`No license found for ${e} v${n}`,this.notificationBody=`To use this product and access updates and support you need to buy and install a valid license.`,this.callToAction={link:`https://www.telerik.com/purchase.aspx?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=no_license_key_current_product`,message:`Buy Now`}}},de=class{constructor(e,t,n,r){this.productName=e,this.severity=`WARN`,this.code=`TKL203`,this.notificationIcon=se,this.message=`Your trial has expired ${r} day(s) ago.\n  Thank you for trying out ${e}, we hope you enjoyed your trial period.\n  To continue using our product, consider upgrading to a commercial license: https://prgress.co/3C9mr1M`,this.notificationMessage=`Your trial license for ${e} v${n} has expired ${r} ago. To continue using our product, consider upgrading to a commercial license. Learn more about <a href="https://prgress.co/3PwQMdX">${e} licensing</a>.`,this.notificationTitle=`Your trial license for ${e} has expired.`,this.notificationBody=`To continue using the product you need to buy a subscription.`,this.callToAction={link:`https://www.telerik.com/purchase.aspx?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=trial_expired`,message:`Buy Now`}}},fe=class{constructor(e,t,n,r,i,a){this.productName=e,this.severity=`WARN`,this.code=`TKL204`,this.notificationIcon=oe;let o=r?` version ${r}`:``;this.message=`Your current license has expired on ${n.toLocaleDateString()} and is not valid for ${e}${o}. The product was published on ${i.toLocaleDateString()}.\n  Renew your license at https://prgress.co/3Px9m5F`,this.notificationMessage=`Your license is not valid for ${e} v${r}. To continue using the product, install a <a href="${a}">valid license</a>. Renew <a href="https://prgress.co/3PwQNi1">your license</a> and download a new license key.`,this.notificationTitle=`Your license doesn't cover ${e} v${r}`,this.notificationBody=`To access the latest version and updates you need to renew your license.`,this.callToAction={link:`https://www.telerik.com/account/your-licenses?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=perpertual_newer_version`,message:`Renew Now`}}},pe=class{constructor(e,t,n){this.productName=e,this.severity=`WARN`,this.code=`TKL204`,this.notificationIcon=ce,this.message=`Your ${e} subscription has expired on ${n.toLocaleDateString()}. To continue using the product, please renew your subscription at https://prgress.co/3Px9m5F and download a new license key.`,this.notificationMessage=`Your ${e} subscription has expired. To continue using the product, please <a href="https://prgress.co/3PwQMut">renew your subscription</a> and download a new license key.`,this.notificationTitle=`Your ${e} subscription has expired.`,this.notificationBody=`To continue using the product you need to renew your subscription.`,this.callToAction={link:`https://www.telerik.com/account/your-licenses?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=subscription_expired`,message:`Renew Now`}}},me=class{constructor(e,t,n,r){this.productName=e,this.severity=`INFO`,this.notificationIcon=se,this.message=`Your Trial license will expire in ${-r} day(s).\n  To acquire a commercial license, visit https://prgress.co/3PyHIoH`,this.notificationTitle=`Active trial for ${e} v${n}`,this.notificationBody=`Your trial will expire in ${-r} day(s).`,this.callToAction={link:`https://www.telerik.com/purchase.aspx?utm_source=no_license_watermark&utm_campaign=${t.toLowerCase()}&utm_content=active_trial`,message:`Buy now`}}};async function he(e,t){if(typeof crypto!=`object`||typeof crypto.subtle!=`object`||typeof TextEncoder!=`function`||typeof TextDecoder!=`function`)return;let n=crypto.subtle,[r,i,a]=e.split(`.`),o=re(a),s=new TextEncoder,c=new TextDecoder,l=s.encode(`${r}.${i}`),u=c.decode(re(r));if(JSON.parse(u).typ!==`Telerik License Evidence`)throw Error(`Unknown license evidence type`);let d=await function(e){let t=ne(e.replace(`-----BEGIN PUBLIC KEY-----`,``).replace(`-----END PUBLIC KEY-----`,``).replace(/\n/gm,``));return crypto.subtle.importKey(`spki`,t,{name:`RSASSA-PKCS1-v1_5`,hash:`SHA-256`},!0,[`verify`])}(t);if(!await n.verify(d.algorithm,d,o,l))throw Error(`Invalid license evidence`)}let ge={data:`  {}  `},R=new Map,_e=new Set,ve=!0;function ye(e){let t=JSON.parse(ge.data),n=!t.scriptKey&&!t.timestamp,r=t.scriptKey&&typeof KendoLicensing>`u`,i=ae(e),a,o,s=!1;if(n||r||!(e=>(e.licenses?.length>0&&Promise.all(e.licenses?.map(e=>he(e,`-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2mnUVMmkth2x+N/ODszG
OFIYBL6NOO1XWRj1wkmecKuLziJDhFz0WQmyOjY34Ymg9pLuBA9QSWrrZuvPw40N
m0X/GBmttFmPNvca3WmJ2oKM7PpLiUU9f7Ov5WeIXnx++ts/LC/OB7FtZ+LiRgJ7
0mZnPeTogdFrASf0zSQJv4jmX840LPa6nomWeUgIVGPLLVI14Gib8Dl+nOckqCNc
kAUUk4IBF67DufRt9zQyRxg99ysakvHX2SDbdGvIBdxWxvhhmrBoeix0uSVtG2gm
jdvSqlPJVdvMbk1Xe2+SUldJPrxH1VrTYeRUt4yqWxy16nFJUDj9exZ202X4THkU
JQIDAQAB
-----END PUBLIC KEY-----`))).then(()=>{ve=!0}).catch(()=>{ve=!1,R.clear()}),ve))(t))a=new le(e.productName,i,e.version,e.licensingDocsUrl);else if(o=ie(t,e),o){if(o.type===`trial`){let t=function(e){let t=F()-ee(e);return Math.floor(t/86400)}(I(o.expiration));L(F(),o.expiration)?a=new de(e.productName,i,e.version,t):(a=new me(e.productName,i,e.version,t),s=!0)}else if(o.type===`perpetual`){let t=o.expiration;L(e.publishDate,t)?a=new fe(e.productName,i,I(o.expiration),e.version,I(e.publishDate),e.licensingDocsUrl):s=!0}else if(o.type===`subscription`){let n=o.expiration;o.type===`subscription`&&(n=te(n,10)),t.timestamp&&L(t.timestamp,n)?a=new pe(e.productName,i,I(o.expiration)):s=!0}}else a=new ue(e.productName,i,e.version,e.licensingDocsUrl);let c=o,l=c?.expiration?I(c.expiration):void 0;return{isLicenseValid:s,licenseType:o?.type,licenseProductCode:c?.code,expiration:l,message:a}}function be(e){if(R.has(e.name))return R.get(e.name);let{isLicenseValid:t,message:n}=ye(e),r=ae(e);return n&&!_e.has(r)&&(function(e,t){if(typeof console==`object`){let r=`[${e.severity}][Telerik and Kendo UI Licensing]`+(n?` ${n}:`:``)+` ${t.productName}`,i=typeof console.group==`function`;i?console.group(r):console.warn(r),console.warn(e.message),i&&console.groupEnd()}var n}(n,e),_e.add(r)),R.set(e.name,t),t}let xe=null;try{xe=Object.freeze(JSON.parse(`{"productName":"Kendo UI","productCode":"KENDOUICOMPLETE","redistributedBy":["KENDOUI","UIASPCORE","KENDOMVC","KENDOUIMVC"],"licensingDocsUrl":"https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/licensing/activation-errors-and-warnings","name":"@progress/kendo-ui","version":"2026.3.812","publishDate":1786524915,"productCodes":["KENDOUICOMPLETE","KENDOUI","UIASPCORE","KENDOMVC","KENDOUIMVC"]}`))}catch{xe=Object.freeze({name:`@progress/kendo-ui`,productName:`Kendo UI for jQuery`,productCode:`KENDOUICOMPLETE`,productCodes:[`KENDOUICOMPLETE`,`KENDOUI`,`UIASPCORE`,`KENDOMVC`,`KENDOUIMVC`],redistributedBy:[`KENDOUI`,`UIASPCORE`,`KENDOMVC`,`KENDOUIMVC`],publishDate:0,version:`0.0.0`,licensingDocsUrl:`https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/licensing/activation-errors-and-warnings`})}let Se=[/telerik\.com/,/progress\.com/,/stackblitz\.io/,/csb\.app/,/telerik\.io/],Ce=`system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif`;function z(e,t){Object.keys(t).forEach(n=>e.style.setProperty(n,t[n]))}function we(e){return e.replace(/\bfillRule\b/g,`fill-rule`).replace(/\bclipRule\b/g,`clip-rule`).replace(/\bstrokeWidth\b/g,`stroke-width`).replace(/\bstrokeDasharray\b/g,`stroke-dasharray`).replace(/\bstrokeLinecap\b/g,`stroke-linecap`).replace(/\bstrokeLinejoin\b/g,`stroke-linejoin`)}function Te(e){let t=document.createElement(`div`);z(t,{position:`absolute`,width:`100%`,height:`100%`,"pointer-events":`none`,top:`0`,left:`0`,right:`0`,bottom:`0`});let n=t.attachShadow({mode:`closed`}),r=document.createElement(`div`);z(r,{position:`absolute`,top:`0`,left:`0`,right:`0`,bottom:`0`,"pointer-events":`none`,"z-index":`101`,opacity:`0.12`,width:`100%`,height:`100%`,"background-image":`url('data:image/png;base64,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')`}),n.appendChild(r),e.appendChild(t),new MutationObserver(function(n){let r=n[0];r.removedNodes&&Array.from(r.removedNodes).indexOf(t)>-1&&setTimeout(()=>{e.appendChild(t)},100),r.type===`attributes`&&r.target===t&&setTimeout(()=>{t.removeAttribute(r.attributeName)},100)}).observe(e,{childList:!0,attributes:!0,subtree:!0})}function Ee(e){let t=document.createElement(`div`);t.setAttribute(`id`,`k-license-banner`);let n=we(e.notificationIcon.content||``),r=e.notificationBody||``,i=e.notificationTitle||``;i&&r.startsWith(i)&&(r=r.slice(i.length).trim());let a=e.callToAction?`<a id="k-license-cta" href="${e.callToAction.link}" target="_blank" rel="noopener noreferrer">${e.callToAction.message}</a>`:``;t.innerHTML=`
        <span id="k-license-icon">${n}</span>
        <div id="k-license-content">
            <div id="k-license-title">${i}</div>
            <div id="k-license-body">${r}</div>
        </div>
        <div id="k-license-actions">
            ${a}
            <button id="k-license-close" title="Close">
                <svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path d="M11.9309 3.1838C12.1754 2.93933 12.5712 2.93937 12.8157 3.1838C13.0601 3.4283 13.0601 3.82407 12.8157 4.06857L8.885 7.99923L12.8166 11.9309C13.0611 12.1754 13.0611 12.5721 12.8166 12.8166C12.5721 13.0611 12.1754 13.0611 11.9309 12.8166L7.99925 8.88497L4.06859 12.8166C3.8241 13.0611 3.42732 13.0611 3.18285 12.8166C2.93862 12.5721 2.93851 12.1753 3.18285 11.9309L7.11449 7.99923L3.18382 4.06857C2.93947 3.82413 2.93955 3.42829 3.18382 3.1838C3.42831 2.9393 3.82508 2.9393 4.06957 3.1838L7.99925 7.11349L11.9309 3.1838Z" fill="#212529"/>
                </svg>
            </button>
        </div>
    `,z(t,{display:`flex`,position:`fixed`,left:`50%`,transform:`translateX(-50%)`,width:`100%`,"border-left":`6px solid rgba(255, 192, 0, 1)`,"border-top":`1px solid #00000029`,"border-right":`1px solid #00000029`,"border-bottom":`1px solid #00000029`,"background-color":`#ffffff`,"box-shadow":`0px 4px 5px 0px #0000000A, 0px 2px 4px 0px #00000008`,"font-size":`14px`,"font-weight":`400`,"line-height":`20px`,color:`#1E1E1E`,"justify-content":`center`,"z-index":`2000`,"box-sizing":`border-box`});let o=t.querySelector(`#k-license-icon`);z(o,{display:`flex`,"flex-shrink":`0`});let s=t.querySelector(`#k-license-content`);z(s,{display:`flex`,"flex-direction":`column`,gap:`4px`}),z(t.querySelector(`#k-license-title`),{"font-family":Ce,"font-weight":`700`,"font-size":`14px`,"line-height":`142%`,"font-style":`Bold`,"letter-spacing":`0px`,"vertical-align":`middle`,"text-align":`left`}),z(t.querySelector(`#k-license-body`),{"font-family":Ce,"font-weight":`400`,"font-size":`14px`,"line-height":`20px`,"letter-spacing":`0px`,"vertical-align":`middle`,"text-align":`left`});let c=t.querySelector(`#k-license-cta`);c&&(z(c,{display:`inline-flex`,border:`none`,"border-radius":`4px`,"background-color":`#eb0249`,color:`#ffffff`,padding:`4px 8px`,"white-space":`nowrap`,"text-decoration":`none`,"font-family":Ce,cursor:`pointer`,position:`relative`,transition:`background-color 0.2s ease-in-out`,outline:`none`}),c.addEventListener(`mouseenter`,function(){c.style.setProperty(`background-color`,`#b90138`)}),c.addEventListener(`mouseleave`,function(){c.style.setProperty(`background-color`,`#eb0249`)}));let l=t.querySelector(`#k-license-actions`);z(l,{display:`flex`,"align-items":`center`,gap:`16px`});let u=t.querySelector(`#k-license-close`);z(u,{display:`inline-flex`,border:`none`,"border-radius":`4px`,padding:`4px`,"background-color":`transparent`,cursor:`pointer`,outline:`none`,transition:`background-color 0.2s ease-in-out`}),u.addEventListener(`mouseenter`,function(){u.style.setProperty(`background-color`,`#3d3d3d14`)}),u.addEventListener(`mouseleave`,function(){u.style.setProperty(`background-color`,`transparent`)});let d=window.matchMedia(`(max-width: 499px)`),f=window.matchMedia(`(max-width: 767px)`),p=function(){let e=d.matches,n=f.matches,r=!n;z(t,{top:e||n?`0`:`16px`,"max-width":r?`768px`:`none`,"border-radius":r?`6px`:`0`,"flex-direction":e?`column`:`row`,"align-items":e?`flex-start`:`center`,padding:e?`12px`:`0`}),z(o,{"align-self":e?`flex-start`:`center`,padding:e?`0 0 12px 0`:`9px 12px`}),z(s,{flex:e?`none`:`1`,padding:e?`0 0 12px 0`:`12px`}),z(l,{padding:e?`0`:`9px 12px`,"margin-left":e?`0`:`auto`,width:e?`100%`:`auto`}),e?z(u,{position:`absolute`,top:`12px`,right:`12px`}):(z(u,{position:`relative`}),u.style.removeProperty(`top`),u.style.removeProperty(`right`))};return p(),d.addEventListener(`change`,p),f.addEventListener(`change`,p),u.addEventListener(`click`,function(){d.removeEventListener(`change`,p),f.removeEventListener(`change`,p),t.hidden=!0}),t}function De(e){document.querySelector(`#k-license-banner`)||document.body.appendChild(Ee(e))}function Oe(){return Se.some(e=>e.test(window.location.hostname))}let ke=xe;function Ae(e){if(Oe())return;let t=window._wrappersMetadata,{message:n}=ye(t||ke),r=be(t||ke);!n&&r||(n.severity!==`INFO`&&Te(e),De(n))}let B=[`themeColor`,`fillMode`,`shape`,`size`,`rounded`,`positionMode`],je=`aria-labelledby`,Me=`aria-label`;var V=class e extends C{static call(t,n,r){e.fn.init.call(t,n,r)}static apply(t,n){e.fn.init.apply(t,n)}constructor(e,t){super(),this._features=[],this._iconContextToken=0,e!==void 0&&this.init(e,t)}init(e,t){let n=this;n._showWatermarkOverlay=Ae;let r=(this.options?.name||``).toLowerCase(),i=_.getConstructor();n.element=i(e).handler(n),r&&(n._iconContextToken=N.beginInit(r,n.element[0])),C.fn.init.call(n);let a=t?t.dataSource:null,o;t&&(o=(n.componentTypes||{})[t.componentType]),a&&(t=i.extend({},t,{dataSource:{}}));let s=t?.features,c=n.options?.features,l=s??c??[];t&&delete t.features,t=n.options=i.extend(!0,{},n.options,n.defaults,o||{},t),a&&(t.dataSource=a),t.features=l,n._features=l,n._validateFeatures(l);for(let e=0;e<l.length;e++)l[e].setup(n);let u=M.attr(`role`);n.element.attr(u)||n.element.attr(u,(t.name||``).toLowerCase()),n.element.data(`kendo`+t.prefix+t.name,n),n.bind(n.events,t)}endInit(){if(this._iconContextToken){let e=this._iconContextToken;this._iconContextToken=0,N.finalizeContext(e)}}_renderWithIconContext(e){let t=(this.options?.name||``).toLowerCase();if(!t)return e();let n=N.beginInit(t,this.element?.[0]),r=e();return N.finalizeContext(n),r}_hasBindingTarget(){return!!this.element[0].kendoBindingTarget}_tabindex(e){e||=this.wrapper;let t=this.element,n=`tabindex`,r=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(r)?0:r)}setOptions(e){this._clearCssClasses(e),this._setEvents(e),_.getConstructor().extend(this.options,e),this._applyCssClasses()}_setEvents(e){let t=this,n=0,r=t.events.length,i;for(;n<r;n++)i=t.events[n],t.options[i]&&e[i]&&(t.unbind(i,t.options[i]),t._events&&t._events[i]&&delete t._events[i]);t.bind(t.events,e)}resize(e){let t=this.getSize(),n=this._size;(e||(t.width>0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this._size=t,this._resize(t,e),this.trigger(`resize`,t))}getSize(){return M.dimensions(this.element)}size(e){if(e)this.setSize(e);else return this.getSize()}setSize(e){}_resize(e,t){}_validateFeatures(e){let t=this.constructor.featureMap;if(!t)return;let n=this.constructor,r=n.options||n.prototype?.options;if(!r)return;let i={};for(let t=0;t<e.length;t++)i[e[t].name]=!0;for(let e in t){if(i[e])continue;let n=t[e];for(let t=0;t<n.length;t++){let i=n[t];if(this.options[i]!==void 0&&this.options[i]!==r[i])throw Error(`Option "${i}" requires the "${e}" feature. Import it and add it to the features array.`)}}}destroy(){let e=this;if(e._features)for(let t=e._features.length-1;t>=0;t--){let n=e._features[t];n.teardown&&n.teardown(e)}e.element.removeData(`kendo`+e.options.prefix+e.options.name),e.element.removeData(`handler`),e.unbind()}_destroy(){this.destroy()}_applyCssClasses(e){let t=this.__proto__.options,n=this.options,r=e||this.wrapper||this.element,i=[],a,o,s,c,u=l;if(s=this.options._altname||t.name,c=u.propertyDictionary[s],!(!u||!c)){for(a=0;a<B.length;a++)o=B[a],s=this.options._altname||t.name,(o in t||o in n)&&i.push(u.getValidClass({widget:s,propName:o,value:n[o]}));r.addClass(i.join(` `))}}_ariaLabel(e){let t=this,n=t.element,r=n.attr(`id`),i=_.getConstructor()(`label[for="`+r+`"]`),a=n.attr(Me),o=n.attr(je),s;if(e[0]!==n[0]){if(a)e.attr(Me,a);else if(o)e.attr(je,o);else if(i.length){let n=g.guid();s=i.attr(`id`)||t._generateLabelId(i,r||n),e.attr(je,s)}}}_clearCssClasses(e,t){let n=this.__proto__.options,r=this.options,i=t||this.wrapper||this.element,a,o,s,c,u=l;if(s=this.options._altname||n.name,c=u.propertyDictionary[s],!(!u||!c))for(a=0;a<B.length;a++)o=B[a],(o in n||o in r)&&e.hasOwnProperty(o)&&(o===`themeColor`?i.removeClass(u.getValidClass({widget:s,propName:o,value:r[o],fill:r.fillMode})):(o===`fillMode`&&i.removeClass(u.getValidClass({widget:s,propName:`themeColor`,value:r.themeColor,fill:r.fillMode})),i.removeClass(u.getValidClass({widget:s,propName:o,value:r[o]}))))}_generateLabelId(e,t){let n=t+`_label`;return e.attr(`id`,n),n}};V.fn=V.prototype,V.prototype.options={prefix:``},V.prototype.events=[];let Ne=`.kendoPromptBox`,H={SINGLE:`single`,MULTI:`multi`,AUTO:`auto`},Pe={send:`paper-plane`,stop:`stop`,attachment:`paperclip`},U={promptBox:`k-prompt-box`,promptBoxContent:`k-prompt-box-content`,promptBoxHeader:`k-prompt-box-header`,promptBoxAffix:`k-prompt-box-affix`,promptBoxTextarea:`k-prompt-box-textarea`,promptBoxInput:`k-prompt-box-input`,promptBoxSingleline:`k-prompt-box-singleline`,promptBoxMultiline:`k-prompt-box-multiline`,input:`k-input`,inputInner:`k-input-inner`,disabled:`k-disabled`,hidden:`k-hidden`,focus:`k-focus`,generating:`k-generating`,active:`k-active`,speechToTextButton:`k-speech-to-text-button`,fileSelectButton:`k-file-select-button`,fileBoxWrapper:`k-file-box-wrapper`,fileBoxWrapperScrollableStart:`k-file-box-wrapper-scrollable-start`,filesScroll:`k-files-scroll`,fileBox:`k-file-box`,fileInfo:`k-file-info`,fileName:`k-file-name`,fileSize:`k-file-size`,spacer:`k-spacer`},W={sendButton:`ref-promptbox-send-button`,fileSelectButton:`ref-promptbox-file-select-button`,speechToTextButton:`ref-promptbox-speech-to-text-button`,fileInput:`ref-promptbox-file-input`,attachmentsHost:`ref-promptbox-attachments-host`,attachmentRemoveButton:`ref-promptbox-attachment-remove-button`,input:`ref-promptbox-input`,header:`ref-promptbox-header`,startAffix:`ref-promptbox-start-affix`,endAffix:`ref-promptbox-end-affix`,topAffix:`ref-promptbox-top-affix`,affixSpacer:`ref-promptbox-affix-spacer`},G={valueChange:`valueChange`,input:`input`,promptAction:`promptAction`,fileSelect:`fileSelect`,fileRemove:`fileRemove`,speechToTextClick:`speechToTextClick`,speechToTextStart:`speechToTextStart`,speechToTextEnd:`speechToTextEnd`,speechToTextError:`speechToTextError`,speechToTextResult:`speechToTextResult`,focus:`focus`,blur:`blur`,inputFocus:`inputFocus`,inputBlur:`inputBlur`,multilineStateChange:`multilineStateChange`},Fe=` data-promptbox-built-in="true"`,Ie=(e,t=!1)=>{let n=``;if(e&&(n=e()),!n&&!t)return``;let r=n?``:` ${U.hidden}`;return`<div class="${U.promptBoxHeader}${r}" ${W.header}><div ${W.attachmentsHost}></div>${n}</div>`},K=e=>e?e():``,Le=(e,t=!0,n)=>{let r=t?``:` ${U.disabled}`,i={icon:n?.icon||`arrow-up`,size:n?.size||`small`,rounded:n?.rounded||`full`};return n?.fillMode&&(i.fillMode=n.fillMode),n?.themeColor&&(i.themeColor=n.themeColor),kendo.html.renderButton(`<button title="${e.actionButton}" aria-label="${e.actionButton}" aria-live="polite" class="${r}" ${W.sendButton}${Fe} type="button"></button>`,i)},Re=(e,t,n,r,i=!0,a)=>{let o=n?` multiple`:``,s=t?` accept="${t}"`:``,c=i?``:` disabled`,l=i?``:` aria-disabled="true"`,u=i?``:` ${U.disabled}`,d=r?.text||a?.fileSelectButton||`Attach file`,f={icon:r?.icon||Pe.attachment,fillMode:r?.fillMode||`clear`,size:r?.size||`small`,rounded:r?.rounded||`full`};return r?.themeColor&&(f.themeColor=r.themeColor),`${kendo.html.renderButton(`<button title="${d}" aria-label="${d}" class="${u}" ${W.fileSelectButton}${Fe} type="button"${c}${l}></button>`,f)}<input type="file" id="${e}" class="${U.hidden}" ${W.fileInput}${o}${s} />`},ze=e=>`<button class="${U.speechToTextButton}" ${W.speechToTextButton}${Fe} type="button"></button>`,Be=e=>e?.settings?._renderAffixLocation===`start`?`start`:`end`,Ve=(e,t)=>{if(!t)return``;let n=t.enable!==!1;return Re(t.fileInputId,t.accept,t.multiple,t.settings,n,e)},He=(e,t=``)=>{let n=`${t}${K(e)}`.trim();return n?`<div class="${U.promptBoxAffix}" ${W.startAffix}>${n}</div>`:``},Ue=(e,t,n=!0,r,i,a)=>{let o=K(r),s=Be(i)===`end`?Ve(e,i):``,c=n?ze(a?.speechToTextButtonSettings):``,l=t?Le(e,!0,a?.actionButtonSettings):``;return`${o}${s}${c}${l}`.trim()?`<div class="${U.promptBoxAffix}" ${W.endAffix}>
        ${o}
        ${s}
        ${c}
        ${l}
    </div>`:``},We=(e,t,n=!0,r,i,a,o)=>{let s=K(r),c=K(i),l=Ve(e,a),u=n?ze(o?.speechToTextButtonSettings):``,d=t?Le(e,!0,o?.actionButtonSettings):``,f=Be(a),p=f===`start`?l:``,m=f===`end`?l:``,h=`${p}${s}`.trim(),g=!!h;return`<div class="${U.promptBoxAffix}" ${W.endAffix}>
        ${h}
        ${g?`<div class="${U.spacer}" ${W.affixSpacer}></div>`:``}
        ${c}
        ${m}
        ${u}
        ${d}
    </div>`},Ge=e=>{let t=K(e);return t?`<div class="${U.promptBoxAffix}" ${W.topAffix}>${t}</div>`:``},Ke=(e,t,n,r,i=!0,a={})=>{let{affixConfig:o={},fileSelectButtonConfig:s,buttonSettingsConfig:c}=a,l=Ie(e,!!s),u=r===H.MULTI?Ge(o.topAffixTemplate):``,d=r===H.MULTI,f=!d&&Be(s)===`start`?Ve(t,s):``,p=d?``:He(o.startAffixTemplate,f),m=d?We(t,n,i,o.startAffixTemplate,o.endAffixTemplate,s,c):Ue(t,n,i,o.endAffixTemplate,s,c);return`${l}
        <div class="${U.promptBoxContent}">
            ${u}
            ${p}
            <span ${W.input}></span>
            ${m}
        </div>`};var qe=class{constructor(e){this.context=e}applyInitial(){let e=this.context.getOptions();this.context.getInputElement().attr(`aria-label`,e.messages?.messageBoxTitle||`Prompt input`),e.enable||this.context.wrapper.attr(`aria-disabled`,`true`),e.readonly&&this.updateInputAccessibility()}updateInputAccessibility(){let e=this.context.getOptions(),t=this.context.getInputElement();t&&(t.attr(`aria-label`,e.messages?.messageBoxTitle||`Prompt input`),e.readonly?t.attr(`aria-readonly`,`true`):t.removeAttr(`aria-readonly`),e.enable?t.removeAttr(`aria-disabled`):t.attr(`aria-disabled`,`true`))}updateWrapper(e){e.disabled!==void 0&&(e.disabled?this.context.wrapper.attr(`aria-disabled`,`true`):this.context.wrapper.removeAttr(`aria-disabled`))}},Je=class{constructor(e){this.context=e}getSendButton(){return this.context.wrapper.find(`[${W.sendButton}]`)}setLoading(e){let t=this.getSendButton(),n=this.context.getMessages(),r=this.context.getSettings();if(e){t.addClass(`${U.generating} ${U.active}`),t.attr(`title`,n.actionButtonLoading),t.attr(`aria-label`,n.actionButtonLoading);let e=t.find(`.k-icon, .k-svg-icon`);if(e.length){let t=r?.loadingIcon||`stop`;kendo.ui.icon(e,{icon:t})}}else{t.removeClass(`${U.generating} ${U.active}`),t.attr(`title`,n.actionButton),t.attr(`aria-label`,n.actionButton);let e=t.find(`.k-icon, .k-svg-icon`);if(e.length){let t=r?.icon||`arrow-up`;kendo.ui.icon(e,{icon:t})}}this.updateState()}updateState(){let e=this.getSendButton();if(this.context.isDisabled()){e.addClass(U.disabled);return}if(this.context.isLoading()){e.removeClass(U.disabled);return}this.context.hasContent()?e.removeClass(U.disabled):e.addClass(U.disabled)}updateMessages(){let e=this.getSendButton(),t=this.context.getMessages();this.context.isLoading()?(e.attr(`title`,t.actionButtonLoading),e.attr(`aria-label`,t.actionButtonLoading)):(e.attr(`title`,t.actionButton),e.attr(`aria-label`,t.actionButton))}},Ye=class{constructor(e){this.instance=null,this.context=e}init(){let e=this.context.getSpeechToTextButtonOption();if(e===!1)return;let t=this.context.wrapper.find(`[${W.speechToTextButton}], .${U.speechToTextButton}`).first();if(!t.length)return;let n={fillMode:`flat`,size:`small`,rounded:`full`,enable:!0},r=typeof e==`object`&&e?e:{},i=r.enable!==!1,a={...n,...r,messages:{start:`Start listening`,stop:`Stop listening`,...r.messages},start:e=>this.context.callbacks.onStart(e),end:e=>this.context.callbacks.onEnd(e),result:e=>this.context.callbacks.onResult(e),error:e=>this.context.callbacks.onError(e)};this.instance=new kendo.ui.SpeechToTextButton(t,a),i||this.instance.enable(!1)}enable(e){this.instance&&this.instance.enable(e)}destroy(){this.instance&&=(this.instance.destroy(),null)}};let Xe=/&/g,Ze=/</g,Qe=/"/g,$e=/'/g,et=/>/g,tt=[`http:`,`https:`],nt=new class{decode(e){let t={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`};return e.replace(/&(?:amp|lt|gt|quot|#39);/g,function(e){return t[e]})}encode(e,t){return t===!0&&(e=this.decode(e)),(``+e).replace(Xe,`&amp;`).replace(Ze,`&lt;`).replace(et,`&gt;`).replace(Qe,`&quot;`).replace($e,`&#39;`)}sanitizeLink(e){let t=``;try{let n=new URL(e,window.location.origin);if(tt.includes(n.protocol))t=e;else throw Error(`Invalid protocol`)}catch{t=`#INVALIDLINK`}return this.encode(t)}convertTextUrlToLink(e,t){return(t?e:this.encode(e)).replace(/((https?:\/\/[^\s"'<>]+)|(www\.[^\s"'<>]+))/gi,(e,t,n,r,i,a)=>{let o=a.lastIndexOf(`>`,i-1),s=a.substring(o+1,i);if(/\w+\s*=\s*["']$/.test(s))return e;let c=e.trim(),l=e.trim();/^www\./i.test(c)&&(c=`https://`+c);try{return c=new URL(c).href,`<a href="${c}" target="_blank" rel="noopener noreferrer">${l}</a>`}catch{return e}})}unescape(e){let t;try{t=window.decodeURIComponent(e)}catch{t=e.replace(/%u([\dA-F]{4})|%([\dA-F]{2})/gi,function(e,t,n){return String.fromCharCode(parseInt(`0x`+(t||n),16))})}return t}},rt=new class{caret(e,t,n){let r,i=t!==void 0;n===void 0&&(n=t),e[0]&&(e=e[0]);let a=e;if(i&&a.disabled)return[];try{if(a.selectionStart!==void 0)if(i){a.focus();let e=f.mobileOS;return e&&(e.wp||e.android)?setTimeout(()=>{a.setSelectionRange(t,n)},0):a.setSelectionRange(t,n),[t,n]}else return[a.selectionStart,a.selectionEnd];else if(document.selection){if($(a).is(`:visible`)&&a.focus(),r=a.createTextRange(),i)return r.collapse(!0),r.moveStart(`character`,t),r.moveEnd(`character`,n-t),r.select(),[t,n];{let e=r.duplicate(),t,n;return r.moveToBookmark(document.selection.createRange().getBookmark()),e.setEndPoint(`EndToStart`,r),t=e.text.length,n=t+r.text.length,[t,n]}}}catch{return[]}return[]}antiForgeryTokens(){let e={},t=$(`meta[name=csrf-token],meta[name=_csrf]`).attr(`content`),n=$(`meta[name=csrf-param],meta[name=_csrf_header]`).attr(`content`);return $(`input[name^='__RequestVerificationToken']`).each(function(){e[this.name]=this.value}),n!==void 0&&t!==void 0&&(e[n]=t),e}},it=new class{constructor(){this._fileGroupMap=this.createFileGroupMap(),this.fileSaver=document.createElement(`a`),this.downloadAttribute=`download`in this.fileSaver&&!f.browser.edge}createFileGroupMap(){return{audio:[`.aif`,`.iff`,`.m3u`,`.m4a`,`.mid`,`.mp3`,`.mpa`,`.wav`,`.wma`,`.ogg`,`.wav`,`.wma`,`.wpl`],video:[`.3g2`,`.3gp`,`.avi`,`.asf`,`.flv`,`.m4u`,`.rm`,`.h264`,`.m4v`,`.mkv`,`.mov`,`.mp4`,`.mpg`,`.rm`,`.swf`,`.vob`,`.wmv`],image:[`.ai`,`.dds`,`.heic`,`.jpe`,`jfif`,`.jif`,`.jp2`,`.jps`,`.eps`,`.bmp`,`.gif`,`.jpeg`,`.jpg`,`.png`,`.ps`,`.psd`,`.svg`,`.svgz`,`.tif`,`.tiff`],txt:[`.doc`,`.docx`,`.log`,`.pages`,`.tex`,`.wpd`,`.wps`,`.odt`,`.rtf`,`.text`,`.txt`,`.wks`],presentation:[`.key`,`.odp`,`.pps`,`.ppt`,`.pptx`],data:[`.xlr`,`.xls`,`.xlsx`],programming:`.tmp,.bak,.msi,.cab,.cpl,.cur,.dll,.dmp,.drv,.icns,.ico,.link,.sys,.cfg,.ini,.asp,.aspx,.cer,.csr,.css,.dcr,.htm,.html,.js,.php,.rss,.xhtml`.split(`,`),pdf:[`.pdf`],config:[`.apk`,`.app`,`.bat`,`.cgi`,`.com`,`.exe`,`.gadget`,`.jar`,`.wsf`],zip:[`.7z`,`.cbr`,`.gz`,`.sitx`,`.arj`,`.deb`,`.pkg`,`.rar`,`.rpm`,`.tar.gz`,`.z`,`.zip`,`.zipx`],"disc-image":[`.dmg`,`.iso`,`.toast`,`.vcd`,`.bin`,`.cue`,`.mdf`]}}get fileGroupMap(){return this._fileGroupMap}getFileGroup(e,t){let n=this._fileGroupMap,r=Object.keys(n),i=`file`;if(e===void 0||!e.length)return i;let a=e.toLowerCase();a.startsWith(`.`)||(a=`.`+a);for(let e=0;e<r.length;e+=1)if(n[r[e]].indexOf(a)>-1)return t?`file-`+r[e]:r[e];return i}getFileSizeMessage(e){let t=[`Bytes`,`KB`,`MB`,`GB`,`TB`];if(e===0)return`0 Byte`;let n=parseInt(String(Math.floor(Math.log(e)/Math.log(1024))),10);return Math.round(e/1024**n)+` `+t[n]}postToProxy(e,t,n,r){let i=$(`<form>`).attr({action:n,method:`POST`,target:r}),a=rt.antiForgeryTokens();a.fileName=t;let o=e.split(`;base64,`);a.contentType=o[0].replace(`data:`,``),a.base64=o[1];for(let e in a)Object.prototype.hasOwnProperty.call(a,e)&&$(`<input>`).attr({value:a[e],name:e,type:`hidden`}).appendTo(i);i.appendTo(`body`).submit().remove()}saveAsBlob(e,t){let n=e;if(typeof e==`string`){let t=e.split(`;base64,`),r=t[0],i=atob(t[1]),a=new Uint8Array(i.length);for(let e=0;e<i.length;e++)a[e]=i.charCodeAt(e);n=new Blob([a.buffer],{type:r})}navigator.msSaveBlob(n,t)}saveAsDataURI(e,t){let n=e;window.Blob&&e instanceof Blob&&(n=URL.createObjectURL(e)),this.fileSaver.download=t,this.fileSaver.href=n;let r=document.createEvent(`MouseEvents`);r.initMouseEvent(`click`,!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.fileSaver.dispatchEvent(r),setTimeout(function(){URL.revokeObjectURL(n)})}saveAs(e){let t=this.postToProxy.bind(this);e.forceProxy||(this.downloadAttribute?t=this.saveAsDataURI.bind(this):navigator.msSaveBlob&&(t=this.saveAsBlob.bind(this))),t(e.dataURI,e.fileName,e.proxyURL,e.proxyTarget)}};var at=class{constructor(e){this.files=[],this._dragHandler=null,this.context=e}initUpload(){let e=this.context.getOptions();if(!this.showFileSelectButton(e))return;let t=this.context.wrapper.find(`[${W.fileInput}]`);if(t.length===0)return;let n=this.getFileSelectButtonSettings(e)?.multiple!==!1,r=new kendo.ui.Upload(t,{multiple:n,async:!1,uniqueFileUids:!0,select:this.onUploadSelect.bind(this)});r?.wrapper?.addClass(U.hidden),this.uploadInstance=r}getFiles(){return[...this.files]}setFiles(e){this.files=[...e],this.renderAttachments(),this.context.callbacks.onFilesChanged()}clearFiles(){this.files=[],this.renderAttachments(),this.context.callbacks.onFilesChanged()}hasFiles(){return this.files.length>0}handleFileSelectClick(){let e=this.context.getOptions(),t=this.getFileSelectButtonSettings(e);if(!e.enable||e.readonly||t?.enable===!1)return;let n=this.uploadInstance?.element?.[0]||this.context.wrapper.find(`[${W.fileInput}]`)[0];n&&typeof n.click==`function`&&n.click()}removeAttachmentByUid(e){let t=this.files.find(t=>this.getFileUid(t)===e),n=this.files.filter(t=>this.getFileUid(t)!==e);n.length!==this.files.length&&(this.files=n,this.renderAttachments(),this.context.callbacks.onFilesChanged(),t&&this.context.callbacks.onFileRemove(t,[...this.files]))}renderAttachments(){this._destroyDragHandler();let e=this.context.getOptions(),t=this.context.wrapper.find(`[${W.header}]`),n=this.context.wrapper.find(`[${W.attachmentsHost}]`);if(n.length===0)return;if(!this.files.length){n.empty(),e.headerTemplate||t.addClass(U.hidden);return}if(t.removeClass(U.hidden),e._filesTemplate){n.html(e._filesTemplate(this.files)),this._attachDragToScroll();return}let r=`<ul class="${U.fileBoxWrapper} ${U.fileBoxWrapperScrollableStart}">`;r+=`<div class="${U.filesScroll}">`;for(let e=0;e<this.files.length;e++){let t=this.files[e],n=t?.rawFile||t,i=this.getFileUid(t),a=n?.name||t?.name||``,o=n?.size||t?.size||0,s=a.lastIndexOf(`.`)>-1?a.substring(a.lastIndexOf(`.`)).toLowerCase():``,c=it.getFileGroup(s,!0),l=it.getFileSizeMessage(o),u=kendo.ui.icon({icon:c,size:`xlarge`}),d=kendo.html.renderButton(`<button type="button" ${W.attachmentRemoveButton} data-uid="${nt.encode(i)}" aria-label="Remove attachment" title="Remove attachment"></button>`,{icon:`x-circle`,fillMode:`flat`});r+=`<li class="${U.fileBox}">`,r+=u,r+=`<div class="${U.fileInfo}">`,r+=`<span class="${U.fileName}">${nt.encode(a)}</span>`,r+=`<span class="${U.fileSize}">${nt.encode(l)}</span>`,r+=`</div>`,r+=d,r+=`</li>`}r+=`</div></ul>`,n.html(r),this._attachDragToScroll()}_attachDragToScroll(){let e=this.context.wrapper.find(`[${W.attachmentsHost}]`).find(`.`+U.filesScroll);e.length&&(this._dragHandler=M.createDragToScrollHandler(e,{namespace:`.kendoPromptBox.promptBoxFileDrag`,captureElement:this.context.wrapper}),this._dragHandler.attach())}_destroyDragHandler(){this._dragHandler&&=(this._dragHandler.destroy(),null)}destroy(){this._destroyDragHandler(),this.uploadInstance&&=(this.uploadInstance.destroy(),null)}onUploadSelect(e){e.preventDefault();let t=e.files,n=this.context.getOptions(),r=this.getFileSelectButtonSettings(n),i=this.validateFiles(t,r);i.length>0&&(this.files=[...this.files,...i],this.renderAttachments(),this.context.callbacks.onFilesChanged(),this.context.callbacks.onFileSelect(i))}validateFiles(e,t){let n=[],r=t?.restrictions;for(let t=0;t<e.length;t++){let i=e[t],a=i.rawFile||i,o=!0;if(r){if(r.allowedExtensions&&r.allowedExtensions.length>0){let e=a.name.split(`.`).pop()?.toLowerCase()||``;r.allowedExtensions.map(e=>e.toLowerCase().replace(`.`,``)).includes(e)||(o=!1)}r.maxFileSize&&a.size>r.maxFileSize&&(o=!1),r.minFileSize&&a.size<r.minFileSize&&(o=!1)}o&&n.push(i)}return n}getFileUid(e){return e?(e.uid||=g.guid(),e.uid):``}showFileSelectButton(e){return e.fileSelectButton===!0||typeof e.fileSelectButton==`object`&&e.fileSelectButton!==null}getFileSelectButtonSettings(e){if(typeof e.fileSelectButton==`object`&&e.fileSelectButton!==null)return e.fileSelectButton}};let ot={placeholder:``,actionButton:`Send prompt`,actionButtonLoading:`Stop generating`,messageBoxTitle:`Prompt input`};var st=class{constructor(e){this.inputInstance=null,this.singleRowHeight=0,this.singleLineWidth=0,this.initialHeight=0,this.minMultiRowHeight=0,this.multiline=!1,this.context=e}init(){let e=this.context.wrapper.find(`[${W.input}]`),t=this.context.getMode(),n=this.createInputElement(t);e.replaceWith(n);let r=this.context.getOptions().value||``;r&&n.val(r),this.captureInitialDimensions(),this.attachInputEvents()}getElement(){return this.inputInstance?.element||null}getValue(){return this.inputInstance?this.inputInstance.value():``}setValue(e){this.inputInstance&&this.inputInstance.value(e),this.updateAutoResize(),this.updateMultiResize()}enable(e){this.inputInstance&&this.inputInstance.enable(e)}setReadonly(e){this.inputInstance?.element&&this.inputInstance.element.prop(`readonly`,e)}focus(){this.inputInstance&&this.inputInstance.focus()}blur(){this.inputInstance?.element&&this.inputInstance.element.blur()}isMultiline(){return this.multiline}updateAutoResize(){if(this.context.getMode()!==H.AUTO||!this.inputInstance)return;let e=this.inputInstance.element;if(!e.is(`textarea`))return;let t=e[0];t.offsetHeight>0&&this.initialHeight<t.offsetHeight&&this.captureInitialDimensions(),this.multiline?(this.updateHeight(),this.shouldCollapse()&&(this.updateMultilineState(!1),e.css(`height`,``))):(t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight)&&(this.updateMultilineState(!0),this.updateHeight())}updateMultiResize(){if(this.context.getMode()!==H.MULTI||!this.inputInstance)return;let e=this.inputInstance.element;if(!e.is(`textarea`))return;let t=e[0],n=this.context.getOptions();t.offsetHeight>0&&this.initialHeight<t.offsetHeight&&this.captureInitialDimensions(),e.css(`overflow`,`hidden`),e.css(`height`,this.initialHeight+`px`);let r=t.scrollHeight,i=this.calculateMultiHeight(r,n.maxTextAreaHeight);i===n.maxTextAreaHeight&&e.css(`overflow`,``),e.css(`height`,i+`px`)}updatePlaceholder(){let e=this.context.getOptions(),t=$.extend({},ot,e.messages),n=this.resolvePlaceholder(e,t);this.inputInstance?.element&&this.inputInstance.element.attr(`placeholder`,n)}destroy(){this.inputInstance&&=(this.inputInstance.element.off(Ne),this.inputInstance.destroy(),null)}createInputElement(e){let t=this.context.getOptions(),n=$.extend({},ot,t.messages),r=t.title?`title="${t.title}"`:``,i=t.readonly?`readonly`:``,a=this.resolvePlaceholder(t,n),o;if(e===H.SINGLE)o=$(`<input type="text" class="${U.promptBoxInput} ${U.inputInner}" placeholder="${a}" autocomplete="off" ${r} ${i} />`),this.inputInstance={element:o,value:e=>{if(e===void 0)return o.val();o.val(e)},enable:e=>{o.prop(`disabled`,!e)},focus:()=>o.trigger(`focus`),destroy:()=>{}};else{let n=e===H.AUTO?1:t.rows||1;o=$(`<textarea class="${U.promptBoxTextarea} ${U.inputInner}" placeholder="${a}" rows="${n}" aria-multiline="true" ${r} ${i}></textarea>`),t.maxTextAreaHeight&&(o.css(`max-height`,t.maxTextAreaHeight+`px`),o.css(`overflow-y`,`auto`)),this.inputInstance={element:o,value:e=>{if(e===void 0)return o.val();o.val(e)},enable:e=>{o.prop(`disabled`,!e)},focus:()=>o.trigger(`focus`),destroy:()=>{}}}return o}resolvePlaceholder(e,t){return(this.context.isPlaceholderExplicit?this.context.isPlaceholderExplicit():e.placeholder!==void 0)?e.placeholder??``:t.placeholder}captureInitialDimensions(){if(this.context.getMode()===H.SINGLE||!this.inputInstance)return;let e=this.inputInstance.element;if(!e.is(`textarea`))return;let t=e[0],n=window.getComputedStyle(t),r=parseFloat(n.lineHeight)||20,i=parseFloat(n.paddingTop)||0,a=parseFloat(n.paddingBottom)||0,o=this.context.getOptions().rows||1;this.singleRowHeight=r+i+a,this.initialHeight=t.offsetHeight||this.singleRowHeight,this.singleLineWidth=t.offsetWidth,this.minMultiRowHeight=r*o+i+a}shouldCollapse(){if(!this.inputInstance||this.singleLineWidth<=0)return!1;let e=this.inputInstance.element;if(!e.is(`textarea`))return!1;let t=e[0],n=t.style.height;e.css({overflow:`hidden`,width:this.singleLineWidth+`px`,whiteSpace:`nowrap`,height:this.initialHeight+`px`});let r=t.scrollWidth<=this.singleLineWidth&&t.scrollHeight<=this.initialHeight;return e.css({overflow:``,width:``,whiteSpace:``}),n?e.css(`height`,n):e.css(`height`,``),r}updateHeight(){let e=this.context.getOptions();if(!this.inputInstance)return;let t=this.inputInstance.element;if(!t.is(`textarea`))return;let n=t[0];t.css(`overflow`,`hidden`),t.css(`height`,this.initialHeight+`px`);let r=n.scrollHeight,i=e.maxTextAreaHeight?Math.min(r,e.maxTextAreaHeight):r;i===e.maxTextAreaHeight&&t.css(`overflow`,``),t.css(`height`,i+`px`)}calculateMultiHeight(e,t){return t&&e>t?t:Math.max(this.minMultiRowHeight,e)}updateMultilineState(e){if(this.context.getMode()!==H.AUTO||this.multiline===e)return;let t=this.multiline;this.multiline=e,e?this.context.wrapper.addClass(U.promptBoxMultiline):this.context.wrapper.removeClass(U.promptBoxMultiline),this.context.callbacks.onMultilineStateChange(e,t)}attachInputEvents(){if(!this.inputInstance)return;let e=this.inputInstance.element;e.on(`input.kendoPromptBox`,()=>{this.updateAutoResize(),this.updateMultiResize(),this.context.callbacks.onInput()}),e.on(`keydown.kendoPromptBox`,e=>{this.context.callbacks.onKeyDown(e)}),e.on(`focus.kendoPromptBox`,()=>{this.context.callbacks.onFocus()}),e.on(`blur.kendoPromptBox`,()=>{this.context.callbacks.onBlur()})}};let ct=`[data-promptbox-built-in="true"]`,lt={placeholder:``,actionButton:`Send prompt`,actionButtonLoading:`Stop generating`,messageBoxTitle:`Prompt input`,fileSelectButton:`Attach file`};var ut=class e extends V{static{this.options={name:`PromptBox`,prefix:``,mode:H.AUTO,placeholder:``,value:``,enable:!0,readonly:!1,title:``,fillMode:void 0,maxTextAreaHeight:void 0,rows:1,headerTemplate:null,loading:!1,actionButton:null,fileSelectButton:!1,speechToTextButton:!0,startAffixTemplate:null,endAffixTemplate:null,topAffixTemplate:null,messages:lt}}constructor(t,n){super(t,$.extend(!0,{},e.options,n)),this.events=[G.valueChange,G.input,G.promptAction,G.fileSelect,G.fileRemove,G.speechToTextClick,G.speechToTextStart,G.speechToTextEnd,G.speechToTextError,G.speechToTextResult,G.focus,G.blur,G.inputFocus,G.inputBlur,G.multilineStateChange],this._value=``,this._loading=!1,this._readonly=!1,this._hasFocus=!1,this._fileInputId=``,this._isPlaceholderExplicit=!1,this._isPlaceholderExplicit=!!n&&Object.prototype.hasOwnProperty.call(n,`placeholder`)&&n.placeholder!==void 0,this._value=this.options.value||``,this._loading=this.options.loading||!1,this._fileInputId=`promptbox_file_`+g.guid(),this._initWrapper(),this._initInputManager(),this._initSpeechHandler(),this._initFileHandler(),this._attachEvents(),this.fileHandler.renderAttachments(),this._initAccessibilityManager(),this._initActionButtonManager(),this.bind(this.events,this.options),this.options.enable||this.enable(!1),this.options.readonly&&this.readonly(!0),this._value&&this._getMode()===H.AUTO&&this.inputManager.updateAutoResize(),this._loading?this.actionButtonManager.setLoading(!0):this.actionButtonManager.updateState()}value(e){if(e===void 0)return this._value;this._value=e,this.inputManager.setValue(e),this.actionButtonManager.updateState()}enable(e=!0){let t=this.options;t.enable=e,e?(this._readonly=!1,t.readonly=!1,this.inputManager.setReadonly(!1),this.wrapper.removeClass(U.disabled)):this.wrapper.addClass(U.disabled),this.inputManager.enable(e),this.speechHandler.enable(e),this._updateFileSelectButtonState(),this.actionButtonManager.updateState(),this.accessibilityManager.updateWrapper({disabled:!e}),this.accessibilityManager.updateInputAccessibility()}readonly(e){if(e===void 0)return this._readonly;this._readonly=e;let t=this.options;t.readonly=e,this.inputManager.setReadonly(e),this.accessibilityManager.updateInputAccessibility(),this.actionButtonManager.updateState(),this.speechHandler.enable(!e),this._updateFileSelectButtonState()}loading(e){if(e===void 0)return this._loading;this._loading=e,this.accessibilityManager.updateWrapper({loading:e}),this.actionButtonManager.setLoading(e)}focus(){this.inputManager.focus()}blur(){this.inputManager.blur()}files(e){if(e===void 0)return this.fileHandler.getFiles();this.fileHandler.setFiles(e)}clearFiles(){this.fileHandler.clearFiles()}destroy(){this._detachEvents(),this._destroyCollaborators(),super.destroy()}_destroyCollaborators(){this.fileHandler.destroy(),this.speechHandler.destroy(),this.inputManager.destroy()}setOptions(e){if(Object.prototype.hasOwnProperty.call(e,`placeholder`)&&(this._isPlaceholderExplicit=e.placeholder!==void 0),e.headerTemplate!==void 0||e.startAffixTemplate!==void 0||e.endAffixTemplate!==void 0||e.topAffixTemplate!==void 0||e.actionButton!==void 0||e.actionButtonSettings!==void 0||e.fileSelectButton!==void 0||e.speechToTextButton!==void 0||e.mode!==void 0){let t=this._value,n=this._loading,r=this.options.attachments,i=this.fileHandler.getFiles();this._detachEvents(),this._destroyCollaborators(),super.setOptions(e),this.wrapper.remove(),this._initWrapper(),this._initInputManager(),this._initSpeechHandler(),this._initFileHandler(),this._attachEvents(),i.length>0&&this.fileHandler.setFiles(i),this._initAccessibilityManager(),this._initActionButtonManager(),t&&this.value(t),n&&this.loading(!0),r&&(this.options.attachments=r,this.fileHandler.renderAttachments());return}super.setOptions(e),(e.placeholder!==void 0||e.messages?.placeholder!==void 0)&&this.inputManager.updatePlaceholder(),(e.messages?.actionButton!==void 0||e.messages?.actionButtonLoading!==void 0)&&this.actionButtonManager.updateMessages(),e.enable!==void 0&&this.enable(e.enable),e.readonly!==void 0&&this.readonly(e.readonly),e.loading!==void 0&&this.loading(e.loading)}_initInputManager(){this.inputManager=new st({wrapper:this.wrapper,getOptions:()=>this.options,isPlaceholderExplicit:()=>this._isPlaceholderExplicit,getMode:()=>this._getMode(),callbacks:{onInput:()=>this._handleInput(),onKeyDown:e=>this._handleKeyDown(e),onFocus:()=>this.trigger(G.inputFocus),onBlur:()=>this.trigger(G.inputBlur),onMultilineStateChange:(e,t)=>{this._handleAffixReorganization(e),this.trigger(G.multilineStateChange,{isMultiline:e,wasMultiline:t})}}}),this.inputManager.init()}_handleAffixReorganization(e){let t=this.wrapper.find(`[${W.startAffix}]`).first(),n=this.wrapper.find(`[${W.endAffix}]`).first();if(!(!t.length||!n.length)){if(e){if(t.hasClass(U.hidden))return;let e=t.contents().detach();if(!e.length)return;t.addClass(U.hidden),n.prepend($(`<div class="${U.spacer}" ${W.affixSpacer}></div>`)),n.prepend(e)}else{let e=n.children(`[${W.affixSpacer}]`).first();if(!e.length)return;let r=e.prevAll().detach();r.length&&t.empty().append(r),t.removeClass(U.hidden),e.remove()}this._syncFileSelectSpacer()}}_initSpeechHandler(){this.speechHandler=new Ye({wrapper:this.wrapper,getSpeechToTextButtonOption:()=>this.options.speechToTextButton,callbacks:{onStart:e=>this.trigger(G.speechToTextStart,e),onEnd:e=>this.trigger(G.speechToTextEnd,e),onResult:e=>{let t=e.alternatives?.[0]?.transcript||``;if(t){let e=this._value||``,n=e+(e?` `:``)+t;this.value(n)}this.trigger(G.speechToTextResult,{...e,transcript:t})},onError:e=>this.trigger(G.speechToTextError,e)}}),this.speechHandler.init()}_initFileHandler(){this.fileHandler=new at({wrapper:this.wrapper,getOptions:()=>this.options,callbacks:{onFilesChanged:()=>this.actionButtonManager.updateState(),onFileSelect:e=>this.trigger(G.fileSelect,{files:e}),onFileRemove:(e,t)=>this.trigger(G.fileRemove,{file:e,files:t})}}),this.fileHandler.initUpload()}_initAccessibilityManager(){this.accessibilityManager=new qe({wrapper:this.wrapper,getOptions:()=>this.options,getInputElement:()=>this.inputManager.getElement()}),this.accessibilityManager.applyInitial()}_initActionButtonManager(){this.actionButtonManager=new Je({wrapper:this.wrapper,getMessages:()=>this._getMessages(),getSettings:()=>this.options.actionButton,isDisabled:()=>{let e=this.options,t=!e.enable,n=e.readonly,r=e.actionButton?.enable===!1;return t||n||r},isLoading:()=>this._loading,hasContent:()=>!!this._value?.trim()||this.fileHandler.hasFiles()})}_getMode(){return this.options.mode||H.AUTO}_getMessages(){let e=this.options,t=e.actionButton,n=typeof e.fileSelectButton==`object`?e.fileSelectButton:null,r=$.extend({},lt,e.messages);return t?.text&&(r.actionButton=t.text),t?.loadingText&&(r.actionButtonLoading=t.loadingText),n?.text&&(r.fileSelectButton=n.text),r}_showActionButton(){return!0}_showSpeechToTextButton(){let e=this.options;return e.speechToTextButton===!0||e.speechToTextButton===null||e.speechToTextButton===void 0||typeof e.speechToTextButton==`object`&&e.speechToTextButton!==null}_showFileSelectButton(){let e=this.options;return e.fileSelectButton===!0||typeof e.fileSelectButton==`object`&&e.fileSelectButton!==null}_updateFileSelectButtonState(){let e=this.options,t=this.wrapper.find(`[${W.fileSelectButton}]`);if(!t.length)return;let n=this._getFileSelectButtonSettings();!e.enable||e.readonly||n?.enable===!1?(t.addClass(U.disabled),t.attr(`aria-disabled`,`true`)):(t.removeClass(U.disabled),t.removeAttr(`aria-disabled`))}_getFileSelectButtonSettings(){let e=this.options;if(typeof e.fileSelectButton==`object`&&e.fileSelectButton!==null)return e.fileSelectButton}_initWrapper(){let e=this.options,t=this._getMessages(),n=this._getMode(),r=``;n===H.SINGLE?r=` ${U.promptBoxSingleline}`:n===H.MULTI&&(r=` ${U.promptBoxMultiline}`);let i=this._getAppearanceClasses(),a={affixConfig:{startAffixTemplate:e.startAffixTemplate,endAffixTemplate:e.endAffixTemplate,topAffixTemplate:e.topAffixTemplate},fileSelectButtonConfig:this._getFileSelectButtonConfig(),buttonSettingsConfig:this._getButtonSettingsConfig()},o=Ke(e.headerTemplate,t,this._showActionButton(),n,this._showSpeechToTextButton(),a);this.wrapper=this.element.wrap(`<div class="${U.input}${i} ${U.promptBox}${r}"></div>`).parent(),this.wrapper.prepend(o),this._adoptCustomAffixRefs(),this._syncFileSelectSpacer(),this.element.addClass(U.hidden),this.wrapper.after(this.element)}_adoptCustomAffixRefs(){this._removeBuiltInDuplicate(this.wrapper.find(`[${W.startAffix}]`).first(),W.fileSelectButton),this._removeBuiltInDuplicate(this.wrapper.find(`[${W.startAffix}]`).first(),W.sendButton),this._removeBuiltInDuplicate(this.wrapper.find(`[${W.startAffix}]`).first(),W.speechToTextButton),this._removeBuiltInDuplicate(this.wrapper.find(`[${W.endAffix}]`).first(),W.fileSelectButton),this._removeBuiltInDuplicate(this.wrapper.find(`[${W.endAffix}]`).first(),W.sendButton),this._removeBuiltInDuplicate(this.wrapper.find(`[${W.endAffix}]`).first(),W.speechToTextButton)}_removeBuiltInDuplicate(e,t){if(!e?.length)return;let n=e.find(`[${t}]`);n.not(ct).length&&n.filter(ct).remove()}_syncFileSelectSpacer(){let e=this._getFileSelectButtonSettings(),t=this.wrapper.find(`[${W.endAffix}]`).first();if(!t.length||(t.children(`.k-spacer[data-promptbox-role="file-spacer"]`).remove(),!e?.showSpacer||e._renderAffixLocation===`start`))return;let n=t.find(`[${W.fileSelectButton}]`),r=n.not(ct).first(),i=r.length?r:n.first(),a=t.find(`[${W.speechToTextButton}], [${W.sendButton}]`).length>0;!i.length||!i.parent().is(t)||!a||i.after(`<div class="${U.spacer}" data-promptbox-role="file-spacer"></div>`)}_getAppearanceClasses(){let e=this.options;return e.fillMode?` k-input-${e.fillMode}`:``}_getFileSelectButtonConfig(){if(!this._showFileSelectButton())return;let e=this._getFileSelectButtonSettings(),t=e?.accept;return!t&&e?.restrictions?.allowedExtensions?.length&&(t=e.restrictions.allowedExtensions.map(e=>e.startsWith(`.`)?e:`.${e}`).join(`,`)),{enable:e?.enable,fileInputId:this._fileInputId,accept:t,multiple:e?.multiple,showSpacer:e?.showSpacer,settings:e}}_getButtonSettingsConfig(){let e=this.options,t=e.speechToTextButton,n=typeof t==`object`&&t?t:void 0;return{actionButtonSettings:e.actionButton||void 0,fileSelectButtonSettings:this._getFileSelectButtonSettings(),speechToTextButtonSettings:n}}isMultiline(){return this.inputManager.isMultiline()}_attachEvents(){this.wrapper.on(`click.kendoPromptBox`,`[${W.sendButton}]`,e=>{e.preventDefault(),this._handleSend()}),this.wrapper.on(`click.kendoPromptBox`,`[${W.fileSelectButton}]`,e=>{e.preventDefault(),this.fileHandler.handleFileSelectClick()}),this.wrapper.on(`click.kendoPromptBox`,`[${W.attachmentRemoveButton}]`,e=>{e.preventDefault();let t=e.currentTarget.getAttribute(`data-uid`);t&&this.fileHandler.removeAttachmentByUid(t)}),this.wrapper.on(`focusin.kendoPromptBox`,e=>{this._handleFocusIn(e)}),this.wrapper.on(`focusout.kendoPromptBox`,e=>{this._handleFocusOut(e)})}_detachEvents(){this.wrapper.off(Ne)}_handleFocusIn(e){this._hasFocus||(this._hasFocus=!0,this.wrapper.addClass(U.focus),this.trigger(G.focus))}_handleFocusOut(e){let t=e.relatedTarget;!(t&&this.wrapper[0].contains(t))&&this._hasFocus&&(this._hasFocus=!1,this.wrapper.removeClass(U.focus),this.trigger(G.blur))}_handleSend(){let e=this.options;if(!e.enable||e.readonly||e.actionButton?.enable===!1)return;if(this._loading){this.trigger(G.promptAction,{actionType:`stop`}),this.loading(!1);return}let t=this._value?.trim(),n=this.fileHandler.hasFiles();if(!t&&!n)return;let r={actionType:`send`,value:t||``,files:this.fileHandler.getFiles()};this.trigger(G.promptAction,r),this.value(``),this.clearFiles(),this.focus()}_handleInput(){let e=this._value;this._value=this.inputManager.getValue(),this.actionButtonManager.updateState(),this.trigger(G.input,{value:this._value}),e!==this._value&&this.trigger(G.valueChange,{oldValue:e,newValue:this._value})}_handleKeyDown(e){let t=this._getMode();if(e.key===`Enter`||e.which===13||e.keyCode===13){if(e.shiftKey&&t!==H.SINGLE)return;e.preventDefault(),this._loading||this._handleSend()}}};let dt=l;dt.registerPrefix(`PromptBox`,`k-input-`),dt.registerValues(`PromptBox`,[{prop:`fillMode`,values:dt.fillModeValues}]);let ft={G:`era`,y:`year`,q:`quarter`,Q:`quarter`,M:`month`,L:`month`,d:`day`,E:`weekday`,c:`weekday`,e:`weekday`,h:`hour`,H:`hour`,k:`hour`,K:`hour`,m:`minute`,s:`second`,a:`dayperiod`,t:`dayperiod`,x:`zone`,X:`zone`,z:`zone`,Z:`zone`},pt={month:{type:`months`,minLength:3,standAlone:`L`},quarter:{type:`quarters`,minLength:3,standAlone:`q`},weekday:{type:`days`,minLength:{E:0,c:3,e:3},standAlone:`c`},dayperiod:{type:`dayPeriods`,minLength:0},era:{type:`eras`,minLength:0}};var mt=class extends V{dataItems(){let e=this.dataSource;return e&&typeof e.view==`function`?e.flatView():[]}};mt.fn=mt.prototype;let q=`en-US`,ht={name:q,numberFormat:{pattern:[`-n`],decimals:2,",":`,`,".":`.`,groupSize:[3],percent:{pattern:[`-n %`,`n %`],decimals:2,",":`,`,".":`.`,groupSize:[3],symbol:`%`},currency:{name:`US Dollar`,abbr:`USD`,pattern:[`($n)`,`$n`],decimals:2,",":`,`,".":`.`,groupSize:[3],symbol:`$`}},calendars:{standard:{days:{names:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],namesAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],namesShort:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`]},months:{names:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],namesAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]},AM:[`AM`,`am`,`AM`],PM:[`PM`,`pm`,`PM`],patterns:{d:`M/d/yyyy`,D:`dddd, MMMM dd, yyyy`,F:`dddd, MMMM dd, yyyy h:mm:ss tt`,g:`M/d/yyyy h:mm tt`,G:`M/d/yyyy h:mm:ss tt`,m:`MMMM dd`,M:`MMMM dd`,s:`yyyy'-'MM'-'ddTHH':'mm':'ss`,t:`h:mm tt`,T:`h:mm:ss tt`,u:`yyyy'-'MM'-'dd HH':'mm':'ss'Z'`,y:`MMMM, yyyy`,Y:`MMMM, yyyy`},"/":`/`,":":`:`,firstDay:0,twoDigitYearMax:2029}}},J=new class{constructor(){window.kendo||(window.kendo={}),window.kendo.cultures||(window.kendo.cultures={}),this.cultures=window.kendo.cultures,this.cultures[q]||(this.cultures[q]=ht)}findCulture(e){return e?typeof e==`string`?this.cultures[e]||this.cultures[e.split(`-`)[0]]||null:e.numberFormat?e:null:null}getCulture(e){return e&&=this.findCulture(e),e||this.cultures.current}appendDesignatorsToCultures(e){e.standard.AM&&e.standard.AM.length&&e.standard.PM&&e.standard.PM.length&&e.standard.AM.indexOf(`PMA0`)<0&&(e.standard.AM.indexOf(`AM`)>-1||e.standard.PM.indexOf(`PM`)>-1)&&(e.standard.AM.push(`a`,`A`,`PMa`,`PMA`,`PMa0`,`PMA0`),e.standard.PM.push(`p`,`P`,`AMp`,`AMP`,`AMp0`,`AMP0`))}culture(){return this.appendDesignatorsToCultures(this.cultures.current.calendars),this.cultures.current}setCulture(e){let t=this.findCulture(e)||this.cultures[q];t.calendar=t.calendars.standard,this.cultures.current=t}registerCulture(e,t){this.cultures[e]=t}getCulturesRegistry(){return this.cultures}},gt=/^(n|c|p|e)(\d*)$/i,_t=/(\\.)|(googol)|(['][^']*[']?)|(["][^"]*["]?)/g,vt=/\,/g,yt=new class e{format(e,t,n){let r=n?J.getCulture(n):J.culture(),i=r.numberFormat,a=i[`.`],o=i.decimals,s=i.pattern[0],c=[],l,u,d,f,p,m=e<0,h,g,_,v=``,y,b,x,S,C,w=-1,T;if(e===void 0)return``;if(!isFinite(e))return String(e);if(!t)return r.name.length?e.toLocaleString():e.toString();if(p=gt.exec(t),p){if(t=p[1].toLowerCase(),u=t===`c`,d=t===`p`,(u||d)&&(i=u?i.currency:i.percent,a=i[`.`],o=i.decimals,l=i.symbol,s=i.pattern[+!m]),f=p[2],f&&(o=+f),t===`e`)return(f?e.toExponential(o):e.toExponential()).replace(`.`,i[`.`]);d&&(e*=100);let n=this.round(e,o);m=parseFloat(n)<0;let r=n.split(`.`);if(h=r[0],g=r[1],m&&(h=h.substring(1)),v=this.groupInteger(h,0,h.length,i),g&&(v+=a+g),t===`n`&&!m)return v;let c=``;for(let e=0,t=s.length;e<t;e++){let t=s.charAt(e);t===`n`?c+=v:t===`$`||t===`%`?c+=l:c+=t}return c}t=this.extractLiterals(t,c);let E=t.split(`;`),D=this.selectFormatSection(E,m,e);if(t=D.format,x=D.hasNegativeFormat,D.isZeroFormat)return t;let O=t.indexOf(`%`),k=t.indexOf(`$`);d=O!==-1,u=k!==-1,d&&(e*=100),u&&t[k-1]===`\\`&&(t=t.split(`\\`).join(``),u=!1),(u||d)&&(i=u?i.currency:i.percent,a=i[`.`],o=i.decimals,l=i.symbol),b=t.indexOf(`,`)>-1,b&&(t=t.replace(vt,``));let A=this.calculateDecimalPrecision(t,e,m);t=A.format,S=A.decimalIndex,y=A.length;let j=A.number,M=this.findPlaceholderPositions(t);if(w=M.start,T=M.end,C=M.zeroIndex,w===y&&(T=w),w!==-1){let e=j.toString().split(`.`);h=e[0],g=e[1]||``,_=h.length,m&&parseFloat(j)*-1>=0&&(m=!1);let n=this.applyPatternToNumber(t,w,T,y,m,x,S,h,g,a,C);return b&&(n=this.groupInteger(n,w+(m&&!x?1:0),Math.max(T,_+w),i)),T>=w&&(n+=t.substring(T+1)),(u||d)&&(n=this.replaceSymbols(n,l)),c.length&&(n=this.replaceLiterals(n,c)),n}return String(j)}replaceSymbols(e,t){let n=``;for(let r=0,i=e.length;r<i;r++){let i=e.charAt(r);n+=i===`$`||i===`%`?t:i}return n}replaceLiterals(e,t){for(let n=0;n<t.length;n++)e=e.replace(`??`,t[n]);return e}applyPatternToNumber(e,t,n,r,i,a,o,s,c,l,u){let d=e.substring(0,t),f=``,p=s.length;i&&!a&&(d+=`-`);let m=t;for(;m<r;){let t=e.charAt(m);if(o===-1){if(n-m<p){d+=s;break}}else if(u!==-1&&u<m&&(f=``),o-m<=p&&o-m>-1&&(d+=s,m=o),o===m){d+=(c?l:``)+c,m+=n-o+1;continue}t===`0`?(d+=t,f=t):t===`#`&&(d+=f),m++}return d}selectFormatSection(e,t,n){let r,i=!1,a=!1;return t&&e[1]?(r=e[1],i=!0):n===0&&e[2]?(r=e[2],r.indexOf(`#`)===-1&&r.indexOf(`0`)===-1&&(a=!0)):r=e[0],{format:r,hasNegativeFormat:i,isZeroFormat:a}}calculateDecimalPrecision(e,t,n){let r=e.indexOf(`.`),i=0,a=e.length,o,s,c,l,u,d;if(r!==-1){let f=t.toString().split(`e`);if(o=f[1]?this.round(t,Math.abs(parseInt(f[1],10))):f[0],o=o.split(`.`)[1]||``,s=e.lastIndexOf(`0`)-r,c=e.lastIndexOf(`#`)-r,l=s>-1,u=c>-1,i=o.length,!l&&!u&&(e=e.substring(0,r)+e.substring(r+1),a=e.length,r=-1,i=0),l&&s>c)i=s;else if(c>s)if(u&&i>c){for(d=this.round(t,c,n);d.charAt(d.length-1)===`0`&&c>0&&c>s;)c--,d=this.round(t,c,n);i=c}else l&&i<s&&(i=s)}let f=this.round(t,i,n);return{format:e,decimalIndex:r,length:a,number:f}}findPlaceholderPositions(e){let t=e.indexOf(`#`),n=e.indexOf(`0`),r,i,a;return r=t===-1&&n!==-1?n:t!==-1&&n===-1?t:t>n?n:t,t=e.lastIndexOf(`#`),a=e.lastIndexOf(`0`),i=t===-1&&a!==-1?a:t!==-1&&a===-1||t>a?t:a,{start:r,end:i,zeroIndex:a}}extractLiterals(e,t){return(e.indexOf(`'`)>-1||e.indexOf(`"`)>-1||e.indexOf(`\\`)>-1)&&(e=e.replace(_t,e=>{let n=e.charAt(0).replace(`\\`,``),r=e.slice(1).replace(n,``);return t.push(r),`??`})),e}groupInteger(e,t,n,r){let i=e.indexOf(r[`.`]),a=r.groupSize.slice(),o=a.shift(),s,c,l,u,d,f;if(n=i===-1?n+1:i,s=e.substring(t,n),c=s.length,c>=o){for(l=c,u=[];l>-1;)if(d=s.substring(l-o,l),d&&u.push(d),l-=o,f=a.shift(),o=f===void 0?o:f,o===0){l>0&&u.push(s.substring(0,l));break}s=u.reverse().join(r[`,`]),e=e.substring(0,t)+s+e.substring(n)}return e}round(t,n,r){return e.round(t,n,r)}static round(e,t,n){t||=0;let r=e.toString().split(`e`),i=Math.round(+(r[0]+`e`+(r[1]?+r[1]+t:t)));return n&&(i=-i),r=i.toString().split(`e`),(+(r[0]+`e`+(r[1]?+r[1]-t:-t))).toFixed(Math.min(t,20))}},bt=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|aa|ss|s|zzz|zz|z|EEEE|"[^"]*"|'[^']*'/g;function Y(e,t=2){let n=String(e);for(;n.length<t;)n=`0`+n;return n}let xt=new class{format(e,t,n){let r=(n?J.getCulture(n):J.culture()).calendars.standard,i=r.days,a=r.months;return(t.pattern||r.patterns[t]||t).replace(bt,t=>this.formatMatch(t,e,r,i,a))}formatMatch(e,t,n,r,i){let a,o,s;if(e===`d`)a=t.getDate();else if(e===`dd`)a=Y(t.getDate());else if(e===`ddd`)a=r.namesAbbr[t.getDay()];else if(e===`dddd`||e===`EEEE`)a=r.names[t.getDay()];else if(e===`M`)a=t.getMonth()+1;else if(e===`MM`)a=Y(t.getMonth()+1);else if(e===`MMM`)a=i.namesAbbr[t.getMonth()];else if(e===`MMMM`)a=i.names[t.getMonth()];else if(e===`yy`)a=Y(t.getFullYear()%100);else if(e===`yyyy`)a=Y(t.getFullYear(),4);else if(e===`h`)a=t.getHours()%12||12;else if(e===`hh`)a=Y(t.getHours()%12||12);else if(e===`H`)a=t.getHours();else if(e===`HH`)a=Y(t.getHours());else if(e===`m`)a=t.getMinutes();else if(e===`mm`)a=Y(t.getMinutes());else if(e===`s`)a=t.getSeconds();else if(e===`ss`)a=Y(t.getSeconds());else if(e===`f`)a=Math.floor(t.getMilliseconds()/100);else if(e===`ff`){let e=t.getMilliseconds();e>99&&(e=Math.floor(e/10)),a=Y(e)}else if(e===`fff`)a=Y(t.getMilliseconds(),3);else if(e===`tt`||e===`aa`)a=t.getHours()<12?n.AM[0]:n.PM[0];else if(e===`zzz`){o=t.getTimezoneOffset(),s=o<0;let e=Math.abs(o/60).toString().split(`.`)[0];o=Math.abs(o)-parseInt(e,10)*60,a=(s?`+`:`-`)+Y(parseInt(e,10)),a+=`:`+Y(o)}else if(e===`zz`||e===`z`){let n=t.getTimezoneOffset()/60;s=n<0;let r=Math.abs(n).toString().split(`.`)[0];a=(s?`+`:`-`)+(e===`zz`?Y(parseInt(r,10)):r)}return a===void 0?e.slice(1,e.length-1):a}},St=/\{(\d+)(:[^\}]+)?\}/g,Ct={}.toString,X=new class{toString(e,t,n){if(t){if(Ct.call(e)===`[object Date]`)return xt.format(e,t,n);if(typeof e==`number`)return yt.format(e,t,n)}return e===void 0?``:e}format(e,...t){return e.replace(St,(e,n,r)=>{let i=t[parseInt(n,10)],a=this.toString(i,r?r.substring(1):``);return String(a)})}extractFormat(e){return e.slice(0,3)===`{0:`&&(e=e.slice(3,e.length-1)),e}round(e,t,n){return yt.round(e,t,n)}},wt=/[eE][\-+]?[0-9]+/,Tt=/\u00A0/g,Et=/\s/g,Dt=new class{parseInt(e,t){let n=this.parseFloat(e,t);return n&&n|0}parseFloat(e,t,n){if(!e&&e!==0)return null;if(typeof e==`number`)return e;let r=e.toString(),i=J.getCulture(t).numberFormat,a=i.percent,o=i.currency,s=a.symbol,c=o.symbol,l=r.indexOf(`-`),u,d=!1;if(wt.test(r)){let e=parseFloat(r.replace(i[`.`],`.`));return isNaN(e)?null:e}if(l>0)return null;l=+(l>-1),r.indexOf(c)>-1||n&&n.toLowerCase().indexOf(`c`)>-1?(i=o,u=i.pattern[0].replace(`$`,c).split(`n`),r.indexOf(u[0])>-1&&r.indexOf(u[1])>-1&&(r=r.replace(u[0],``).replace(u[1],``),l=1)):r.indexOf(s)>-1&&(d=!0,i=a,c=s),r=r.replace(`-`,``).replace(c,``).replace(Tt,` `).split(i[`,`].replace(Tt,` `)).join(``).replace(Et,``).replace(i[`.`],`.`);let f=parseFloat(r);return isNaN(f)?f=null:l&&(f*=-1),f&&d&&(f/=100),f}},Ot={}.toString,kt=/[+|\-]\d{1,2}/,At=/[+|\-]\d{1,2}:?\d{2}/,jt=/^\/Date\((.*?)\)\/$/,Mt=/[+-]\d*/,Nt=[[],[`G`,`g`,`F`],[`D`,`d`,`y`,`m`,`T`,`t`]],Pt=[[`yyyy-MM-ddTHH:mm:ss.fffffffzzz`,`yyyy-MM-ddTHH:mm:ss.fffffff`,`yyyy-MM-ddTHH:mm:ss.fffzzz`,`yyyy-MM-ddTHH:mm:ss.fff`,`ddd MMM dd yyyy HH:mm:ss`,`yyyy-MM-ddTHH:mm:sszzz`,`yyyy-MM-ddTHH:mmzzz`,`yyyy-MM-ddTHH:mmzz`,`yyyy-MM-ddTHH:mm:ss`,`yyyy-MM-dd HH:mm:ss`,`yyyy/MM/dd HH:mm:ss`],[`yyyy-MM-ddTHH:mm`,`yyyy-MM-dd HH:mm`,`yyyy/MM/dd HH:mm`],[`yyyy/MM/dd`,`yyyy-MM-dd`,`HH:mm:ss`,`HH:mm`]],Ft={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/,exact3:/^\d{3}/},It=new class{constructor(){this.timezoneService=null}setTimezoneService(e){this.timezoneService=e}parseDate(e,t,n,r){return this.internalParseDate(e,t,n,!1,r)}parseExactDate(e,t,n){return this.internalParseDate(e,t,n,!0)}internalParseDate(e,t,n,r,i){if(Ot.call(e)===`[object Date]`)return e;if(!e)return null;let a=String(e),o=null,s;if(a.indexOf(`/D`)===0){let e=jt.exec(a);if(e){let t=e[1];if(s=Mt.exec(t.substring(1)),o=new Date(parseInt(t,10)),s&&this.timezoneService){let e=this.parseMicrosoftFormatOffset(s[0]);o=this.timezoneService.apply(o,0),o=this.timezoneService.convert(o,0,-1*e)}return o}}let c=J.getCulture(n),l;l=t?Array.isArray(t)?t:[t]:this.getDefaultFormats(c);for(let e=0;e<l.length;e++)if(o=this.parseExact(a,l[e],c,r,i),o)return o;return o}parseExact(e,t,n,r,i){if(!e)return null;let a=n.calendars.standard,o=0,s=0,c=e=>{let n=0;for(;t[o]===e;)n++,o++;return n>0&&--o,n},l=t=>{let n=``;if(t===2)for(let r=0;r<=t;r++)n+=e[s+r]||``;n=i&&n.match(Ft.exact3)&&Number.isInteger(Number(n))&&Number(n)>0?this.unpadZero(n):e.substr(s,t);let r=Ft[t]||RegExp(`^\\d{1,`+t+`}`),a=n.match(r);if(a){let e=a[0];return s+=e.length,parseInt(e,10)}return null},u=(t,n,r)=>{let i=0,a=0;for(let o=0;o<t.length;o++){let c=t[o],l=c.length,u=e.substr(s,r||l);n&&(u=u.toLowerCase()),u===c&&l>i&&(i=l,a=o)}return i?(s+=i,a+1):null},d=()=>e.charAt(s)===t[o]?(s++,!0):!1,f=null,p=null,m=null,h=null,g=null,_=null,v=null,y=!1,b=new Date,x=a.twoDigitYearMax||2029,S=b.getFullYear(),C=null,w,T=null,E=null;t||=`d`;let D=a.patterns[t];D&&(t=D);let O=t.split(``),k=O.length;for(a._lowerDays||=this.lowerLocalInfo(a.days),a._lowerMonths||=this.lowerLocalInfo(a.months);o<k;o++){let t=O[o];if(y)t===`'`?y=!1:d();else if(t===`d`){let e=c(`d`);if(m!==null&&e>2)continue;if(m=e<3?l(2):u(a._lowerDays[e===3?`namesAbbr`:`names`],!0),m===null||this.outOfRange(m,1,31))return null}else if(t===`M`){let e=c(`M`);if(p=e<3?l(2):u(a._lowerMonths[e===3?`namesAbbr`:`names`],!0),p===null||this.outOfRange(p,1,12))return null;--p}else if(t===`y`){let e=c(`y`);if(f=l(e),f===null)return null;if(e===2){let e=x;typeof e==`string`&&(e=S+parseInt(e,10)),f=S-S%100+f,f>e&&(f-=100)}}else if(t===`h`){if(c(`h`),h=l(2),h===12&&(h=0),h===null||this.outOfRange(h,0,11))return null}else if(t===`H`){if(c(`H`),h=l(2),h===null||this.outOfRange(h,0,23))return null}else if(t===`m`){if(c(`m`),g=l(2),g===null||this.outOfRange(g,0,59))return null}else if(t===`s`){if(c(`s`),_=l(2),_===null||this.outOfRange(_,0,59))return null}else if(t===`f`){let t=c(`f`),n=e.substr(s,t).match(Ft[3]);if(v=l(t),v!==null&&n){let e=parseFloat(`0.`+n[0]);e=parseFloat(yt.round(e,3)),v=e*1e3}if(v===null||this.outOfRange(v,0,999))return null}else if(t===`t`){let e=c(`t`),t=a.AM,n=a.PM;if(e===1&&(t=this.mapDesignators(t),n=this.mapDesignators(n)),C=u(n,!1,this.longestStringLength(n)),!C&&!u(t,!1,this.longestStringLength(t)))return null}else if(t===`z`){w=!0;let t=c(`z`);if(e.substr(s,1)===`Z`){d();continue}let n=e.substr(s,6).match(t>2?At:kt);if(!n)return null;let r=n[0].split(`:`),i=r[0],a=r[1];if(!a&&i.length>3&&(s=i.length-2,a=i.substring(s),i=i.substring(0,s)),T=parseInt(i,10),this.outOfRange(T,-12,13)||t>2&&(a=r[0][0]+a,E=parseInt(a,10),isNaN(E)||this.outOfRange(E,-59,59)))return null}else if(t===`'`)y=!0,d();else if(!d())return null}if(r&&!/^\s*$/.test(e.substr(s)))return null;f===null&&p===null&&m===null&&(h!==null||g!==null||_!==null)?(f=S,p=b.getMonth(),m=b.getDate()):(f===null&&(f=S),m===null&&(m=1)),C&&h!==null&&h<12&&(h+=12);let A;return w?(T&&h!==null&&(h+=-T),E&&g!==null&&(g+=-E),A=new Date(Date.UTC(f,p??0,m,h??0,g??0,_??0,v??0))):(A=new Date(f,p??0,m,h??0,g??0,_??0,v??0),this.adjustDST(A,h)),f<100&&A.setFullYear(f),A.getDate()!==m&&w===void 0?null:A}parseMicrosoftFormatOffset(e){let t=e.substr(0,1)===`-`?-1:1;return e=e.substring(1),t*(parseInt(e.substr(0,2),10)*60+parseInt(e.substring(2),10))}getDefaultFormats(e){let t=Math.max(Nt.length,Pt.length),n=(e.calendar||e.calendars.standard).patterns,r=[];for(let e=0;e<t;e++){let t=Nt[e]||[];for(let e=0;e<t.length;e++)r.push(n[t[e]]);r.push(...Pt[e]||[])}return r}outOfRange(e,t,n){return!(e>=t&&e<=n)}adjustDST(e,t){!t&&e.getHours()===23&&e.setHours(e.getHours()+2)}lowerLocalInfo(e){return{names:e.names.map(e=>e.toLowerCase()),namesAbbr:e.namesAbbr.map(e=>e.toLowerCase())}}unpadZero(e){return e.replace(/^0*/,``)}mapDesignators(e){return e.map(e=>e.charAt(0))}longestStringLength(e){return e.reduce((e,t)=>Math.max(e,t.length),0)}};new class{convert(e){let t=J.getCulture(e)||J.culture(),n={};return n[t.numberFormat.currency.abbr]=t.numberFormat.currency,{localeInfo:()=>this.buildLocaleInfo(t,n),parseDate:(e,n)=>It.parseExactDate(e,n,t),toString:(e,n)=>{let r=X.toString(e,n,t);return r==null?``:String(r)},format:(e,...t)=>X.format(e,...t)}}buildLocaleInfo(e,t){return{numbers:{localeCurrency:e.numberFormat.currency.abbr,currencies:t,symbols:{group:e.numberFormat[`,`],decimal:e.numberFormat[`.`],percentSign:e.numberFormat.percent.symbol}},calendar:{patterns:e.calendars.standard.patterns,months:{format:{wide:e.calendars.standard.months.names,abbreviated:e.calendars.standard.months.namesAbbr}},days:{format:{wide:e.calendars.standard.days.names,abbreviated:e.calendars.standard.days.namesAbbr}}}}}buildLocaleInfoAll(e,t){let n={},[r,i]=e.name.split(`-`);if(n.name=r,n.identity={language:r},i&&(n.territory=i),e.numberFormat&&(n.numbers={symbols:{decimal:e.numberFormat[`.`],group:e.numberFormat[`,`],percentSign:e.numberFormat.percent?.symbol||`%`},decimal:{patterns:e.numberFormat.pattern,groupSize:e.numberFormat.groupSize},currency:{patterns:e.numberFormat.currency?.pattern,groupSize:e.numberFormat.currency?.groupSize},percent:{patterns:e.numberFormat.percent?.pattern,groupSize:e.numberFormat.percent?.groupSize,decimals:e.numberFormat.percent?.decimals}},e.numberFormat.currency&&(n.numbers.currencies={[e.numberFormat.currency.abbr]:e.numberFormat.currency},n.numbers.localeCurrency=e.numberFormat.currency.abbr)),e.calendars&&e.calendars.standard){let t=e.calendars.standard;n.calendar={patterns:{d:t.patterns.d,D:t.patterns.D,F:t.patterns.F,g:t.patterns.g,G:t.patterns.G,m:t.patterns.m,M:t.patterns.M,s:t.patterns.s,t:t.patterns.t,T:t.patterns.T,u:t.patterns.u,y:t.patterns.y,Y:t.patterns.Y},days:{format:{wide:t.days.names,abbreviated:t.days.namesAbbr,short:t.days.namesShort},"stand-alone":{wide:t.days.names,abbreviated:t.days.namesAbbr,short:t.days.namesShort}},months:{format:{wide:t.months.names,abbreviated:t.months.namesAbbr,narrow:t.months.namesAbbr.map(e=>e.charAt(0))},"stand-alone":{wide:t.months.names,abbreviated:t.months.namesAbbr,narrow:t.months.namesAbbr.map(e=>e.charAt(0))}},dayPeriods:{format:{abbreviated:{am:t.AM[0],pm:t.PM[0]},narrow:{am:t.AM[1],pm:t.PM[1]},wide:{am:t.AM[0],pm:t.PM[0]}},"stand-alone":{abbreviated:{am:t.AM[0],pm:t.PM[0]},narrow:{am:t.AM[1],pm:t.PM[1]},wide:{am:t.AM[0],pm:t.PM[0]}}}},`firstDay`in t&&(n.firstDay=t.firstDay)}return n}};let Lt=/^\w+/,Rt=/\$\{([^}]*)\}/g,zt=/\\\}/g,Bt=/__CURLY__/g,Vt=/\\#/g,Ht=/__SHARP__/g;function Ut(e,t){if(t)return`'`+e.split(`'`).join(`\\'`).split(`\\"`).join(`\\\\\\"`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/\t/g,`\\t`)+`'`;{let t=e.charAt(0),n=e.substring(1);return t===`=`?`+(`+n+`)+`:t===`:`?`+$kendoHtmlEncode(`+n+`)+`:`;`+e+`;$kendoOutput+=`}}let Wt=new class{constructor(){this.paramName=`data`,this.useWithBlock=!0,this.debugTemplates=!1}setDebugMode(e){this.debugTemplates=e}render(e,t){let n=``;for(let r=0;r<t.length;r++)n+=e(t[r]);return n}compile(e,t){if(typeof e==`function`)return e;let n={paramName:t?.paramName===void 0?this.paramName:t.paramName,useWithBlock:t?.useWithBlock===void 0?this.useWithBlock:t.useWithBlock},r=n.paramName,i=r.match(Lt)[0],a=n.useWithBlock,o=`var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;`;o+=a?`with(`+r+`){`:``,o+=`$kendoOutput=`;let s=e.replace(zt,`__CURLY__`).replace(Rt,`#=$kendoHtmlEncode($1)#`).replace(Bt,`}`).replace(Vt,`__SHARP__`).split(`#`);for(let e=0;e<s.length;e++)o+=Ut(s[e],e%2==0);o+=a?`;}`:`;`,o+=`return $kendoOutput;`,o=o.replace(Ht,`#`);try{let e=Function(i,o);return e._slotCount=Math.floor(s.length/2),e}catch{if(this.debugTemplates)return console.warn(`Invalid template:'${e}' Generated code:'${o}'`),(()=>``);throw Error(X.format(`Invalid template:'{0}' Generated code:'{1}'`,e,o))}}};new class{constructor(){this.MS_PER_MINUTE=6e4,this.MS_PER_HOUR=60*6e4,this.MS_PER_DAY=864e5}adjustDST(e,t){return t===0&&e.getHours()===23?(e.setHours(e.getHours()+2),!0):!1}setDayOfWeek(e,t,n=1){let r=e.getHours();t=(t-e.getDay()+7*n)%7,e.setDate(e.getDate()+t),this.adjustDST(e,r)}dayOfWeek(e,t,n){return e=new Date(e),this.setDayOfWeek(e,t,n),e}firstDayOfMonth(e){return new Date(e.getFullYear(),e.getMonth(),1)}lastDayOfMonth(e){let t=new Date(e.getFullYear(),e.getMonth()+1,0),n=this.firstDayOfMonth(e),r=Math.abs(t.getTimezoneOffset()-n.getTimezoneOffset());return r&&t.setHours(n.getHours()+r/60),t}firstDayOfYear(e){return new Date(e.getFullYear(),0,1)}lastDayOfYear(e){return new Date(e.getFullYear(),11,31)}moveDateToWeekStart(e,t){return t===1?this.addDays(e,4-(e.getDay()||7)):this.addDays(this.dayOfWeek(e,t,-1),4)}calcWeekInYear(e,t){let n=new Date(e.getFullYear(),0,1,-6),r=this.moveDateToWeekStart(e,t).getTime()-n.getTime(),i=Math.floor(r/this.MS_PER_DAY);return 1+Math.floor(i/7)}weekInYear(e,t){t===void 0&&(t=J.culture().calendar.firstDay);let n=this.addDays(e,-7),r=this.addDays(e,7),i=this.calcWeekInYear(e,t);return i===0?this.calcWeekInYear(n,t)+1:i===53&&this.calcWeekInYear(r,t)>1?1:i}getDate(e){return e=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),this.adjustDST(e,0),e}toUtcTime(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}getMilliseconds(e){return this.toInvariantTime(e).getTime()-this.getDate(this.toInvariantTime(e)).getTime()}isInTimeRange(e,t,n){let r=this.getMilliseconds(t),i=this.getMilliseconds(n);if(!e||r===i)return!0;t>=n&&(i+=this.MS_PER_DAY);let a=this.getMilliseconds(e);return r>a&&(a+=this.MS_PER_DAY),i<r&&(i+=this.MS_PER_DAY),a>=r&&a<=i}isInDateRange(e,t,n){let r=t.getTime(),i=n.getTime();r>=i&&(i+=this.MS_PER_DAY);let a=e.getTime();return a>=r&&a<=i}addDays(e,t){let n=e.getHours();return e=new Date(e),this.setTime(e,t*this.MS_PER_DAY),this.adjustDST(e,n),e}setTime(e,t,n){let r=e.getTimezoneOffset();if(e.setTime(e.getTime()+t),!n){let t=e.getTimezoneOffset()-r;e.setTime(e.getTime()+t*this.MS_PER_MINUTE)}}setHours(e,t){return e=new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),this.adjustDST(e,t.getHours()),e}today(){return this.getDate(new Date)}isToday(e){return this.getDate(e).getTime()===this.today().getTime()}toInvariantTime(e){let t=new Date(1980,1,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}addYear(e,t){let n=new Date(e);return new Date(n.setFullYear(n.getFullYear()+t))}nextDay(e){return this.addDays(e,1)}previousDay(e){return this.addDays(e,-1)}nextYear(e){return this.addYear(e,1)}previousYear(e){return this.addYear(e,-1)}addLiteral(e,t){let n=e[e.length-1];n&&n.type===`LITERAL`?n.pattern+=t:e.push({type:`literal`,pattern:t})}isHour12(e){return e===`h`||e===`K`}dateNameType(e){if(e<=3)return`abbreviated`;if(e===4)return`wide`;if(e===5)return`narrow`}startsWith(e,t,n=0){return e.indexOf(t,n)===n}datePattern(e,t){let n=t.calendar,r;return typeof e==`string`&&(r=n.patterns[e]?n.patterns[e]:e),r||=n.patterns.d,r}splitDateFormat(e){let t=J.culture(),n=this.datePattern(e,t).replaceAll(`dddd`,`EEEE`).replaceAll(`ddd`,`EEE`).replace(`tt`,`aa`),r=[],i=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|t{1,2}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g,a=i.lastIndex=0,o=i.exec(n);for(;o;){let e=o[0];if(a<o.index&&this.addLiteral(r,n.substring(a,o.index)),this.startsWith(e,`"`)||this.startsWith(e,`'`))this.addLiteral(r,e);else{let t=e[0],n=ft[t],i={type:n,pattern:e};n===`hour`&&(i.hour12=this.isHour12(e));let a=pt[n];if(a){let n=typeof a.minLength==`number`?a.minLength:a.minLength[t],r=e.length;r>=n&&e!==`aa`&&(i.names={type:a.type,nameType:this.dateNameType(r)||`abbreviated`,standAlone:a.standAlone===t})}r.push(i)}a=i.lastIndex,o=i.exec(n)}return a<n.length&&this.addLiteral(r,n.substring(a)),r}dateFormatNames(e){let{type:t,nameType:n}=e,r=J.culture();n===`wide`&&(n=`names`),n===`abbreviated`&&(n=`namesAbbr`),n===`narrow`&&(n=`namesShort`);let i=r.calendar[t]?.[n];return i||=r.calendar[t]?.name,i||[]}dateFieldName(e){return(J.culture().calendar.dateFields?.[e.type]||{})[e.nameType]}getRelativeDateString(e,t=new Date){if(!e)return``;let n=new Date(t);n.setHours(0,0,0,0);let r=new Date(e);r.setHours(0,0,0,0);let i=n.getTime()-r.getTime(),a=Math.floor(i/this.MS_PER_DAY);return a===0?`Today`:a===1?`Yesterday`:a<=6?`Last ${X.toString(r,`dddd`)}`:String(X.toString(r,`dddd, MMMM dd, yyyy`))}},new class{constructor(){this._directions=this.createDirections(),this._effects=this.createEffects()}createDirections(){return{left:{reverse:`right`,property:`left`,transition:`translatex`,vertical:!1,modifier:-1},right:{reverse:`left`,property:`left`,transition:`translatex`,vertical:!1,modifier:1},down:{reverse:`up`,property:`top`,transition:`translatey`,vertical:!0,modifier:1},up:{reverse:`down`,property:`top`,transition:`translatey`,vertical:!0,modifier:-1},top:{reverse:`bottom`},bottom:{reverse:`top`},in:{reverse:`out`,modifier:-1},out:{reverse:`in`,modifier:1},vertical:{reverse:`vertical`},horizontal:{reverse:`horizontal`}}}createEffects(){let e={enabled:!0,Element:function(e){this.element=$(e)},promise:function(e,t){e.is(`:visible`)||e.css({display:e.data(`olddisplay`)||`block`}).css(`display`),t.hide&&e.data(`olddisplay`,e.data(`olddisplay`)||e.css(`display`)).hide(),t.init&&t.init(),t.completeCallback&&t.completeCallback(e),e.dequeue()},promiseShim:null,disable:function(){this.enabled=!1,this.promise=this.promiseShim},enable:function(){this.enabled=!0,this.promise=this.animatedPromise}};return e.promiseShim=e.promise,e}get directions(){return this._directions}get effects(){return this._effects}prepareAnimationOptions(e,t,n,r){return typeof e==`string`&&(g.isFunction(t)&&(r=t,t=400,n=!1),g.isFunction(n)&&(r=n,n=!1),typeof t==`boolean`&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:r}),$.extend({effects:{},duration:400,reverse:!1,init:$.noop,teardown:$.noop,hide:!1},e,{completeCallback:e.complete,complete:$.noop})}animate(e,t,n,r,i){let a=this._effects,o=this.prepareAnimationOptions.bind(this),s=0,c=e.length,l;for(;s<c;s++)l=$(e[s]),l.queue(function(){a.promise($(this),o(t,n,r,i))});return e}toggleClass(e,t,n,r){if(t){let n=t.split(` `);$.each(n,(t,n)=>{e.toggleClass(n,r)})}return e}fx(e){return new this._effects.Element(e)}};let Gt=`function`,Z=new class{constructor(){this.widgets=[],this.namespaces=new Map}isWidgetConstructor(e){if(typeof e!=Gt||e===null)return!1;let t=e;return`fn`in t&&`extend`in t}createNamespace(e,t){let n={roles:{},...t};return this.namespaces.set(e,n),n}getNamespace(e){return this.namespaces.get(e)}register(e,t={}){let n=t.namespace||`ui`,r=this.namespaces.get(n);if(!r)throw Error(`Unknown widget namespace: ${n}`);this.registerToNamespace(e,r,t.prefix)}registerToNamespace(e,t,n){let r=e.fn.options.name||e.options?.name;if(!r)throw Error(`Widget must have a name in options`);n||=``;let i=r.toLowerCase();t[r]=e,t.roles[i]=e;let a=`getKendo`+n+r,o=`kendo`+n+r;this.createJQueryPlugin(o,e,a);let s={name:o,widget:e,prefix:n};this.widgets.push(s)}getWidget(e,t){if(t){let n=this.namespaces.get(t)?.[e];return this.isWidgetConstructor(n)?n:void 0}for(let t of this.namespaces.values()){let n=t[e];if(this.isWidgetConstructor(n))return n}}getWidgetByRole(e,t){let n=e.toLowerCase();if(t)return this.namespaces.get(t)?.roles[n];for(let e of this.namespaces.values())if(e.roles[n])return e.roles[n]}getAllWidgets(){return this.widgets.slice()}getWidgetInstance(e,t){let n=$(e),r,i=t?[t]:Array.from(this.namespaces.values());for(let e of i)for(let t in e.roles){let i=e.roles[t],a=`kendo`+(i.fn?.options?.prefix||``)+(i.fn?.options?.name||``);if(r=n.data(a),r)return r}}createJQueryPlugin(e,t,n){let r=Array.prototype.slice;$.fn[e]=function(n){let i=this,a;return typeof n==`string`?(a=r.call(arguments,1),this.each(function(){let t=$.data(this,e),r,o;if(!t)throw Error(X.format(`Cannot call method '{0}' of {1} before it is initialized`,n,e));if(r=t[n],typeof r!=Gt)throw Error(X.format(`Cannot find method '{0}' of {1}`,n,e));if(o=r.apply(t,a),o!==void 0)return i=o,!1})):this.each(function(){return new t(this,n)}),i},$.fn[e].widget=t,$.fn[n]=function(){return this.data(e)}}rolesFromNamespaces(e,t){let n=[],r,i;for(!e[0]&&t&&(e=t),r=0,i=e.length;r<i;r++)n[r]=e[r].roles;let a=[...n].reverse();return $.extend.apply(null,[{}].concat(a))}},Q=new class{constructor(){this.getterCache={},this.setterCache={}}wrapExpression(e,t){let n=t||`d`,r=1;for(let t=0;t<e.length;t++){let i=e[t];if(i!==``){let a=i.indexOf(`[`);a!==0&&(a===-1?i=`.`+i:(r++,i=`.`+i.substring(0,a)+` || {})`+i.substring(a))),r++,n+=i+(t<e.length-1?` || {})`:`)`)}}return Array(r).join(`(`)+n}expr(e,t,n){return e||=``,typeof t==`string`&&(n=t,t=!1),n||=`d`,e&&e.charAt(0)!==`[`&&(e=`.`+e),t?(e=e.replace(/"([^.]*)\.([^"]*)"/g,`"$1_$DOT$_$2"`),e=e.replace(/'([^.]*)\.([^']*)'/g,`'$1_$DOT$_$2'`),e=this.wrapExpression(e.split(`.`),n),e=e.replace(/_\$DOT\$_/g,`.`)):e=n+e,e}exprToArray(e,t){return e||=``,e.indexOf(`.`)>=0||e.indexOf(`[`)>=0?e.split(/[[\].]/).map(e=>e.replace(/["']/g,``)).filter(e=>e):e===``?[]:[e]}getter(e,t){let n=e+t;return this.getterCache[n]||(this.getterCache[n]=n=>{let r=this.exprToArray(e,t),i=n;for(let e=0;e<r.length;e++)if(i=i[r[e]],!g.isPresent(i)&&t)return i;return i}),this.getterCache[n]}setter(e){return this.setterCache[e]||(this.setterCache[e]=(t,n)=>{let r=this.exprToArray(e),i=e=>{e.props.length?(e.parent=e.parent[e.props.shift()],i(e)):e.parent[e.prop]=e.val};i({parent:t,val:n,prop:r.pop(),props:r})}),this.setterCache[e]}accessor(e){return{get:this.getter(e),set:this.setter(e)}}},Kt=/template$/i,qt=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,Jt=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]+\]$/,Yt=/([A-Z])/g,Xt=/^(\+|-?)\d+(\.?)\d*$/,Zt=[`themeColor`,`fillMode`,`shape`,`size`,`rounded`,`positionMode`],Qt=new class{getDefaultNamespaces(){return[Z.getNamespace(`ui`),Z.getNamespace(`dataviz.ui`),Z.getNamespace(`mobile.ui`)].filter(Boolean)}parseOption(e,t,n){let r=T.ns,i,a=!1;if(t.indexOf(`data`)===0&&(t=t.substring(4),t=t.charAt(0).toLowerCase()+t.substring(1)),t=t.replace(Yt,`-$1`),i=e.getAttribute(`data-`+r+t),i===null&&(i=e.getAttribute(`bind:data-`+r+t),a=!0),i===null)i=void 0;else if(i===`null`)i=null;else if(i===`true`)i=!0;else if(i===`false`)i=!1;else if(Xt.test(i)&&t!=`mask`&&t!=`format`)i=parseFloat(i);else if(qt.test(i)&&!Jt.test(i))try{i=JSON.parse(i)}catch{i=Function(`return (`+i+`)`)()}else a&&(i=n[i],i instanceof C&&(i=i.toJSON(!0)));return i}parseOptions(e,t,n){let r=T.ns,i={},a,o,s=e.getAttribute(`data-`+r+`role`),c=Object.keys(t);for(let e=0;e<Zt.length;e++)c.indexOf(Zt[e])===-1&&c.push(Zt[e]);for(let t=0;t<c.length;t++)a=c[t],o=this.parseOption(e,a,n),o!==void 0&&(Kt.test(a)&&s!=`drawer`&&(typeof o==`string`?o=this.validateQuerySelectorTemplate(o)?Wt.compile($(`#`+o).html()):n&&n[o]?Wt.compile(n[o]):Wt.compile(o):g.isFunction(o)||(o=e.getAttribute(a))),i[a]=o);return i}validateQuerySelectorTemplate(e){try{return!!$(`#`+e).length}catch{}return!1}initWidget(e,t,n,r){let i=T.ns,a,o,s,c,l,u,d,f,p,m;if(n?n.roles&&(n=n.roles):n=this.getDefaultNamespaces()[0].roles,e=e.nodeType?e:e[0],u=e.getAttribute(`data-`+i+`role`),!u)return;p=u.indexOf(`.`)===-1,s=p?n[u]:Q.getter(u)(window);let h=$(e).data(),g=s?`kendo`+s.fn.options.prefix+s.fn.options.name:``;for(var _ in m=RegExp(p?`^kendo.*`+u+`$`:`^`+g+`$`,`i`),h)if(_.match(m))if(_===g)a=h[_];else return h[_];if(s){for(f=this.parseOption(e,`dataSource`),t=$.extend({},this.parseOptions(e,$.extend({},s.fn.options,s.fn.defaults),r),t),f&&(typeof f==`string`?t.dataSource=Q.getter(f)(window):t.dataSource=f),c=0,l=s.fn.events.length;c<l;c++)o=s.fn.events[c],d=this.parseOption(e,o),d!==void 0&&(t[o]=Q.getter(d)(window));return a?$.isEmptyObject(t)||a.setOptions(t):a=new s(e,t),a}}init(e,...t){let n=T.ns,r=Z.rolesFromNamespaces(t,this.getDefaultNamespaces()),i=this;$(e).find(`[data-`+n+`role]`).addBack().each(function(){i.initWidget(this,{},r)})}destroy(e){let t=T.ns;$(e).find(`[data-`+t+`role]`).addBack().each(function(){let e=$(this).data();for(var t in e)t.indexOf(`kendo`)===0&&typeof e[t].destroy==`function`&&e[t].destroy()})}containmentComparer(e,t){return $.contains(e,t)?-1:1}resize(e,t){let n=T.ns,r=this,i=$(e).find(`[data-`+n+`role]`).addBack().filter(function(){let e=$(this);return $.inArray(e.attr(`data-`+n+`role`),[`slider`,`rangeslider`,`breadcrumb`])>-1||e.is(`:visible`)});if(!i.length)return;let a=$.makeArray(i);a.sort((e,t)=>r.containmentComparer(e,t)),$.each(a,function(){let e=r.widgetInstance($(this));e&&e.resize(t)})}widgetInstance(e,t){let n=T.ns,r=this.getDefaultNamespaces(),i=e.data(n+`role`),a=[],o,s,c=e.data(`kendoView`);if(i){if(i===`content`&&(i=`scroller`),i===`view`&&c)return c;if(t)if(t[0])for(o=0,s=t.length;o<s;o++)a.push(t[o].roles[i]);else a.push(t.roles[i]);else a=r.map(e=>e.roles[i]);for(i.indexOf(`.`)>=0&&(a=[Q.getter(i)(window)]),o=0,s=a.length;o<s;o++){let t=a[o];if(t){let n=e.data(`kendo`+t.fn.options.prefix+t.fn.options.name);if(n)return n}}}}};new class{focusable(e,t){let n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:n===`a`&&e.href||t)&&this.visible(e)}visible(e){return $.expr.pseudos.visible(e)&&!$(e).parents().addBack().filter(function(){return $.css(this,`visibility`)===`hidden`}).length}kendoFocusable(e){let t=$(e).attr(`tabindex`),n=t===void 0?NaN:parseInt(t,10);return this.focusable(e,!isNaN(n)&&n>-1)}focusElement(e){let t=M,n=[],r=e.parentsUntil(`body`).filter(function(e,n){return t.getComputedStyles(n,[`overflow`]).overflow!==`visible`}).add(window);r.each(function(e,t){n[e]=$(t).scrollTop()||0});try{e[0].setActive()}catch{e.trigger(`focus`)}r.each(function(e,t){$(t).scrollTop(n[e])})}focusNextElement(){if(document.activeElement){let e=$(`:kendoFocusable`),t=e.index(document.activeElement);t>-1&&(e[t+1]||e[0]).focus()}}cycleForm(e){let t=e.find(`input, .k-widget, .k-dropdownlist, .k-combobox`).first(),n=e.find(`button, .k-button`).last();function r(e){let t=Qt.widgetInstance(e);t&&t.focus?t.focus():e.trigger(`focus`)}n.on(`keydown`,function(e){e.keyCode===9&&!e.shiftKey&&(e.preventDefault(),r(t))}),t.on(`keydown`,function(e){e.keyCode===9&&e.shiftKey&&(e.preventDefault(),r(n))})}getWidgetFocusableElement(e){let t=e.closest(`:kendoFocusable`),n=Qt.widgetInstance(e),r;return r=t.length?t:n?n.options.name===`Editor`?$(n.body):n.wrapper.find(`:kendoFocusable`).first():e,r}registerFocusableSelector(){let e=this;$.extend($.expr.pseudos,{kendoFocusable:function(t){return e.kendoFocusable(t)}})}activeElement(){try{return document.activeElement}catch{return document.documentElement.activeElement}}},new class{getSeriesColors(){let e=$(`<div class="k-var--series-a"></div><div class="k-var--series-b"></div><div class="k-var--series-c"></div><div class="k-var--series-d"></div><div class="k-var--series-e"></div><div class="k-var--series-f"></div>`),t=[];return e.appendTo($(`body`)),e.each((e,n)=>{t.push($(n).css(`background-color`))}),e.remove(),t}},new class{selectorFromClasses(e){return`.`+e.split(` `).join(`.`)}roleSelector(e,t){return e.replace(/(\S+)/g,`[data-`+t+`role=$1],`).slice(0,-1)}directiveSelector(e){let t=e.split(` `);if(t)for(let e=0;e<t.length;e++)t[e]!==`view`&&(t[e]=t[e].replace(/(\w*)(view|bar|strip|over)$/,`$1-$2`));return t.join(` `).replace(/(\S+)/g,`kendo-mobile-$1,`).slice(0,-1)}};let $t=`string`;new class{constructor(){this.zones={},this.rules={},this.months={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},this.days={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6}}offset(e,t){if(t===`Etc/UTC`||t===`Etc/GMT`)return 0;let n=this.zoneAndRule(e,this.zones,this.rules,t),r=n.zone,i=n.rule;return Dt.parseFloat(i?r[0]-i[6]:r[0])}abbr(e,t){let n=this.zoneAndRule(e,this.zones,this.rules,t),r=n.zone,i=n.rule,a=r[2];return a.indexOf(`/`)>=0?a.split(`/`)[i&&+i[6]?1:0]:a.indexOf(`%s`)>=0?a.replace(`%s`,!i||i[7]===`-`?``:i[7]):a}convert(e,t,n){let r=n,i;typeof t==$t&&(t=this.offset(e,t)),typeof n==$t&&(n=this.offset(e,n));let a=e.getTimezoneOffset();e=new Date(e.getTime()+(t-n)*6e4);let o=e.getTimezoneOffset();return typeof r==$t&&(r=this.offset(e,r)),i=o-a+(n-r),new Date(e.getTime()+i*6e4)}apply(e,t){return this.convert(e,e.getTimezoneOffset(),t)}remove(e,t){return this.convert(e,t,e.getTimezoneOffset())}toLocalDate(e){return this.apply(new Date(e),`Etc/UTC`)}ruleToDate(e,t){let n,r,i,a=t[3],o=t[4],s=t[5],c=t[8];return c||(t[8]=c={}),c[e]?c[e]:(isNaN(o)?o.indexOf(`last`)===0?(n=new Date(Date.UTC(e,this.months[a]+1,1,s[0]-24,s[1],s[2],0)),r=this.days[o.substr(4,3)],i=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-i-(r>i?7:0))):o.indexOf(`>=`)>=0?(n=new Date(Date.UTC(e,this.months[a],parseInt(o.substr(5),10),s[0],s[1],s[2],0)),r=this.days[o.substr(0,3)],i=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-i+(r<i?7:0))):o.indexOf(`<=`)>=0&&(n=new Date(Date.UTC(e,this.months[a],parseInt(o.substr(5),10),s[0],s[1],s[2],0)),r=this.days[o.substr(0,3)],i=n.getUTCDay(),n.setUTCDate(n.getUTCDate()+r-i-(r>i?7:0))):n=new Date(Date.UTC(e,this.months[a],o,s[0],s[1],s[2],0)),c[e]=n)}findRule(e,t,n){let r=t[n];if(!r){let e=n.split(`:`),t=0;return e.length>1&&(t=parseInt(e[0],10)*60+Number(e[1])),[-1e6,`max`,`-`,`Jan`,1,[0,0,0],t,`-`]}let i=new Date(e).getUTCFullYear();r=r.filter(e=>{let t=e[0],n=e[1];return t<=i&&(n>=i||t==i&&n===`only`||n===`max`)});let a=[...r,e];a.sort((e,t)=>{let n=e,r=t;return typeof e!=`number`&&(n=Number(this.ruleToDate(i,e))),typeof t!=`number`&&(r=Number(this.ruleToDate(i,t))),n-r});let o=a[a.indexOf(e)-1]||a[a.length-1];return isNaN(o)?o:null}findZone(e,t,n){let r=t[n];if(typeof r==`string`&&(r=t[r]),!r)throw Error(`Timezone "`+n+`" is either incorrect, or kendo.timezones.min.js is not included.`);let i=r,a;for(a=i.length-1;a>=0;a--){let t=i[a][3];if(t&&e>t)break}let o=i[a+1];if(!o)throw Error(`Timezone "`+n+`" not found on `+e+`.`);return o}zoneAndRule(e,t,n,r){if(typeof e!=`number`){let t=e;e=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}let i=this.findZone(e,t,r);return{zone:i,rule:this.findRule(e,n,i[1])}}},new class{constructor(){this.class2type={},`Boolean Number String Function Array Date RegExp Object Error Symbol`.split(` `).forEach(e=>{this.class2type[`[object `+e+`]`]=e.toLowerCase()})}getClass2Type(){return this.class2type}type(e){return e==null?e+``:typeof e==`object`||typeof e==`function`?this.class2type[Object.prototype.toString.call(e)]||`object`:typeof e}},new class{constructor(){this.defaults={}}getDefaults(){return this.defaults}setDefaults(e,t){let n=e.split(`.`),r=this.defaults;e=n.pop(),n.forEach(e=>{r[e]===void 0&&(r[e]={}),r=r[e]}),typeof t==`object`&&t&&t.constructor===Object?r[e]=g.deepExtend({},r[e]||{},t):r[e]=t}getDefault(e){let t=e.split(`.`),n=this.defaults;for(let e of t){if(n[e]===void 0)return;n=n[e]}return n}};let en={id:`promptbox`,name:`PromptBox`,category:`web`,description:`The PromptBox component - a composite input for chat interfaces.`,depends:[`core`,`textarea`,`textbox`,`html.button`]};Z.register(ut);var tn=kendo;e.PromptBox=ut,e.__meta__=en,e.default=tn});
//# sourceMappingURL=kendo.promptbox.min.js.map