text: define(["./core","./var/isFunction","./core/init","./manipulation","./traversing"],function(a,b){a.fn.extend({wrapAll:function(c){var d;if(this[0]){if(b(c)){c=c.call(this[0])}d=a(c,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){d.insertBefore(this[0])}d.map(function(){var e=this;while(e.firstElementChild){e=e.firstElementChild}return e}).append(this)}return this},wrapInner:function(c){if(b(c)){return this.each(function(d){a(this).wrapInner(c.call(this,d))})}return this.each(function(){var d=a(this),e=d.contents();if(e.length){e.wrapAll(c)}else{d.append(c)}})},wrap:function(c){var d=b(c);return this.each(function(e){a(this).wrapAll(d?c.call(this,e):c)})},unwrap:function(c){this.parent(c).not("body").each(function(){a(this).replaceWith(this.childNodes)});return this}});return a});