1"use strict";(self.webpackChunkpackage=self.webpackChunkpackage||[]).push([[797],{7578:function(w,d,f){f.r(d);/*! 2 * dotdotdot JS 4.1.0 3 * 4 * dotdotdot.frebsite.nl 5 * 6 * Copyright (c) Fred Heusschen 7 * www.frebsite.nl 8 * 9 * License: CC-BY-NC-4.0 10 * http://creativecommons.org/licenses/by-nc/4.0/ 11 */var p=function(){function o(e,i){i===void 0&&(i=o.options);var n=this;for(var t in this.container=e,this.options=i||{},this.watchTimeout=null,this.watchInterval=null,this.resizeEvent=null,o.options)o.options.hasOwnProperty(t)&&this.options[t]===void 0&&(this.options[t]=o.options[t]);var r=this.container.dotdotdot;r&&r.destroy(),this.API={},["truncate","restore","destroy","watch","unwatch"].forEach(function(s){n.API[s]=function(){return n[s].call(n)}}),this.container.dotdotdot=this.API,this.originalStyle=this.container.getAttribute("style")||"",this.originalContent=this._getOriginalContent(),this.ellipsis=document.createTextNode(this.options.ellipsis);var a=window.getComputedStyle(this.container);a["word-wrap"]!=="break-word"&&(this.container.style["word-wrap"]="break-word"),a["white-space"]==="pre"?this.container.style["white-space"]="pre-wrap":a["white-space"]==="nowrap"&&(this.container.style["white-space"]="normal"),this.options.height===null&&(this.options.height=this._getMaxHeight()),this.truncate(),this.options.watch&&this.watch()}return o.prototype.restore=function(){var e=this;this.unwatch(),this.container.setAttribute("style",this.originalStyle),this.container.classList.remove("ddd-truncated"),this.container.innerHTML="",this.originalContent.forEach(function(i){e.container.append(i)})},o.prototype.destroy=function(){this.restore(),this.container.dotdotdot=null},o.prototype.watch=function(){var e=this;this.unwatch();var i={width:null,height:null},n=function(t,r,a){if(e.container.offsetWidth||e.container.offsetHeight||e.container.getClientRects().length){var s={width:t[r],height:t[a]};return i.width==s.width&&i.height==s.height||e.truncate(),s}return i};this.options.watch==="window"?(this.resizeEvent=function(t){e.watchTimeout&&clearTimeout(e.watchTimeout),e.watchTimeout=setTimeout(function(){i=n(window,"innerWidth","innerHeight")},100)},window.addEventListener("resize",this.resizeEvent)):this.watchInterval=setInterval(function(){i=n(e.container,"clientWidth","clientHeight")},1e3)},o.prototype.unwatch=function(){this.resizeEvent&&(window.removeEventListener("resize",this.resizeEvent),this.resizeEvent=null),this.watchInterval&&clearInterval(this.watchInterval),this.watchTimeout&&clearTimeout(this.watchTimeout)},o.prototype.truncate=function(){var e=this,i=!1;return this.container.innerHTML="",this.originalContent.forEach(function(n){e.container.append(n.cloneNode(!0))}),this.maxHeight=this._getMaxHeight(),this._fits()||(i=!0,this._truncateToNode(this.container)),this.container.classList[i?"add":"remove"]("ddd-truncated"),this.options.callback.call(this.container,i),i},o.prototype._truncateToNode=function(e){var i=[],n=[];if(o.$.contents(e).forEach(function(l){if(l.nodeType!=1||!l.matches(".ddd-keep")){var u=document.createComment("");l.replaceWith(u),n.push(l),i.push(u)}}),n.length){for(var t=0;t<n.length;t++){i[t].replaceWith(n[t]);var r=this.ellipsis.cloneNode(!0);switch(n[t].nodeType){case 1:n[t].append(r);break;case 3:n[t].after(r)}var a=this._fits();if(r.parentElement.removeChild(r),!a){if(this.options.truncate=="node"&&t>1)return void n[t-2].remove();break}}for(var s=t;s<i.length;s++)i[s].remove();var h=n[Math.max(0,Math.min(t,n.length-1))];if(h.nodeType==1){var c=document.createElement(h.nodeName);c.append(this.ellipsis),h.replaceWith(c),this._fits()?c.replaceWith(h):(c.remove(),h=n[Math.max(0,t-1)])}h.nodeType==1?this._truncateToNode(h):this._truncateToWord(h)}},o.prototype._truncateToWord=function(e){for(var i=e.textContent,n=i.indexOf(" ")!==-1?" ":"\u3000",t=i.split(n),r=t.length;r>=0;r--)if(e.textContent=this._addEllipsis(t.slice(0,r).join(n)),this._fits()){this.options.truncate=="letter"&&(e.textContent=t.slice(0,r+1).join(n),this._truncateToLetter(e));break}},o.prototype._truncateToLetter=function(e){for(var i=e.textContent.split(""),n="",t=i.length;t>=0&&(!(n=i.slice(0,t).join("")).length||(e.textContent=this._addEllipsis(n),!this._fits()));t--);},o.prototype._fits=function(){return this.container.scrollHeight<=this.maxHeight+this.options.tolerance},o.prototype._addEllipsis=function(e){for(var i=[" ","\u3000",",",";",".","!","?"];i.indexOf(e.slice(-1))>-1;)e=e.slice(0,-1);return e+=this.ellipsis.textContent},o.prototype._getOriginalContent=function(){var e="script, style";this.options.keep&&(e+=", "+this.options.keep),o.$.find(e,this.container).forEach(function(t){t.classList.add("ddd-keep")});var i="div, section, article, header, footer, p, h1, h2, h3, h4, h5, h6, table, td, td, dt, dd, li";
11[this.container].concat(o.$.find("*",this.container)).forEach(function(t){t.normalize(),o.$.contents(t).forEach(function(r){r.nodeType==8&&t.removeChild(r)}),o.$.contents(t).forEach(function(r){if(r.nodeType==3&&r.textContent.trim()==""){var a=r.previousSibling,s=r.nextSibling;(r.parentElement.matches("table, thead, tbody, tfoot, tr, dl, ul, ol, video")||!a||a.nodeType==1&&a.matches(i)||!s||s.nodeType==1&&s.matches(i))&&t.removeChild(r)}})});var n=[];return o.$.contents(this.container).forEach(function(t){n.push(t.cloneNode(!0))}),n},o.prototype._getMaxHeight=function(){if(typeof this.options.height=="number")return this.options.height;for(var e=window.getComputedStyle(this.container),i=["maxHeight","height"],n=0,t=0;t<i.length;t++)if((r=e[i[t]]).slice(-2)=="px"){n=parseFloat(r);break}if(e.boxSizing=="border-box")for(i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],t=0;t<i.length;t++){var r;(r=e[i[t]]).slice(-2)=="px"&&(n-=parseFloat(r))}return Math.max(n,0)},o.version="4.1.0",o.options={ellipsis:"\u2026 ",callback:function(e){},truncate:"word",tolerance:0,keep:null,watch:"window",height:null},o.$={find:function(e,i){return i=i||document,Array.prototype.slice.call(i.querySelectorAll(e))},contents:function(e){return e=e||document,Array.prototype.slice.call(e.childNodes)}},o}();d.default=p,function(o){o!==void 0&&(o.fn.dotdotdot=function(e){return this.each(function(i,n){var t=new p(n,e);n.dotdotdot=t.API})})}(window.Zepto||window.jQuery)}}]);
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.