| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/JSEngine/build/vendor/hyphenopoly/ |
Upload File : |
/**
* @license Hyphenopoly_Loader 2.6.1 - client side hyphenation
* ©2019 Mathias Nater, Zürich (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
* Released under the MIT license
* http://mnater.github.io/Hyphenopoly/LICENSE
*/
!function(){"use strict";const e=document,t=Hyphenopoly;function n(){return Object.create(null)}function s(e,t){Object.keys(e).forEach(t)}t.cacheFeatureTests&&sessionStorage.getItem("Hyphenopoly_Loader")?t.clientFeat=JSON.parse(sessionStorage.getItem("Hyphenopoly_Loader")):t.clientFeat={langs:n(),polyfill:!1,wasm:null},t.dfltPaths=Object.create({maindir:"../Hyphenopoly/",patterndir:"../Hyphenopoly/patterns/"}),t.paths&&t.paths.patterndir&&(t.dfltPaths.patterndir=t.paths.patterndir),t.paths&&t.paths.maindir&&(t.dfltPaths.maindir=t.paths.maindir),t.setup?(t.setup.selectors=t.setup.selectors||{".hyphenate":{}},t.setup.classnames&&(s(t.setup.classnames,function(e){t.setup.selectors["."+e]=t.setup.classnames[e]}),t.setup.classnames=null,delete t.setup.classnames),t.setup.timeout=t.setup.timeout||1e3,t.setup.hide=t.setup.hide||"all"):t.setup={hide:"all",selectors:{".hyphenate":{}},timeout:1e3},t.lcRequire=n(),s(t.require,function(e){t.lcRequire[e.toLowerCase()]=t.require[e]}),t.fallbacks&&(t.lcFallbacks=n(),s(t.fallbacks,function(e){t.lcFallbacks[e.toLowerCase()]=t.fallbacks[e].toLowerCase()})),t.toggle=function(n){if("on"===n){const t=e.getElementById("H9Y_Styles");t&&t.parentNode.removeChild(t)}else{const n=" {visibility: hidden !important}\n",a=e.createElement("style");switch(a.id="H9Y_Styles",t.setup.hide){case"all":a.innerHTML="html"+n;break;case"element":s(t.setup.selectors,function(e){a.innerHTML+=e+n});break;case"text":s(t.setup.selectors,function(e){a.innerHTML+=e+" {color: transparent !important}\n"});break;default:a.innerHTML=""}e.getElementsByTagName("head")[0].appendChild(a)}},function(){const e=n(),a=[],o=[];function i(t,n,s){e[t]={cancellable:s,default:n,register:[]}}function l(n,s,a){e[n]?e[n].register.push(s):a?o.push({handler:s,name:n}):t.events.dispatch("error",{msg:'unknown Event "'+n+'" discarded'})}i("timeout",function(e){t.toggle("on"),window.console.info("Hyphenopolys 'FOUHC'-prevention timed out after %dms",e.delay)},!1),i("error",function(e){window.console.error(e.msg)},!0),i("contentLoaded",function(e){a.push({data:e,name:"contentLoaded"})},!1),i("engineLoaded",function(e){a.push({data:e,name:"engineLoaded"})},!1),i("hpbLoaded",function(e){a.push({data:e,name:"hpbLoaded"})},!1),t.handleEvent&&s(t.handleEvent,function(e){l(e,t.handleEvent[e],!0)}),t.events=n(),t.events.deferred=a,t.events.tempRegister=o,t.events.dispatch=function(t,s){s=s||n();let a=!1;e[t].register.forEach(function(n){s.preventDefault=function(){e[t].cancellable&&(a=!0)},n(s)}),!a&&e[t].default&&e[t].default(s)},t.events.define=i,t.events.addListener=l}();const a=function(){const s=n();return function(n,a){if(!s[a]){const o=e.createElement("script");s[a]=!0,o.src=n+a,"hyphenEngine.asm.js"===a&&o.addEventListener("load",function(){t.events.dispatch("engineLoaded",{msg:"asm"})}),e.head.appendChild(o)}}}(),o=n();function i(e,n,s,a){var i,l,r,c;t.clientFeat.wasm?(i=e,l=n,c=a,o[r=s]||(o[r]=!0,window.fetch(i+l).then(function(e){e.ok&&(t.binaries[r]="hyphenEngine"===r?e.arrayBuffer().then(function(e){return new WebAssembly.Module(e)}):e.arrayBuffer(),t.events.dispatch(c[0],{msg:c[1]}))}))):function(e,n,s,a){if(!o[s]){o[s]=!0;const i=new XMLHttpRequest;i.onload=function(){t.binaries[s]=i.response,t.events.dispatch(a[0],{msg:a[1]})},i.open("GET",e+n),i.responseType="arraybuffer",i.send()}}(e,n,s,a)}!function(){const o=function(){let n=null;const s=["visibility:hidden;","-moz-hyphens:auto;","-webkit-hyphens:auto;","-ms-hyphens:auto;","hyphens:auto;","width:48px;","font-size:12px;","line-height:12px;","border:none;","padding:0;","word-wrap:normal"].join("");return{append:function(e){return n?(e.appendChild(n),n):null},clear:function(){n&&n.parentNode.removeChild(n)},create:function(a){if(t.clientFeat.langs[a])return;n=n||e.createElement("body");const o=e.createElement("div");o.lang=a,o.id=a,o.style.cssText=s,o.appendChild(e.createTextNode(t.lcRequire[a])),n.appendChild(o)}}}();function l(e){let s=e+".hpb";t.lcFallbacks&&t.lcFallbacks[e]&&(s=t.lcFallbacks[e]+".hpb"),t.binaries=t.binaries||n(),null===t.clientFeat.wasm&&(t.clientFeat.wasm=function(){if("object"==typeof WebAssembly&&"function"==typeof WebAssembly.instantiate){const e=new WebAssembly.Module(Uint8Array.from([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]));if(WebAssembly.Module.prototype.isPrototypeOf(e)){const t=new WebAssembly.Instance(e);return WebAssembly.Instance.prototype.isPrototypeOf(t)&&0!==t.exports.test(4)}}return!1}()),a(t.dfltPaths.maindir,"Hyphenopoly.js"),t.clientFeat.wasm?i(t.dfltPaths.maindir,"hyphenEngine.wasm","hyphenEngine",["engineLoaded","wasm"]):a(t.dfltPaths.maindir,"hyphenEngine.asm.js"),i(t.dfltPaths.patterndir,s,e,["hpbLoaded",e]),function(e){const s={de:55,hu:207,"nb-no":92,nl:41}[e]||32;if(t.specMems=t.specMems||n(),t.clientFeat.wasm)t.specMems[e]=new WebAssembly.Memory({initial:s,maximum:256});else{Math.log2=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const n=65536*(2<<Math.floor(Math.log2(s)));t.specMems[e]=new ArrayBuffer(n)}}(e),function(e){t.hyphenators=t.hyphenators||n(),t.hyphenators[e]||(window.Promise?t.hyphenators[e]=new Promise(function(n,s){t.events.addListener("engineReady",function(s){s.msg===e&&n(t.createHyphenator(s.msg))},!0),t.events.addListener("error",function(t){t.key!==e&&"hyphenEngine"!==t.key||s(t.msg)},!0)}):t.hyphenators[e]={then:function(){t.events.dispatch("error",{msg:"Promises not supported in this engine. Use a polyfill (e.g. https://github.com/taylorhakes/promise-polyfill)!"})}})}(e)}s(t.lcRequire,function(e){"FORCEHYPHENOPOLY"===t.lcRequire[e]?(t.clientFeat.polyfill=!0,t.clientFeat.langs[e]="H9Y",l(e)):t.clientFeat.langs[e]&&"H9Y"===t.clientFeat.langs[e]?l(e):o.create(e)}),null!==o.append(e.documentElement)&&(s(t.lcRequire,function(n){if("FORCEHYPHENOPOLY"!==t.lcRequire[n]){const a=e.getElementById(n);("auto"===(s=a).style.hyphens||"auto"===s.style.webkitHyphens||"auto"===s.style.msHyphens||"auto"===s.style["-moz-hyphens"])&&a.offsetHeight>12?t.clientFeat.langs[n]="CSS":(t.clientFeat.polyfill=!0,t.clientFeat.langs[n]="H9Y",l(n))}var s}),o.clear())}(),t.clientFeat.polyfill?("all"===t.setup.hide&&t.toggle("off"),"none"!==t.setup.hide&&(t.setup.timeOutHandler=window.setTimeout(function(){t.toggle("on"),t.events.dispatch("timeout",{delay:t.setup.timeout})},t.setup.timeout)),e.addEventListener("DOMContentLoaded",function(){t.setup.hide.match(/^(element|text)$/)&&t.toggle("off"),t.events.dispatch("contentLoaded",{msg:["contentLoaded"]})},{once:!0,passive:!0})):window.Hyphenopoly=null,t.cacheFeatureTests&&sessionStorage.setItem("Hyphenopoly_Loader",JSON.stringify(t.clientFeat))}();