PageSourceSearch

https://ncmec.org/etc.clientlibs/foundation/clientlibs/jquery-ui.js

js ncmec.org collected 2026-09-24 06:44:49 UTC 9,741 bytes, 19 lines download raw bytes

1(function(jQuery,$){(function(jQuery,undefined){function newTmplItem(options,parentItem,fn,data){var newItem={data:data||(parentItem?parentItem.data:{}),_wrap:parentItem?parentItem._wrap:null,tmpl:null,parent:parentItem||null,nodes:[],calls:tiCalls,nest:tiNest,wrap:tiWrap,html:tiHtml,update:tiUpdate};if(options)jQuery.extend(newItem,options,{nodes:[],parent:parentItem});if(fn){newItem.tmpl=fn;newItem._ctnt=newItem._ctnt||newItem.tmpl(jQuery,newItem);newItem.key=++itemKey;(stack.length?wrappedItems:
2newTmplItems)[itemKey]=newItem}return newItem}function build(tmplItem,nested,content){var frag;var ret=content?jQuery.map(content,function(item){return typeof item==="string"?tmplItem.key?item.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+tmplItmAtt+'\x3d"'+tmplItem.key+'" $2'):item:build(item,tmplItem,item._ctnt)}):tmplItem;if(nested)return ret;ret=ret.join("");ret.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(all,before,middle,after){frag=jQuery(middle).get();storeTmplItems(frag);
3if(before)frag=unencode(before).concat(frag);if(after)frag=frag.concat(unencode(after))});return frag?frag:unencode(ret)}function unencode(text){var el=document.createElement("div");el.innerHTML=text;return jQuery.makeArray(el.childNodes)}function buildTmplFn(markup){return new Function("jQuery","$item","var $\x3djQuery,call,_\x3d[],$data\x3d$item.data;"+"with($data){_.push('"+jQuery.trim(markup).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{\x3d $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,
4function(all,slash,type,fnargs,target,parens,args){var tag=jQuery.tmpl.tag[type];var def;var expr;var exprAutoFnDetect;if(!tag)throw"Template command not found: "+type;def=tag._default||[];if(parens&&!/\w$/.test(target)){target=target+parens;parens=""}if(target){target=unescape(target);args=args?","+unescape(args)+")":parens?")":"";expr=parens?target.indexOf(".")>-1?target+parens:"("+target+").call($item"+args:target;exprAutoFnDetect=parens?expr:"(typeof("+target+")\x3d\x3d\x3d'function'?("+target+
5").call($item):("+target+"))"}else exprAutoFnDetect=expr=def.$1||"null";fnargs=unescape(fnargs);return"');"+tag[slash?"close":"open"].split("$notnull_1").join(target?"typeof("+target+")!\x3d\x3d'undefined' \x26\x26 ("+target+")!\x3dnull":"true").split("$1a").join(exprAutoFnDetect).split("$1").join(expr).split("$2").join(fnargs?fnargs.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g,function(all,name,parens,params){params=params?","+params+")":parens?")":"";return params?"("+name+").call($item"+params:all}):
6def.$2||"")+"_.push('"})+"');}return _;")}function updateWrapped(options,wrapped){options._wrap=build(options,true,jQuery.isArray(wrapped)?wrapped:[htmlExpr.test(wrapped)?wrapped:jQuery(wrapped).html()]).join("")}function unescape(args){return args?args.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function outerHtml(elem){var div=document.createElement("div");div.appendChild(elem.cloneNode(true));return div.innerHTML}function storeTmplItems(content){function processItemKey(el){function cloneTmplItem(key){key=
7key+keySuffix;tmplItem=newClonedItems[key]=newClonedItems[key]||newTmplItem(tmplItem,newTmplItems[tmplItem.parent.key+keySuffix]||tmplItem.parent,null,true)}var pntKey;var pntNode=el;var pntItem;var tmplItem;var key;if(key=el.getAttribute(tmplItmAtt)){for(;pntNode.parentNode&&(pntNode=pntNode.parentNode).nodeType===1&&!(pntKey=pntNode.getAttribute(tmplItmAtt)););if(pntKey!==key){pntNode=pntNode.parentNode?pntNode.nodeType===11?0:pntNode.getAttribute(tmplItmAtt)||0:0;if(!(tmplItem=newTmplItems[key])){tmplItem=
8wrappedItems[key];tmplItem=newTmplItem(tmplItem,newTmplItems[pntNode]||wrappedItems[pntNode],null,true);tmplItem.key=++itemKey;newTmplItems[itemKey]=tmplItem}if(cloneIndex)cloneTmplItem(key)}el.removeAttribute(tmplItmAtt)}else if(cloneIndex&&(tmplItem=jQuery.data(el,"tmplItem"))){cloneTmplItem(tmplItem.key);newTmplItems[tmplItem.key]=tmplItem;pntNode=jQuery.data(el.parentNode,"tmplItem");pntNode=pntNode?pntNode.key:0}if(tmplItem){pntItem=tmplItem;for(;pntItem&&pntItem.key!=pntNode;){pntItem.nodes.push(el);
9pntItem=pntItem.parent}delete tmplItem._ctnt;delete tmplItem._wrap;jQuery.data(el,"tmplItem",tmplItem)}}var keySuffix="_"+cloneIndex;var elem;var elems;var newClonedItems={};var i;var l;var m;i=0,l=content.length;for(;i<l;i++){if((elem=content[i]).nodeType!==1)continue;elems=elem.getElementsByTagName("*");m=elems.length-1;for(;m>=0;m--)processItemKey(elems[m]);processItemKey(elem)}}function tiCalls(content,tmpl,data,options){if(!content)return stack.pop();stack.push({_:content,tmpl:tmpl,item:this,
10data:data,options:options})}function tiNest(tmpl,data,options){return jQuery.tmpl(jQuery.template(tmpl),data,options,this)}function tiWrap(call,wrapped){var options=call.options||{};options.wrapped=wrapped;return jQuery.tmpl(jQuery.template(call.tmpl),call.data,options,call.item)}function tiHtml(filter,textOnly){var wrapped=this._wrap;return jQuery.map(jQuery(jQuery.isArray(wrapped)?wrapped.join(""):wrapped).filter(filter||"*"),function(e){return textOnly?e.innerText||e.textContent:e.outerHTML||outerHtml(e)}
10)}
11function tiUpdate(){var coll=this.nodes;jQuery.tmpl(null,null,null,this).insertBefore(coll[0]);jQuery(coll).remove()}var oldManip=jQuery.fn.domManip;var tmplItmAtt="_tmplitem";var htmlExpr=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{! /;var newTmplItems={};var wrappedItems={};var appendToTmplItems;var topTmplItem={key:0,data:{}};var itemKey=0;var cloneIndex=0;var stack=[];jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=
12function(selector){var ret=[];var insert=jQuery(selector);var elems;var i;var l;var tmplItems;var parent=this.length===1&&this[0].parentNode;appendToTmplItems=newTmplItems||{};if(parent&&parent.nodeType===11&&parent.childNodes.length===1&&insert.length===1){insert[original](this[0]);ret=this}else{i=0,l=insert.length;for(;i<l;i++){cloneIndex=i;elems=(i>0?this.clone(true):this).get();jQuery.fn[original].apply(jQuery(insert[i]),elems);ret=ret.concat(elems)}cloneIndex=0;ret=this.pushStack(ret,name,insert.selector)}tmplItems=
13appendToTmplItems;appendToTmplItems=null;jQuery.tmpl.complete(tmplItems);return ret}});jQuery.fn.extend({tmpl:function(data,options,parentItem){return jQuery.tmpl(this[0],data,options,parentItem)},tmplItem:function(){return jQuery.tmplItem(this[0])},template:function(name){return jQuery.template(name,this[0])},domManip:function(args,table,callback,options){if(args[0]&&args[0].nodeType){var dmArgs=jQuery.makeArray(arguments);var argsLength=args.length;var i=0;var tmplItem;for(;i<argsLength&&!(tmplItem=
14jQuery.data(args[i++],"tmplItem")););if(argsLength>1)dmArgs[0]=[jQuery.makeArray(args)];if(tmplItem&&cloneIndex)dmArgs[2]=function(fragClone){jQuery.tmpl.afterManip(this,fragClone,callback)};oldManip.apply(this,dmArgs)}else oldManip.apply(this,arguments);cloneIndex=0;if(!appendToTmplItems)jQuery.tmpl.complete(newTmplItems);return this}});jQuery.extend({tmpl:function(tmpl,data,options,parentItem){var ret;var topLevel=!parentItem;if(topLevel){parentItem=topTmplItem;tmpl=jQuery.template[tmpl]||jQuery.template(null,
15tmpl);wrappedItems={}}else if(!tmpl){tmpl=parentItem.tmpl;newTmplItems[parentItem.key]=parentItem;parentItem.nodes=[];if(parentItem.wrapped)updateWrapped(parentItem,parentItem.wrapped);return jQuery(build(parentItem,null,parentItem.tmpl(jQuery,parentItem)))}if(!tmpl)return[];if(typeof data==="function")data=data.call(parentItem||{});if(options&&options.wrapped)updateWrapped(options,options.wrapped);ret=jQuery.isArray(data)?jQuery.map(data,function(dataItem){return dataItem?newTmplItem(options,parentItem,
16tmpl,dataItem):null}):[newTmplItem(options,parentItem,tmpl,data)];return topLevel?jQuery(build(parentItem,null,ret)):ret},tmplItem:function(elem){var tmplItem;if(elem instanceof jQuery)elem=elem[0];for(;elem&&elem.nodeType===1&&!(tmplItem=jQuery.data(elem,"tmplItem"))&&(elem=elem.parentNode););return tmplItem||topTmplItem},template:function(name,tmpl){if(tmpl){if(typeof tmpl==="string")tmpl=buildTmplFn(tmpl);else if(tmpl instanceof jQuery)tmpl=tmpl[0]||{};if(tmpl.nodeType)tmpl=jQuery.data(tmpl,"tmpl")||
17jQuery.data(tmpl,"tmpl",buildTmplFn(tmpl.innerHTML));return typeof name==="string"?jQuery.template[name]=tmpl:tmpl}return name?typeof name!=="string"?jQuery.template(null,name):jQuery.template[name]||jQuery.template(null,htmlExpr.test(name)?name:jQuery(name)):null},encode:function(text){return(""+text).split("\x3c").join("\x26lt;").split("\x3e").join("\x26gt;").split('"').join("\x26#34;").split("'").join("\x26#39;")}});jQuery.extend(jQuery.tmpl,{tag:{"tmpl":{_default:{$2:"null"},open:"if($notnull_1){_\x3d_.concat($item.nest($1,$2));}"},
18"wrap":{_default:{$2:"null"},open:"$item.calls(_,$1,$2);_\x3d[];",close:"call\x3d$item.calls();_\x3dcall._.concat($item.wrap(call,_));"},"each":{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) \x26\x26 $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) \x26\x26 $1a){"},"html":{open:"if($notnull_1){_.push($1a);}"},"\x3d":{_default:{$1:"$data"},open:"if($notnull_1){_.push($.encode($1a));}"},"!":{open:""}},
19complete:function(items){newTmplItems={}},afterManip:function afterManip(elem,fragClone,callback){var content=fragClone.nodeType===11?jQuery.makeArray(fragClone.childNodes):fragClone.nodeType===1?[fragClone]:[];callback.call(elem,fragClone);
19storeTmplItems(content);cloneIndex++}})})(jQuery)})(window.$CQ||window.$||function(){throw new Error("jQuery is not defined");}(),window.$CQ||window.$);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.