/usr/share/usermin/authentic-theme/unauthenticated/js
NameSizeModeActions
ckeditor/-0755rm
codemirror/-0755rm
bundle.min.js18477590644editdlrm
bundle.min.js.gz5117170644editdlrm
defaults.js143840644editdlrm
jquery.fancytree.min.js854120644editdlrm
jquery.fancytree.min.js.gz271770644editdlrm
jquery.jspanel.min.js740480644editdlrm
jquery.jspanel.min.js.gz186340644editdlrm
photoswipe.min.js413570644editdlrm
photoswipe.min.js.gz154640644editdlrm
service-worker.js940644editdlrm
session-login.min.js121050644editdlrm
session-login.min.js.gz35700644editdlrm
Edit: /usr/share/usermin/authentic-theme/unauthenticated/js/jquery.fancytree.min.js (85412B)
/*! jQuery UI - v1.14.1 - 2025-08-23 * https://jqueryui.com * Includes: widget.js, position.js, keycode.js, scroll-parent.js, unique-id.js * Copyright OpenJS Foundation and other contributors; Licensed MIT */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";e.ui=e.ui||{},e.ui.version="1.14.1";var t,i,n=0,r=Array.prototype.hasOwnProperty,o=Array.prototype.slice;t=e.cleanData,e.cleanData=function(i){var n,r,o;for(o=0;null!=(r=i[o]);o++)(n=e._data(r,"events"))&&n.remove&&e(r).triggerHandler("remove");t(i)},e.widget=function(t,i,n){var r,o,s,a={},l=t.split(".")[0];if("__proto__"===(t=t.split(".")[1])||"constructor"===t)return e.error("Invalid widget name: "+t);var d=l+"-"+t;return n||(n=i,i=e.Widget),Array.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr.pseudos[d.toLowerCase()]=function(t){return!!e.data(t,d)},e[l]=e[l]||{},r=e[l][t],o=e[l][t]=function(e,t){if(!this||!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(s=new i).options=e.widget.extend({},s.options),e.each(n,function(e,t){a[e]="function"==typeof t?function(){function n(){return i.prototype[e].apply(this,arguments)}function r(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=n,this._superApply=r,e=t.apply(this,arguments),this._super=i,this._superApply=o,e}}():t}),o.prototype=e.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:d}),r?(e.each(r._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,o,i._proto)}),delete r._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var i,n,s=o.call(arguments,1),a=0,l=s.length;a",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,i){t._removeClass(i,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,r,o,s=t;if(0==arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(n=t.split(".")).shift(),n.length){for(o=0,r=s[t]=e.widget.extend({},this.options[t]);o
"),o=r.children()[0];return e("body").append(r),i=o.offsetWidth,r.css("overflow","scroll"),i===(n=o.offsetWidth)&&(n=r[0].clientWidth),r.remove(),t=i-n},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),r="scroll"===i||"auto"===i&&t.width0?"right":"center",vertical:c<0?"top":d>0?"bottom":"middle"};pi(n(d),n(c))?u.important="horizontal":u.important="vertical",t.using.call(this,e,u)}),s.offset(e.extend(N,{using:o}))})},e.ui.position={fit:{left:function(e,t){var n,r=t.within,o=r.isWindow?r.scrollLeft:r.offset.left,s=r.width,a=e.left-t.collisionPosition.marginLeft,l=o-a,d=a+t.collisionWidth-s-o;t.collisionWidth>s?l>0&&d<=0?(n=e.left+l+t.collisionWidth-s-o,e.left+=l-n):e.left=d>0&&l<=0?o:l>d?o+s-t.collisionWidth:o:l>0?e.left+=l:d>0?e.left-=d:e.left=i(e.left-a,e.left)},top:function(e,t){var n,r=t.within,o=r.isWindow?r.scrollTop:r.offset.top,s=t.within.height,a=e.top-t.collisionPosition.marginTop,l=o-a,d=a+t.collisionHeight-s-o;t.collisionHeight>s?l>0&&d<=0?(n=e.top+l+t.collisionHeight-s-o,e.top+=l-n):e.top=d>0&&l<=0?o:l>d?o+s-t.collisionHeight:o:l>0?e.top+=l:d>0?e.top-=d:e.top=i(e.top-a,e.top)}},flip:{left:function(e,t){var i,r,o=t.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,d=e.left-t.collisionPosition.marginLeft,c=d-l,u=d+t.collisionWidth-a-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,f="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,p=-2*t.offset[0];c<0?((i=e.left+h+f+p+t.collisionWidth-a-s)<0||i0&&((r=e.left-t.collisionPosition.marginLeft+h+f+p-l)>0||n(r)0&&((i=e.top-t.collisionPosition.marginTop+h+f+p-l)>0||n(i)"'/]/g,o=/[<>"'/]/g,s="$recursive_request",a="$request_target_invalid",l={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},d={16:!0,17:!0,18:!0},c={8:"backspace",9:"tab",10:"return",13:"return",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={16:"shift",17:"ctrl",18:"alt",91:"meta",93:"meta"},h={0:"",1:"left",2:"middle",3:"right"},f="active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),p={},g="columns types".split(" "),v="checkbox expanded extraClasses folder icon iconTooltip key lazy partsel radiogroup refKey selected statusNodeType title tooltip type unselectable unselectableIgnore unselectableStatus".split(" "),y={},m={},b={active:!0,children:!0,data:!0,focus:!0},x=0;xe.getIndexHier(".",5)},isChildOf:function(e){return this.parent&&this.parent===e},isDescendantOf:function(t){if(t&&t.tree===this.tree)for(var i=this.parent;i;){if(i===t)return!0;i===i.parent&&e.error("Recursive parent link: "+i),i=i.parent}return!1},isExpanded:function(){return!!this.expanded},isFirstSibling:function(){var e=this.parent;return!e||e.children[0]===this},isFolder:function(){return!!this.folder},isLastSibling:function(){var e=this.parent;return!e||e.children[e.children.length-1]===this},isLazy:function(){return!!this.lazy},isLoaded:function(){return!this.lazy||void 0!==this.hasChildren()},isLoading:function(){return!!this._isLoading},isRoot:function(){return this.isRootNode()},isPartsel:function(){return!this.selected&&!!this.partsel},isPartload:function(){return!!this.partload},isRootNode:function(){return this.tree.rootNode===this},isSelected:function(){return!!this.selected},isStatusNode:function(){return!!this.statusNodeType},isPagingNode:function(){return"paging"===this.statusNodeType},isTopLevel:function(){return this.tree.rootNode===this.parent},isUndefined:function(){return void 0===this.hasChildren()},isVisible:function(){var e,t,i=this.tree.enableFilter,n=this.getParentList(!1,!1);if(i&&!this.match&&!this.subMatchCount)return!1;for(e=0,t=n.length;eDate.now()?t.value:(delete this._tempCache[e],null)},_usesExtension:function(t){return 0<=e.inArray(t,this.options.extensions)},_requireExtension:function(t,i,n,r){null!=n&&(n=!!n);var o=this._local.name,s=this.options.extensions,a=(s=e.inArray(t,s)",{type:"checkbox",name:r,value:t.key,checked:!0}))}a.length?a.empty():a=e("
",{id:s}).hide().insertAfter(this.$container),!1!==i&&this.activeNode&&a.append(e("",{type:"radio",name:o,value:this.activeNode.key,checked:!0})),n.filter?this.visit(function(e){var t=n.filter(e);if("skip"===t)return t;!1!==t&&d(e)}):!1!==t&&(s=this.getSelectedNodes(l),e.each(s,function(e,t){d(t)}))},getActiveNode:function(){return this.activeNode},getFirstChild:function(){return this.rootNode.getFirstChild()},getFocusNode:function(){return this.focusNode},getOption:function(e){return this.widget.option(e)},getNodeByKey:function(e,t){var i,n;return!t&&(i=document.getElementById(this.options.idPrefix+e))?i.ftnode||null:(t=t||this.rootNode,n=null,e=""+e,t.visit(function(t){if(t.key===e)return n=t,!1},!0),n)},getRootNode:function(){return this.rootNode},getSelectedNodes:function(e){return this.rootNode.getSelectedNodes(e)},hasFocus:function(){return!!this._hasFocus},info:function(e){3<=this.options.debugLevel&&(Array.prototype.unshift.call(arguments,this.toString()),S("info",arguments))},isLoading:function(){var e=!1;return this.rootNode.visit(function(t){if(t._isLoading||t._requestId)return!(e=!0)},!0),e},loadKeyPath:function(t,i){var n,r,o,s=this,a=new e.Deferred,l=this.getRootNode(),d=this.options.keyPathSeparator,c=[],u=e.extend({},i);for("function"==typeof i?n=i:i&&i.callback&&(n=i.callback),u.callback=function(e,t,i){n&&n.call(e,t,i),a.notifyWith(e,[{node:t,status:i}])},null==u.matchKey&&(u.matchKey=function(e,t){return e.key===t}),_(t)||(t=[t]),r=0;rp)o.rejectWith(this,[s]);else if(null===u.parent&&null!==h)o.rejectWith(this,[a]);else{if(t.options.postProcess){try{(f=c._triggerNodeEvent("postProcess",t,t.originalEvent,{response:n,error:null,dataType:i.dataType})).error&&c.warn("postProcess returned error:",f)}catch(n){f={error:n,message:""+n,details:"postProcess failed"}}if(f.error)return d=e.isPlainObject(f.error)?f.error:{message:f.error},d=c._makeHookContext(u,null,d),void o.rejectWith(this,[d]);(_(f)||e.isPlainObject(f)&&_(f.children))&&(n=f)}else n&&k(n,"d")&&t.options.enableAspx&&(42===t.options.enableAspx&&c.warn("The default for enableAspx will change to `false` in the fututure. Pass `enableAspx: true` or implement postProcess to silence this warning."),n="string"==typeof n.d?e.parseJSON(n.d):n.d);o.resolveWith(this,[n])}},function(e,t,i){e=c._makeHookContext(u,null,{error:e,args:Array.prototype.slice.call(arguments),message:i,details:e.status+": "+i}),o.rejectWith(this,[e])}),o.done(function(i){var n,r,o;c.nodeSetStatus(t,"ok"),e.isPlainObject(i)?(w(u.isRootNode(),"source may only be an object for root nodes (expecting an array of child objects otherwise)"),w(_(i.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),n=(r=i).children,delete r.children,e.each(g,function(e,t){void 0!==r[t]&&(c[t]=r[t],delete r[t])}),e.extend(c.data,r)):n=i,w(_(n),"expected array of children"),u._setChildren(n),c.options.nodata&&0===n.length&&(C(c.options.nodata)?o=c.options.nodata.call(c,{type:"nodata"},t):!0===c.options.nodata&&u.isRootNode()?o=c.options.strings.noData:"string"==typeof c.options.nodata&&u.isRootNode()&&(o=c.options.nodata),o)&&u.setStatus("nodata",o),c._triggerNodeEvent("loadChildren",u)}).fail(function(e){var i;e===s?u.warn("Ignored response for obsolete load request #"+p+" (expected #"+u._requestId+")"):e===a?u.warn("Lazy parent node was removed while loading: discarding response."):(e.node&&e.error&&e.message?i=e:"[object Object]"===(i=c._makeHookContext(u,null,{error:e,args:Array.prototype.slice.call(arguments),message:e?e.message||e.toString():""})).message&&(i.message=""),u.warn("Load children failed ("+i.message+")",i),!1!==c._triggerNodeEvent("loadError",i,null)&&c.nodeSetStatus(t,"error",i.message,i.details))}).always(function(){u._requestId=null,d&&c.debugTimeEnd(f)}),o.promise()},nodeLoadKeyPath:function(e,t){},nodeRemoveChild:function(t,i){var n=t.node,r=e.extend({},t,{node:i}),o=n.children;if(1===o.length)return w(i===o[0],"invalid single child"),this.nodeRemoveChildren(t);this.activeNode&&(i===this.activeNode||this.activeNode.isDescendantOf(i))&&this.activeNode.setActive(!1),this.focusNode&&(i===this.focusNode||this.focusNode.isDescendantOf(i))&&(this.focusNode=null),this.nodeRemoveMarkup(r),this.nodeRemoveChildren(r),w(0<=(t=e.inArray(i,o)),"invalid child"),n.triggerModifyChild("remove",i),i.visit(function(e){e.parent=null},!0),this._callHook("treeRegisterNode",this,!1,i),o.splice(t,1)},nodeRemoveChildMarkup:function(t){(t=t.node).ul&&(t.isRootNode()?e(t.ul).empty():(e(t.ul).remove(),t.ul=null),t.visit(function(e){e.li=e.ul=null}))},nodeRemoveChildren:function(e){var t=e.tree,i=e.node;i.children&&(this.activeNode&&this.activeNode.isDescendantOf(i)&&this.activeNode.setActive(!1),this.focusNode&&this.focusNode.isDescendantOf(i)&&(this.focusNode=null),this.nodeRemoveChildMarkup(e),i.triggerModifyChild("remove",null),i.visit(function(e){e.parent=null,t._callHook("treeRegisterNode",t,!1,e)}),i.lazy?i.children=[]:i.children=null,i.isRootNode()||(i.expanded=!1),this.nodeRenderStatus(e))},nodeRemoveMarkup:function(t){var i=t.node;i.li&&(e(i.li).remove(),i.li=null),this.nodeRemoveChildMarkup(t)},nodeRender:function(t,i,n,r,o){var s,a,l,d,c,u,h,f=t.node,p=t.tree,g=t.options,v=g.aria,y=!1,m=f.parent,b=!m,x=f.children,_=null;if(!1!==p._enableUpdate&&(b||m.ul)){if(w(b||m.ul,"parent UL must exist"),b||(f.li&&(i||f.li.parentNode!==f.parent.ul)&&(f.li.parentNode===f.parent.ul?_=f.li.nextSibling:this.debug("Unlinking "+f+" (must be child of "+f.parent+")"),this.nodeRemoveMarkup(t)),f.li?this.nodeRenderStatus(t):(y=!0,f.li=document.createElement("li"),(f.li.ftnode=f).key&&g.generateIds&&(f.li.id=g.idPrefix+f.key),f.span=document.createElement("span"),f.span.className="fancytree-node",v&&!f.tr&&e(f.li).attr("role","treeitem"),f.li.appendChild(f.span),this.nodeRenderTitle(t),g.createNode&&g.createNode.call(p,{type:"createNode"},t)),g.renderNode&&g.renderNode.call(p,{type:"renderNode"},t)),x){if(b||f.expanded||!0===n){for(f.ul||(f.ul=document.createElement("ul"),(!0!==r||o)&&f.expanded||(f.ul.style.display="none"),v&&e(f.ul).attr("role","group"),f.li?f.li.appendChild(f.ul):f.tree.$div.append(f.ul)),d=0,c=x.length;d")):u.push(""),(c=i.evalOption("checkbox",s,s,l,!1))&&!s.isStatusNode()&&(o="fancytree-checkbox",("radio"===c||s.parent&&s.parent.radiogroup)&&(o+=" fancytree-radio"),u.push("")),void 0!==s.data.iconClass&&(s.icon?e.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead"):(s.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead"),s.icon=s.data.iconClass)),!1!==(c=i.evalOption("icon",s,s,l,!0))&&(r=d?" role='presentation'":"",o=(o=i.evalOption("iconTooltip",s,s,l,null))?" title='"+P(o)+"'":"","string"==typeof c?n.test(c)?(c="/"===c.charAt(0)?c:(l.imagePath||"")+c,u.push("")):u.push(""):c.text?u.push(""+i.escapeHtml(c.text)+""):c.html?u.push(""+c.html+""):u.push("")),d="",d=(d=l.renderTitle?l.renderTitle.call(a,{type:"renderTitle"},t)||"":d)||""+(l.escapeTitles?i.escapeHtml(s.title):s.title)+"",u.push(d),s.span.innerHTML=u.join(""),this.nodeRenderStatus(t),l.enhanceTitle)&&(t.$title=e(">span.fancytree-title",s.span),l.enhanceTitle.call(a,{type:"enhanceTitle"},t))},nodeRenderStatus:function(t){var n,r=t.node,o=t.tree,s=(t=t.options,r.hasChildren()),a=r.isLastSibling(),l=t.aria,d=t._classNames,c=[],u=r[o.statusClassPropName];u&&!1!==o._enableUpdate&&(l&&(n=e(r.tr||r.li)),c.push(d.node),o.activeNode===r&&c.push(d.active),o.focusNode===r&&c.push(d.focused),r.expanded&&c.push(d.expanded),l&&(!1===s?n.removeAttr("aria-expanded"):n.attr("aria-expanded",Boolean(r.expanded))),r.folder&&c.push(d.folder),!1!==s&&c.push(d.hasChildren),a&&c.push(d.lastsib),r.lazy&&null==r.children&&c.push(d.lazy),r.partload&&c.push(d.partload),r.partsel&&c.push(d.partsel),i.evalOption("unselectable",r,r,t,!1)&&c.push(d.unselectable),r._isLoading&&c.push(d.loading),r._error&&c.push(d.error),r.statusNodeType&&c.push(d.statusNodePrefix+r.statusNodeType),r.selected?(c.push(d.selected),l&&n.attr("aria-selected",!0)):l&&n.attr("aria-selected",!1),r.extraClasses&&c.push(r.extraClasses),c.push(!1===s?d.combinedExpanderPrefix+"n"+(a?"l":""):d.combinedExpanderPrefix+(r.expanded?"e":"c")+(r.lazy&&null==r.children?"d":"")+(a?"l":"")),c.push(d.combinedIconPrefix+(r.expanded?"e":"c")+(r.folder?"f":"")),u.className=c.join(" "),r.li)&&e(r.li).toggleClass(d.lastsib,a)},nodeSetActive:function(t,i,n){var r=t.node,o=t.tree,s=t.options,a=!0===(n=n||{}).noEvents,l=!0===n.noFocus,d=(n=!1!==n.scrollIntoView,r===o.activeNode);if(d!=(i=!1!==i)){if(n&&t.originalEvent&&e(t.originalEvent.target).is("a,:checkbox")&&(r.info("Not scrolling while clicking an embedded link."),n=!1),i&&!a&&!1===this._triggerNodeEvent("beforeActivate",r,t.originalEvent))return A(r,["rejected"]);i?(o.activeNode&&(w(o.activeNode!==r,"node was active (inconsistency)"),d=e.extend({},t,{node:o.activeNode}),o.nodeSetActive(d,!1),w(null===o.activeNode,"deactivate was out of sync?")),s.activeVisible&&r.makeVisible({scrollIntoView:n}),o.activeNode=r,o.nodeRenderStatus(t),l||o.nodeSetFocus(t),a||o._triggerNodeEvent("activate",r,t.originalEvent)):(w(o.activeNode===r,"node was not active (inconsistency)"),o.activeNode=null,this.nodeRenderStatus(t),a||t.tree._triggerNodeEvent("deactivate",r,t.originalEvent))}return T(r)},nodeSetExpanded:function(t,i,n){var r,o,s,a,l,d,c=t.node,u=t.tree,h=t.options,f=!0===(n=n||{}).noAnimation,p=!0===n.noEvents;if(i=!1!==i,e(c.li).hasClass(h._classNames.animating))return c.warn("setExpanded("+i+") while animating: ignored."),A(c,["recursion"]);if(c.expanded&&i||!c.expanded&&!i)return T(c);if(i&&!c.lazy&&!c.hasChildren())return T(c);if(!i&&c.getLevel()ul.fancytree-container").empty(),t.rootNode.children=null,t._callHook("treeStructureChanged",e,"clear")},treeCreate:function(e){},treeDestroy:function(e){this.$div.find(">ul.fancytree-container").remove(),this.$source&&this.$source.removeClass("fancytree-helper-hidden")},treeInit:function(t){var i=t.tree,n=i.options;i.$container.attr("tabindex",n.tabindex),e.each(g,function(e,t){void 0!==n[t]&&(i.info("Move option "+t+" to tree"),i[t]=n[t],delete n[t])}),n.checkboxAutoHide&&i.$container.addClass("fancytree-checkbox-auto-hide"),n.rtl?i.$container.attr("DIR","RTL").addClass("fancytree-rtl"):i.$container.removeAttr("DIR").removeClass("fancytree-rtl"),n.aria&&(i.$container.attr("role","tree"),1!==n.selectMode)&&i.$container.attr("aria-multiselectable",!0),this.treeLoad(t)},treeLoad:function(t,n){var r,o,s,a=t.tree,l=t.widget.element,d=e.extend({},t,{node:this.rootNode});if(a.rootNode.children&&this.treeClear(t),n=n||this.options.source)"string"==typeof n&&e.error("Not implemented");else switch(o=l.data("type")||"html"){case"html":(s=l.find(">ul").not(".fancytree-container").first()).length?(s.addClass("ui-fancytree-source fancytree-helper-hidden"),n=e.ui.fancytree.parseHtml(s),this.data=e.extend(this.data,H(s))):(i.warn("No `source` option was passed and container does not contain `
    `: assuming `source: []`."),n=[]);break;case"json":n=e.parseJSON(l.text()),l.contents().filter(function(){return 3===this.nodeType}).remove(),e.isPlainObject(n)&&(w(_(n.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),n=(r=n).children,delete r.children,e.each(g,function(e,t){void 0!==r[t]&&(a[t]=r[t],delete r[t])}),e.extend(a.data,r));break;default:e.error("Invalid data-type: "+o)}return a._triggerTreeEvent("preInit",null),this.nodeLoadChildren(d,n).done(function(){a._callHook("treeStructureChanged",t,"loadChildren"),a.render(),3===t.options.selectMode&&a.rootNode.fixSelection3FromEndNodes(),a.activeNode&&a.options.activeVisible&&a.activeNode.makeVisible(),a._triggerTreeEvent("init",null,{status:!0})}).fail(function(){a.render(),a._triggerTreeEvent("init",null,{status:!1})})},treeRegisterNode:function(e,t,i){e.tree._callHook("treeStructureChanged",e,t?"addNode":"removeNode")},treeSetFocus:function(t,i,n){(i=!1!==i)!==this.hasFocus()&&(!(this._hasFocus=i)&&this.focusNode?this.focusNode.setFocus(!1):!i||n&&n.calledByNode||e(this.$container).trigger("focus"),this.$container.toggleClass("fancytree-treefocus",i),this._triggerTreeEvent(i?"focusTree":"blurTree"),i)&&!this.activeNode&&(n=this._lastMousedownNode||this.getFirstChild())&&n.setFocus()},treeSetOption:function(t,i,n){var r=t.tree,o=!0,s=!1,a=!1;switch(i){case"aria":case"checkbox":case"icon":case"minExpandLevel":case"tabindex":a=s=!0;break;case"checkboxAutoHide":r.$container.toggleClass("fancytree-checkbox-auto-hide",!!n);break;case"escapeTitles":case"tooltip":a=!0;break;case"rtl":!1===n?r.$container.removeAttr("DIR").removeClass("fancytree-rtl"):r.$container.attr("DIR","RTL").addClass("fancytree-rtl"),a=!0;break;case"source":o=!1,r._callHook("treeLoad",r,n),a=!0}r.debug("set option "+i+"="+n+" <"+typeof n+">"),o&&(this.widget._super||e.Widget.prototype._setOption).call(this.widget,i,n),s&&r._callHook("treeCreate",r),a&&r.render(!0,!1)},treeStructureChanged:function(e,t){}}),e.widget("ui.fancytree",{options:{activeVisible:!0,ajax:{type:"GET",cache:!1,dataType:"json"},aria:!0,autoActivate:!0,autoCollapse:!1,autoScroll:!1,checkbox:!1,clickFolderMode:4,copyFunctionsToData:!1,debugLevel:null,disabled:!1,enableAspx:42,escapeTitles:!1,extensions:[],focusOnSelect:!1,generateIds:!1,icon:!0,idPrefix:"ft_",keyboard:!0,keyPathSeparator:"/",minExpandLevel:1,nodata:!0,quicksearch:!1,rtl:!1,scrollOfs:{top:0,bottom:0},scrollParent:null,selectMode:2,strings:{loading:"Loading...",loadError:"Load error!",moreData:"More...",noData:"No data."},tabindex:"0",titlesTabbable:!1,toggleEffect:{effect:"slideToggle",duration:200},tooltip:!1,treeId:null,_classNames:{active:"fancytree-active",animating:"fancytree-animating",combinedExpanderPrefix:"fancytree-exp-",combinedIconPrefix:"fancytree-ico-",error:"fancytree-error",expanded:"fancytree-expanded",focused:"fancytree-focused",folder:"fancytree-folder",hasChildren:"fancytree-has-children",lastsib:"fancytree-lastsib",lazy:"fancytree-lazy",loading:"fancytree-loading",node:"fancytree-node",partload:"fancytree-partload",partsel:"fancytree-partsel",radio:"fancytree-radio",selected:"fancytree-selected",statusNodePrefix:"fancytree-statusnode-",unselectable:"fancytree-unselectable"},lazyLoad:null,postProcess:null},_deprecationWarning:function(e){var t=this.tree;t&&3<=t.options.debugLevel&&t.warn("$().fancytree('"+e+"') is deprecated (see https://wwwendt.de/tech/fancytree/doc/jsdoc/Fancytree_Widget.html")},_create:function(){this.tree=new I(this),this.$source=this.source||"json"===this.element.data("type")?this.element:this.element.find(">ul").first();for(var t,i,n=this.options,r=n.extensions,o=(this.tree,0);o element.");else{if(o){if(r._getExpiringValue("focusin"))return void r.debug("Ignored double focusin.");r._setExpiringValue("focusin",!0,50),n||(n=r._getExpiringValue("mouseDownNode"))&&r.debug("Reconstruct mouse target for focusin from recent event.")}n?r._callHook("nodeSetFocus",r._makeHookContext(n,t),o):r.tbody&&e(t.target).parents("table.fancytree-container > thead").length?r.debug("Ignore focus event outside table body.",t):r._callHook("treeSetFocus",r,o)}}).on("selectstart"+o,"span.fancytree-title",function(e){e.preventDefault()}).on("keydown"+o,function(e){if(n.disabled||!1===n.keyboard)return!0;var t,i=r.focusNode,o=r._makeHookContext(i||r,e),s=r.phase;try{return r.phase="userEvent","preventNav"===(t=i?r._triggerNodeEvent("keydown",i,e):r._triggerTreeEvent("keydown",e))?t=!0:!1!==t&&(t=r._callHook("nodeKeydown",o)),t}finally{r.phase=s}}).on("mousedown"+o,function(e){e=i.getEventTarget(e),r._lastMousedownNode=e?e.node:null,r._setExpiringValue("mouseDownNode",r._lastMousedownNode)}).on("click"+o+" dblclick"+o,function(e){if(n.disabled)return!0;var r,o=i.getEventTarget(e),s=o.node,a=t.tree,l=a.phase;if(!s)return!0;r=a._makeHookContext(s,e);try{switch(a.phase="userEvent",e.type){case"click":return r.targetType=o.type,s.isPagingNode()?!0===a._triggerNodeEvent("clickPaging",r,e):!1!==a._triggerNodeEvent("click",r,e)&&a._callHook("nodeClick",r);case"dblclick":return r.targetType=o.type,!1!==a._triggerNodeEvent("dblclick",r,e)&&a._callHook("nodeDblclick",r)}}finally{a.phase=l}})},getActiveNode:function(){return this._deprecationWarning("getActiveNode"),this.tree.activeNode},getNodeByKey:function(e){return this._deprecationWarning("getNodeByKey"),this.tree.getNodeByKey(e)},getRootNode:function(){return this._deprecationWarning("getRootNode"),this.tree.rootNode},getTree:function(){return this._deprecationWarning("getTree"),this.tree}}),i=e.ui.fancytree,e.extend(e.ui.fancytree,{version:"2.38.5",buildType:"production",debugLevel:3,_nextId:1,_nextNodeKey:1,_extensions:{},_FancytreeClass:I,_FancytreeNodeClass:O,jquerySupports:{positionMyOfs:function(t){for(var i,n,r=e.map(N(t).split("."),function(e){return parseInt(e,10)}),o=e.map(Array.prototype.slice.call(arguments,1),function(e){return parseInt(e,10)}),s=0;sli"),u=[];return c.each(function(){var c,h,g=e(this),y=g.find(">span",this).first(),b=y.length?null:g.find(">a").first(),x={tooltip:null,data:{}};for(y.length?x.title=y.html():b&&b.length?(x.title=b.html(),x.data.href=b.attr("href"),x.data.target=b.attr("target"),x.tooltip=b.attr("title")):(x.title=g.html(),0<=(s=x.title.search(/
      ul").first()).length?x.children=e.ui.fancytree.parseHtml(t):x.children=x.lazy?void 0:null,u.push(x)}),u},registerExtension:function(t){w(null!=t.name,"extensions must have a `name` property."),w(null!=t.version,"extensions must have a `version` property."),e.ui.fancytree._extensions[t.name]=t},trim:N,unescapeHtml:function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue},warn:function(t){2<=e.ui.fancytree.debugLevel&&S("warn",arguments)}}),e.ui.fancytree}function w(t,i){t||(i="Fancytree assertion failed"+(i=i?": "+i:""),e.ui&&e.ui.fancytree&&e.ui.fancytree.error(i),e.error(i))}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function C(e){return"function"==typeof e}function N(e){return null==e?"":e.trim()}function S(e,t){var i,n;if(e=window.console?window.console[e]:null)try{e.apply(window.console,t)}catch(r){for(n="",i=0;iul.fancytree-container").remove(),this.rootNode=new O({tree:this},{title:"root",key:"root_"+this._id,children:null,expanded:!0}),this.rootNode.parent=null,t=e("
        ",{id:"ft-id-"+this._id,class:"ui-fancytree fancytree-container fancytree-plain"}).appendTo(this.$div),this.$container=t,this.rootNode.ul=t[0],null==this.options.debugLevel&&(this.options.debugLevel=i.debugLevel)}e.ui.fancytree.warn("Fancytree: ignored duplicate include")}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(e){"use strict";var t="__not_found__",i=e.ui.fancytree.escapeHtml;function n(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function r(t){return t.indexOf(">")>=0?e("
        ").html(t).text():t}function o(e,t,i){for(var n=[],r=1;r"}),s.join("")}return e.ui.fancytree._FancytreeClass.prototype._applyFilterImpl=function(s,a,l){var d,c,u,h,f,p,g,v,y=0,m=this.options,b=m.escapeTitles,x=m.autoCollapse,_=e.extend({},m.filter,l),w="hide"===_.mode,k=!!_.leavesOnly&&!a;if("string"==typeof s){if(""===s)return this.warn("Fancytree passing an empty string as a filter is handled as clearFilter()."),void this.clearFilter();d=_.fuzzy?s.split("").map(n).reduce(function(e,t){return e+"([^"+t+"]*)"+t},""):n(s),u=new RegExp(d,"i"),h=new RegExp(n(s),"gi"),b&&(f=new RegExp(n("￷"),"g"),p=new RegExp(n("￸"),"g")),s=function(e){if(!e.title)return!1;var t=b?e.title:r(e.title),n=t.match(u);return n&&_.highlight&&(b?(g=_.fuzzy?o(t,n,b):t.replace(h,function(e){return"￷"+e+"￸"}),e.titleWithHighlight=i(g).replace(f,"").replace(p,"")):_.fuzzy?e.titleWithHighlight=o(t,n):e.titleWithHighlight=t.replace(h,function(e){return""+e+""})),!!n}}return this.enableFilter=!0,this.lastFilterArgs=arguments,v=this.enableUpdate(!1),this.$div.addClass("fancytree-ext-filter"),w?this.$div.addClass("fancytree-ext-filter-hide"):this.$div.addClass("fancytree-ext-filter-dimm"),this.$div.toggleClass("fancytree-ext-filter-hide-expanders",!!_.hideExpanders),this.rootNode.subMatchCount=0,this.visit(function(e){delete e.match,delete e.titleWithHighlight,e.subMatchCount=0}),(c=this.getRootNode()._findDirectChild(t))&&c.remove(),m.autoCollapse=!1,this.visit(function(e){if(!k||null==e.children){var t=s(e),i=!1;if("skip"===t)return e.visit(function(e){e.match=!1},!0),"skip";t||!a&&"branch"!==t||!e.parent.match||(t=!0,i=!0),t&&(y++,e.match=!0,e.visitParents(function(t){t!==e&&(t.subMatchCount+=1),!_.autoExpand||i||t.expanded||(t.setExpanded(!0,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),t._filterAutoExpanded=!0)},!0))}}),m.autoCollapse=x,0===y&&_.nodata&&w&&("function"==typeof(c=_.nodata)&&(c=c()),!0===c?c={}:"string"==typeof c&&(c={title:c}),c=e.extend({statusNodeType:"nodata",key:t,title:this.options.strings.noData},c),this.getRootNode().addNode(c).match=!0),this._callHook("treeStructureChanged",this,"applyFilter"),this.enableUpdate(v),y},e.ui.fancytree._FancytreeClass.prototype.filterNodes=function(e,t){return"boolean"==typeof t&&(t={leavesOnly:t},this.warn("Fancytree.filterNodes() leavesOnly option is deprecated since 2.9.0 / 2015-04-19. Use opts.leavesOnly instead.")),this._applyFilterImpl(e,!1,t)},e.ui.fancytree._FancytreeClass.prototype.filterBranches=function(e,t){return this._applyFilterImpl(e,!0,t)},e.ui.fancytree._FancytreeClass.prototype.updateFilter=function(){this.enableFilter&&this.lastFilterArgs&&this.options.filter.autoApply?this._applyFilterImpl.apply(this,this.lastFilterArgs):this.warn("updateFilter(): no filter active.")},e.ui.fancytree._FancytreeClass.prototype.clearFilter=function(){var i,n=this.getRootNode()._findDirectChild(t),r=this.options.escapeTitles,o=this.options.enhanceTitle,s=this.enableUpdate(!1);n&&n.remove(),delete this.rootNode.match,delete this.rootNode.subMatchCount,this.visit(function(t){t.match&&t.span&&(i=e(t.span).find(">span.fancytree-title"),r?i.text(t.title):i.html(t.title),o&&o({type:"enhanceTitle"},{node:t,$title:i})),delete t.match,delete t.subMatchCount,delete t.titleWithHighlight,t.$subMatchBadge&&(t.$subMatchBadge.remove(),delete t.$subMatchBadge),t._filterAutoExpanded&&t.expanded&&t.setExpanded(!1,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),delete t._filterAutoExpanded}),this.enableFilter=!1,this.lastFilterArgs=null,this.$div.removeClass("fancytree-ext-filter fancytree-ext-filter-dimm fancytree-ext-filter-hide"),this._callHook("treeStructureChanged",this,"clearFilter"),this.enableUpdate(s)},e.ui.fancytree._FancytreeClass.prototype.isFilterActive=function(){return!!this.enableFilter},e.ui.fancytree._FancytreeNodeClass.prototype.isMatched=function(){return!(this.tree.enableFilter&&!this.match)},e.ui.fancytree.registerExtension({name:"filter",version:"@VERSION",options:{autoApply:!0,autoExpand:!1,counter:!0,fuzzy:!1,hideExpandedCounter:!0,hideExpanders:!1,highlight:!0,leavesOnly:!1,nodata:!0,mode:"dimm"},nodeLoadChildren:function(e,t){var i=e.tree;return this._superApply(arguments).done(function(){i.enableFilter&&i.lastFilterArgs&&e.options.filter.autoApply&&i._applyFilterImpl.apply(i,i.lastFilterArgs)})},nodeSetExpanded:function(e,t,i){var n=e.node;return delete n._filterAutoExpanded,!t&&e.options.filter.hideExpandedCounter&&n.$subMatchBadge&&n.$subMatchBadge.show(),this._superApply(arguments)},nodeRenderStatus:function(t){var i,n=t.node,r=t.tree,o=t.options.filter,s=e(n.span).find("span.fancytree-title"),a=e(n[r.statusClassPropName]),l=t.options.enhanceTitle,d=t.options.escapeTitles;return i=this._super(t),a.length&&r.enableFilter?(a.toggleClass("fancytree-match",!!n.match).toggleClass("fancytree-submatch",!!n.subMatchCount).toggleClass("fancytree-hide",!(n.match||n.subMatchCount)),!o.counter||!n.subMatchCount||n.isExpanded()&&o.hideExpandedCounter?n.$subMatchBadge&&n.$subMatchBadge.hide():(n.$subMatchBadge||(n.$subMatchBadge=e(""),e("span.fancytree-icon, span.fancytree-custom-icon",n.span).append(n.$subMatchBadge)),n.$subMatchBadge.show().text(n.subMatchCount)),!n.span||n.isEditing&&n.isEditing.call(n)||(n.titleWithHighlight?s.html(n.titleWithHighlight):d?s.text(n.title):s.html(n.title),l&&l({type:"enhanceTitle"},{node:n,$title:s})),i):i}}),e.ui.fancytree});