Sindbad~EG File Manager
(function(e){function t(n){if(a[n])return a[n].exports;var o=a[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:n})},t.r=function(e){'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:'Module'}),Object.defineProperty(e,'__esModule',{value:!0})},t.t=function(e,a){if(1&a&&(e=t(e)),8&a)return e;if(4&a&&'object'==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,'default',{enumerable:!0,value:e}),2&a&&'string'!=typeof e)for(var o in e)t.d(n,o,function(t){return e[t]}.bind(null,o));return n},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=2)})([function(e,t){function a(e){'@babel/helpers - typeof';return a='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},a(e)}var n,o,r,l=Math.max,i=function(){function t(e,a){if('undefined'==typeof e.length)throw e.length+'/'+a;var n=function(){for(var t=0;t<e.length&&0==e[t];)t+=1;for(var n=Array(e.length-t+a),o=0;o<e.length-t;o+=1)n[o]=e[o+t];return n}(),o={};return o.getAt=function(e){return n[e]},o.getLength=function(){return n.length},o.multiply=function(a){for(var e=Array(o.getLength()+a.getLength()-1),n=0;n<o.getLength();n+=1)for(var r=0;r<a.getLength();r+=1)e[n+r]^=c.gexp(c.glog(o.getAt(n))+c.glog(a.getAt(r)));return t(e,0)},o.mod=function(a){if(0>o.getLength()-a.getLength())return o;for(var e=c.glog(o.getAt(0))-c.glog(a.getAt(0)),n=Array(o.getLength()),r=0;r<o.getLength();r+=1)n[r]=o.getAt(r);for(var r=0;r<a.getLength();r+=1)n[r]^=c.gexp(c.glog(a.getAt(r))+e);return t(n,0).mod(a)},o}var e=String.fromCharCode,n=Math.floor,o=function(e,o){var d=e,r=i[o],b=null,f=0,c=null,w=[],C={},k=function(e,t){f=4*d+17,b=function(e){for(var t=Array(e),a=0;a<e;a+=1){t[a]=Array(e);for(var n=0;n<e;n+=1)t[a][n]=null}return t}(f),x(0,0),x(f-7,0),x(0,f-7),A(),T(),I(e,t),7<=d&&B(e),null==c&&(c=S(d,r,w)),D(c,t)},x=function(e,t){for(var a=-1;7>=a;a+=1)if(!(-1>=e+a||f<=e+a))for(var n=-1;7>=n;n+=1)-1>=t+n||f<=t+n||(b[e+a][t+n]=!!(0<=a&&6>=a&&(0==n||6==n)||0<=n&&6>=n&&(0==a||6==a)||2<=a&&4>=a&&2<=n&&4>=n))},v=function(){for(var e=0,t=0,a=0;8>a;a+=1){k(!0,a);var n=s.getLostPoint(C);(0==a||e>n)&&(e=n,t=a)}return t},T=function(){for(var e=8;e<f-8;e+=1)null==b[e][6]&&(b[e][6]=0==e%2);for(var t=8;t<f-8;t+=1)null==b[6][t]&&(b[6][t]=0==t%2)},A=function(){for(var e=s.getPatternPosition(d),t=0;t<e.length;t+=1)for(var a=0;a<e.length;a+=1){var n=e[t],o=e[a];if(null==b[n][o])for(var i=-2;2>=i;i+=1)for(var r=-2;2>=r;r+=1)b[n+i][o+r]=-2==i||2==i||-2==r||2==r||0==i&&0==r}},B=function(e){for(var t,a=s.getBCHTypeNumber(d),o=0;18>o;o+=1)t=!e&&1==(1&a>>o),b[n(o/3)][o%3+f-8-3]=t;for(var t,o=0;18>o;o+=1)t=!e&&1==(1&a>>o),b[o%3+f-8-3][n(o/3)]=t},I=function(e,t){for(var a,n=s.getBCHTypeInfo(r<<3|t),o=0;15>o;o+=1)a=!e&&1==(1&n>>o),6>o?b[o][8]=a:8>o?b[o+1][8]=a:b[f-15+o][8]=a;for(var a,o=0;15>o;o+=1)a=!e&&1==(1&n>>o),8>o?b[8][f-o-1]=a:9>o?b[8][15-o-1+1]=a:b[8][15-o-1]=a;b[f-8][8]=!e},D=function(e,t){for(var a=-1,n=f-1,o=7,r=0,i=s.getMaskFunction(t),l=f-1;0<l;l-=2)for(6==l&&(l-=1);;){for(var d=0;2>d;d+=1)if(null==b[n][l-d]){var c=!1;r<e.length&&(c=1==(1&e[r]>>>o));var p=i(n,l-d);p&&(c=!c),b[n][l-d]=c,o-=1,-1==o&&(r+=1,o=7)}if(n+=a,0>n||f<=n){n-=a,a=-a;break}}},L=function(e,a){for(var n=0,o=0,d=0,c=Array(a.length),p=Array(a.length),g=0;g<a.length;g+=1){var r=a[g].dataCount,u=a[g].totalCount-r;o=l(o,r),d=l(d,u),c[g]=Array(r);for(var h=0;h<c[g].length;h+=1)c[g][h]=255&e.getBuffer()[h+n];n+=r;var i=s.getErrorCorrectPolynomial(u),m=t(c[g],i.getLength()-1),y=m.mod(i);p[g]=Array(i.getLength()-1);for(var b,h=0;h<p[g].length;h+=1)b=h+y.getLength()-p[g].length,p[g][h]=0<=b?y.getAt(b):0}for(var f=0,h=0;h<a.length;h+=1)f+=a[h].totalCount;for(var w=Array(f),C=0,h=0;h<o;h+=1)for(var g=0;g<a.length;g+=1)h<c[g].length&&(w[C]=c[g][h],C+=1);for(var h=0;h<d;h+=1)for(var g=0;g<a.length;g+=1)h<p[g].length&&(w[C]=p[g][h],C+=1);return w},S=function(e,t,a){for(var n,o=p.getRSBlocks(e,t),r=g(),l=0;l<a.length;l+=1)n=a[l],r.put(n.getMode(),4),r.put(n.getLength(),s.getLengthInBits(n.getMode(),e)),n.write(r);for(var i=0,l=0;l<o.length;l+=1)i+=o[l].dataCount;if(r.getLengthInBits()>8*i)throw'code length overflow. ('+r.getLengthInBits()+'>'+8*i+')';for(r.getLengthInBits()+4<=8*i&&r.put(0,4);0!=r.getLengthInBits()%8;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*i)&&(r.put(236,8),!(r.getLengthInBits()>=8*i));)r.put(17,8);return L(r,o)};C.addData=function(e,t){t=t||'Byte';var a=null;switch(t){case'Numeric':a=u(e);break;case'Alphanumeric':a=h(e);break;case'Byte':a=m(e);break;case'Kanji':a=y(e);break;default:throw'mode:'+t;}w.push(a),c=null},C.isDark=function(e,t){if(0>e||f<=e||0>t||f<=t)throw e+','+t;return b[e][t]},C.getModuleCount=function(){return f},C.make=function(){if(1>d){for(var e=1;40>e;e++){for(var t,a=p.getRSBlocks(e,r),n=g(),o=0;o<w.length;o++)t=w[o],n.put(t.getMode(),4),n.put(t.getLength(),s.getLengthInBits(t.getMode(),e)),t.write(n);for(var i=0,o=0;o<a.length;o++)i+=a[o].dataCount;if(n.getLengthInBits()<=8*i)break}d=e}k(!1,v())},C.createTableTag=function(e,t){e=e||2,t='undefined'==typeof t?4*e:t;var a='';a+='<table style="',a+=' border-width: 0px; border-style: none;',a+=' border-collapse: collapse;',a+=' padding: 0px; margin: '+t+'px;',a+='">',a+='<tbody>';for(var n=0;n<C.getModuleCount();n+=1){a+='<tr>';for(var o=0;o<C.getModuleCount();o+=1)a+='<td style="',a+=' border-width: 0px; border-style: none;',a+=' border-collapse: collapse;',a+=' padding: 0px; margin: 0px;',a+=' width: '+e+'px;',a+=' height: '+e+'px;',a+=' background-color: ',a+=C.isDark(n,o)?'#000000':'#ffffff',a+=';',a+='"/>';a+='</tr>'}return a+='</tbody>',a+='</table>',a},C.createSvgTag=function(e,t){var n={};'object'==a(arguments[0])&&(n=arguments[0],e=n.cellSize,t=n.margin),e=e||2,t='undefined'==typeof t?4*e:t;var o,i,l,r,d,s=C.getModuleCount()*e+2*t,c='';for(d='l'+e+',0 0,'+e+' -'+e+',0 0,-'+e+'z ',c+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',c+=n.scalable?'':' width="'+s+'px" height="'+s+'px"',c+=' viewBox="0 0 '+s+' '+s+'" ',c+=' preserveAspectRatio="xMinYMin meet">',c+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',c+='<path d="',l=0;l<C.getModuleCount();l+=1)for(r=l*e+t,o=0;o<C.getModuleCount();o+=1)C.isDark(l,o)&&(i=o*e+t,c+='M'+i+','+r+d);return c+='" stroke="transparent" fill="black"/>',c+='</svg>',c},C.createDataURL=function(e,t){e=e||2,t='undefined'==typeof t?4*e:t;var a=C.getModuleCount()*e+2*t,o=t,i=a-t;return E(a,a,function(t,a){if(o<=t&&t<i&&o<=a&&a<i){var l=n((t-o)/e),d=n((a-o)/e);return C.isDark(d,l)?0:1}return 1})},C.createImgTag=function(e,t,a){e=e||2,t='undefined'==typeof t?4*e:t;var n=C.getModuleCount()*e+2*t,o='';return o+='<img',o+=' src="',o+=C.createDataURL(e,t),o+='"',o+=' width="',o+=n,o+='"',o+=' height="',o+=n,o+='"',a&&(o+=' alt="',o+=a,o+='"'),o+='/>',o};var M=function(e){var t=1;e='undefined'==typeof e?2*t:e;var a,o,r,i,l,d=C.getModuleCount()*t+2*e,s=e,c=d-e,p={"██":'\u2588',"█ ":'\u2580'," █":'\u2584'," ":' '},g={"██":'\u2580',"█ ":'\u2580'," █":' '," ":' '},u='';for(a=0;a<d;a+=2){for(r=n((a-s)/t),i=n((a+1-s)/t),o=0;o<d;o+=1)l='\u2588',s<=o&&o<c&&s<=a&&a<c&&C.isDark(r,n((o-s)/t))&&(l=' '),l+=s<=o&&o<c&&s<=a+1&&a+1<c&&C.isDark(i,n((o-s)/t))?' ':'\u2588',u+=1>e&&a+1>=c?g[l]:p[l];u+='\n'}return d%2&&0<e?u.substring(0,u.length-d-1)+Array(d+1).join('\u2580'):u.substring(0,u.length-1)};return C.createASCII=function(e,t){if(e=e||1,2>e)return M(t);e-=1,t='undefined'==typeof t?2*e:t;var a,o,i,r,l=C.getModuleCount()*e+2*t,d=t,s=l-t,c=Array(e+1).join('\u2588\u2588'),p=Array(e+1).join(' '),g='',u='';for(a=0;a<l;a+=1){for(i=n((a-d)/e),u='',o=0;o<l;o+=1)r=1,d<=o&&o<s&&d<=a&&a<s&&C.isDark(i,n((o-d)/e))&&(r=0),u+=r?c:p;for(i=0;i<e;i+=1)g+=u+'\n'}return g.substring(0,g.length-1)},C.renderTo2dContext=function(e,t){t=t||2;for(var a=C.getModuleCount(),n=0;n<a;n++)for(var o=0;o<a;o++)e.fillStyle=C.isDark(n,o)?'black':'white',e.fillRect(n*t,o*t,t,t)},C};o.stringToBytesFuncs={default:function(e){for(var t,a=[],n=0;n<e.length;n+=1)t=e.charCodeAt(n),a.push(255&t);return a}},o.stringToBytes=o.stringToBytesFuncs['default'],o.createStringToBytes=function(t,a){var n=function(){for(var l,n=b(t),o=function(){var e=n.read();if(-1==e)throw'eof';return e},r=0,i={};;){if(l=n.read(),-1==l)break;var d=o(),s=o(),c=o(),p=e(l<<8|d);i[p]=s<<8|c,r+=1}if(r!=a)throw r+' != '+a;return i}();return function(e){for(var t,a=[],o=0;o<e.length;o+=1)if(t=e.charCodeAt(o),128>t)a.push(t);else{var r=n[e.charAt(o)];'number'==typeof r?(255&r)==r?a.push(r):(a.push(r>>>8),a.push(255&r)):a.push(63)}return a}};var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},d={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],a=1335,o=7973,i={},l=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return i.getBCHTypeInfo=function(e){for(var t=e<<10;0<=l(t)-l(a);)t^=a<<l(t)-l(a);return 21522^(e<<10|t)},i.getBCHTypeNumber=function(e){for(var t=e<<12;0<=l(t)-l(o);)t^=o<<l(t)-l(o);return e<<12|t},i.getPatternPosition=function(t){return e[t-1]},i.getMaskFunction=function(e){switch(e){case d.PATTERN000:return function(e,t){return 0==(e+t)%2};case d.PATTERN001:return function(e){return 0==e%2};case d.PATTERN010:return function(e,t){return 0==t%3};case d.PATTERN011:return function(e,t){return 0==(e+t)%3};case d.PATTERN100:return function(e,t){return 0==(n(e/2)+n(t/3))%2};case d.PATTERN101:return function(e,t){return 0==e*t%2+e*t%3};case d.PATTERN110:return function(e,t){return 0==(e*t%2+e*t%3)%2};case d.PATTERN111:return function(e,t){return 0==(e*t%3+(e+t)%2)%2};default:throw'bad maskPattern:'+e;}},i.getErrorCorrectPolynomial=function(e){for(var n=t([1],0),a=0;a<e;a+=1)n=n.multiply(t([1,c.gexp(a)],0));return n},i.getLengthInBits=function(e,t){if(1<=t&&10>t)switch(e){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw'mode:'+e;}else if(27>t)switch(e){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw'mode:'+e;}else if(41>t)switch(e){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw'mode:'+e;}else throw'type:'+t},i.getLostPoint=function(e){for(var t=e.getModuleCount(),a=0,n=0;n<t;n+=1)for(var o=0;o<t;o+=1){for(var i=0,l=e.isDark(n,o),d=-1;1>=d;d+=1)if(!(0>n+d||t<=n+d))for(var r=-1;1>=r;r+=1)0>o+r||t<=o+r||(0!=d||0!=r)&&l==e.isDark(n+d,o+r)&&(i+=1);5<i&&(a+=3+i-5)}for(var n=0;n<t-1;n+=1)for(var s,o=0;o<t-1;o+=1)s=0,e.isDark(n,o)&&(s+=1),e.isDark(n+1,o)&&(s+=1),e.isDark(n,o+1)&&(s+=1),e.isDark(n+1,o+1)&&(s+=1),(0==s||4==s)&&(a+=3);for(var n=0;n<t;n+=1)for(var o=0;o<t-6;o+=1)e.isDark(n,o)&&!e.isDark(n,o+1)&&e.isDark(n,o+2)&&e.isDark(n,o+3)&&e.isDark(n,o+4)&&!e.isDark(n,o+5)&&e.isDark(n,o+6)&&(a+=40);for(var o=0;o<t;o+=1)for(var n=0;n<t-6;n+=1)e.isDark(n,o)&&!e.isDark(n+1,o)&&e.isDark(n+2,o)&&e.isDark(n+3,o)&&e.isDark(n+4,o)&&!e.isDark(n+5,o)&&e.isDark(n+6,o)&&(a+=40);for(var c=0,o=0;o<t;o+=1)for(var n=0;n<t;n+=1)e.isDark(n,o)&&(c+=1);var p=Math.abs(100*c/t/t-50)/5;return a+=10*p,a},i}(),c=function(){for(var e=Array(256),t=Array(256),a=0;8>a;a+=1)e[a]=1<<a;for(var a=8;256>a;a+=1)e[a]=e[a-4]^e[a-5]^e[a-6]^e[a-8];for(var a=0;255>a;a+=1)t[e[a]]=a;return{glog:function(e){if(1>e)throw'glog('+e+')';return t[e]},gexp:function(t){for(;0>t;)t+=255;for(;256<=t;)t-=255;return e[t]}}}(),p=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){return{totalCount:e,dataCount:t}},a={},n=function(t,a){return a===i.L?e[4*(t-1)+0]:a===i.M?e[4*(t-1)+1]:a===i.Q?e[4*(t-1)+2]:a===i.H?e[4*(t-1)+3]:void 0};return a.getRSBlocks=function(e,a){var o=n(e,a);if('undefined'==typeof o)throw'bad rs block @ typeNumber:'+e+'/errorCorrectionLevel:'+a;for(var r=o.length/3,l=[],d=0;d<r;d+=1)for(var i=o[3*d+0],s=o[3*d+1],c=o[3*d+2],p=0;p<i;p+=1)l.push(t(s,c));return l},a}(),g=function(){var e=[],t=0,a={};return a.getBuffer=function(){return e},a.getAt=function(t){var a=n(t/8);return 1==(1&e[a]>>>7-t%8)},a.put=function(e,t){for(var n=0;n<t;n+=1)a.putBit(1==(1&e>>>t-n-1))},a.getLengthInBits=function(){return t},a.putBit=function(a){var o=n(t/8);e.length<=o&&e.push(0),a&&(e[o]|=128>>>t%8),t+=1},a},u=function(e){var t=r.MODE_NUMBER,a=e,n={};n.getMode=function(){return t},n.getLength=function(){return a.length},n.write=function(e){for(var t=a,n=0;n+2<t.length;)e.put(o(t.substring(n,n+3)),10),n+=3;n<t.length&&(1==t.length-n?e.put(o(t.substring(n,n+1)),4):2==t.length-n&&e.put(o(t.substring(n,n+2)),7))};var o=function(e){for(var t=0,a=0;a<e.length;a+=1)t=10*t+l(e.charAt(a));return t},l=function(e){if('0'<=e&&'9'>=e)return e.charCodeAt(0)-48;throw'illegal char :'+e};return n},h=function(e){var t=r.MODE_ALPHA_NUM,a=e,n={};n.getMode=function(){return t},n.getLength=function(){return a.length},n.write=function(e){for(var t=a,n=0;n+1<t.length;)e.put(45*o(t.charAt(n))+o(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(o(t.charAt(n)),6)};var o=function(e){if('0'<=e&&'9'>=e)return e.charCodeAt(0)-48;if('A'<=e&&'Z'>=e)return e.charCodeAt(0)-65+10;switch(e){case' ':return 36;case'$':return 37;case'%':return 38;case'*':return 39;case'+':return 40;case'-':return 41;case'.':return 42;case'/':return 43;case':':return 44;default:throw'illegal char :'+e;}};return n},m=function(e){var t=r.MODE_8BIT_BYTE,a=o.stringToBytes(e),n={};return n.getMode=function(){return t},n.getLength=function(){return a.length},n.write=function(e){for(var t=0;t<a.length;t+=1)e.put(a[t],8)},n},y=function(e){var t=r.MODE_KANJI,a=o.stringToBytesFuncs.SJIS;if(!a)throw'sjis not supported.';!function(e,t){var n=a(e);if(2!=n.length||(n[0]<<8|n[1])!=t)throw'sjis not supported.'}('\u53CB',38726);var n=a(e),i={};return i.getMode=function(){return t},i.getLength=function(){return~~(n.length/2)},i.write=function(e){for(var t,a=n,o=0;o+1<a.length;){if(t=(255&a[o])<<8|255&a[o+1],33088<=t&&40956>=t)t-=33088;else if(57408<=t&&60351>=t)t-=49472;else throw'illegal char at '+(o+1)+'/'+t;t=192*(255&t>>>8)+(255&t),e.put(t,13),o+=2}if(o<a.length)throw'illegal char at '+(o+1)},i},f=function(){var e=[],t={};return t.writeByte=function(t){e.push(255&t)},t.writeShort=function(e){t.writeByte(e),t.writeByte(e>>>8)},t.writeBytes=function(e,a,n){a=a||0,n=n||e.length;for(var o=0;o<n;o+=1)t.writeByte(e[o+a])},t.writeString=function(e){for(var a=0;a<e.length;a+=1)t.writeByte(e.charCodeAt(a))},t.toByteArray=function(){return e},t.toString=function(){var t='';t+='[';for(var a=0;a<e.length;a+=1)0<a&&(t+=','),t+=e[a];return t+=']',t},t},w=function(){var t=0,a=0,o=0,n='',r={},l=function(t){n+=e(i(63&t))},i=function(e){if(0>e);else{if(26>e)return 65+e;if(52>e)return 97+(e-26);if(62>e)return 48+(e-52);if(62==e)return 43;if(63==e)return 47}throw'n:'+e};return r.writeByte=function(e){for(t=t<<8|255&e,a+=8,o+=1;6<=a;)l(t>>>a-6),a-=6},r.flush=function(){if(0<a&&(l(t<<6-a),t=0,a=0),0!=o%3)for(var e=3-o%3,r=0;r<e;r+=1)n+='='},r.toString=function(){return n},r},b=function(e){var t=e,a=0,o=0,r=0,n={};n.read=function(){for(;8>r;){if(a>=t.length){if(0==r)return-1;throw'unexpected end of file./'+r}var e=t.charAt(a);if(a+=1,'='==e)return r=0,-1;e.match(/^\s$/)||(o=o<<6|i(e.charCodeAt(0)),r+=6)}var l=255&o>>>r-8;return r-=8,l};var i=function(e){if(65<=e&&90>=e)return e-65;if(97<=e&&122>=e)return e-97+26;if(48<=e&&57>=e)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw'c:'+e};return n},C=function(t,a){var n=t,o=a,r=Array(t*a),i={};i.setPixel=function(e,t,a){r[t*n+e]=a},i.write=function(e){e.writeString('GIF87a'),e.writeShort(n),e.writeShort(o),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(','),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(o),e.writeByte(0);var t=2,a=d(t);e.writeByte(t);for(var r=0;255<a.length-r;)e.writeByte(255),e.writeBytes(a,r,255),r+=255;e.writeByte(a.length-r),e.writeBytes(a,r,a.length-r),e.writeByte(0),e.writeString(';')};var l=function(e){var t=e,a=0,n=0,o={};return o.write=function(e,o){if(0!=e>>>o)throw'length over';for(;8<=a+o;)t.writeByte(255&(e<<a|n)),o-=8-a,e>>>=8-a,n=0,a=0;n=e<<a|n,a+=o},o.flush=function(){0<a&&t.writeByte(n)},o},d=function(t){for(var a=1<<t,n=(1<<t)+1,o=t+1,d=s(),p=0;p<a;p+=1)d.add(e(p));d.add(e(a)),d.add(e(n));var i=f(),g=l(i);g.write(a,o);var u=0,h=e(r[u]);for(u+=1;u<r.length;){var m=e(r[u]);u+=1,d.contains(h+m)?h+=m:(g.write(d.indexOf(h),o),4095>d.size()&&(d.size()==1<<o&&(o+=1),d.add(h+m)),h=m)}return g.write(d.indexOf(h),o),g.write(n,o),g.flush(),i.toByteArray()},s=function(){var e={},t=0,a={};return a.add=function(n){if(a.contains(n))throw'dup key:'+n;e[n]=t,t+=1},a.size=function(){return t},a.indexOf=function(t){return e[t]},a.contains=function(t){return'undefined'!=typeof e[t]},a};return i},E=function(e,t,a){for(var n=C(e,t),o=0;o<t;o+=1)for(var r=0;r<e;r+=1)n.setPixel(r,o,a(r,o));var l=f();n.write(l);for(var d=w(),s=l.toByteArray(),c=0;c<s.length;c+=1)d.writeByte(s[c]);return d.flush(),'data:image/gif;base64,'+d};return o}();!function(){i.stringToBytesFuncs['UTF-8']=function(e){return function(e){for(var t,a=[],n=0;n<e.length;n++)t=e.charCodeAt(n),128>t?a.push(t):2048>t?a.push(192|t>>6,128|63&t):55296>t||57344<=t?a.push(224|t>>12,128|63&t>>6,128|63&t):(n++,t=65536+((1023&t)<<10|1023&e.charCodeAt(n)),a.push(240|t>>18,128|63&t>>12,128|63&t>>6,128|63&t));return a}(e)}}(),function(a){o=[],n=a,r='function'==typeof n?n.apply(t,o):n,!(r!==void 0&&(e.exports=r))}(function(){return i})},function(){},function(e,t,a){'use strict';function n(e){'@babel/helpers - typeof';return n='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},n(e)}function o(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function r(e,t){for(var a,n=0;n<t.length;n++)a=t[n],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}function i(e,t,a){return t&&r(e.prototype,t),a&&r(e,a),e}function l(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function d(e,t){for(var a,n=0;n<t.length;n++)a=t[n],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}function s(e,t,a){return t&&d(e.prototype,t),a&&d(e,a),e}function c(e){'@babel/helpers - typeof';return c='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},c(e)}function p(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}function g(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function');e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function h(e){var t=b();return function(){var a,n=f(e);if(t){var o=f(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return m(this,a)}}function m(e,t){return t&&('object'===c(t)||'function'==typeof t)?t:y(e)}function y(e){if(void 0===e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return e}function b(){if('undefined'==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if('function'==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}a.r(t);var w=a(1),C=function(){function e(){o(this,e)}return i(e,null,[{key:'extend',value:function(){for(var e=1;e<arguments.length;e++)for(var t in arguments[e])arguments[e].hasOwnProperty(t)&&('object'===n(arguments[0][t])&&'object'===n(arguments[e][t])?this.extend(arguments[0][t],arguments[e][t]):arguments[0][t]=arguments[e][t]);return arguments[0]}}]),e}(),E=function(){function e(t){var a=this;l(this,e),this.params=C.extend({callbackClosed:function(){},a11y:{closeCodeInformation:'Close information.'}},t),this.closeButtonHasFocus=!1,this.overlay=document.createElement('div'),this.overlay.classList.add('h5p-kewar-code-overlay'),this.overlay.classList.add('h5p-kewar-code-no-display'),this.overlay.addEventListener('transitionend',function(){!0===a.isTransparent&&(a.overlay.classList.add('h5p-kewar-code-no-display'),setTimeout(function(){a.params.callbackClosed(a.closeButtonHasFocus)},0))}),this.boxOuter=document.createElement('div'),this.boxOuter.classList.add('h5p-kewar-code-overlay-box-outer'),this.overlay.appendChild(this.boxOuter),this.boxInner=document.createElement('div'),this.boxInner.classList.add('h5p-kewar-code-overlay-box-inner'),this.boxOuter.appendChild(this.boxInner),this.buttonClose=document.createElement('div'),this.buttonClose.classList.add('h5p-kewar-code-overlay-box-button-close'),this.buttonClose.setAttribute('role','button'),this.buttonClose.setAttribute('tabindex',0),this.buttonClose.setAttribute('aria-label',this.params.a11y.closeCodeInformation),this.buttonClose.addEventListener('click',function(){a.handleClosed()}),this.buttonClose.addEventListener('keydown',function(e){e=e||window.event;var t=e.which||e.keyCode;(13===t||32===t)&&a.handleClosed()}),this.boxInner.appendChild(this.buttonClose),this.content=document.createElement('div'),this.content.classList.add('h5p-kewar-code-overlay-box-content'),this.params.content&&this.content.appendChild(this.params.content),this.boxInner.appendChild(this.content),this.hide()}return s(e,[{key:'getDOM',value:function(){return this.overlay}},{key:'getBoxHeight',value:function(){var e=window.getComputedStyle(this.boxOuter),t=parseInt(e.getPropertyValue('padding-top'),10),a=parseInt(e.getPropertyValue('padding-bottom'),10);return this.boxInner.offsetHeight+t+a}},{key:'setContent',value:function(e){e&&(this.content.innerHTML='',this.content.appendChild(e))}},{key:'show',value:function(e,t){var a=this;this.isTransparent=!1,'undefined'!=typeof e&&this.setContent(e),this.overlay.classList.remove('h5p-kewar-code-no-display'),setTimeout(function(){a.overlay.classList.remove('h5p-kewar-code-no-opacity'),a.setColumnWidths()},0),t&&(this.closeButtonHasFocus=!0,this.buttonClose.focus())}},{key:'hide',value:function(){this.isTransparent=!0,this.overlay.classList.add('h5p-kewar-code-no-opacity')}},{key:'handleClosed',value:function(){this.hide(),this.closeButtonHasFocus=!1}},{key:'setColumnWidths',value:function(){var e=[].slice.call(this.content.querySelectorAll('.h5p-kewar-code-display-row-name')).reduce(function(e,t){return Math.max(e,t.offsetWidth||0)},0);if(0!==e){var t=e+5,a=100*t/this.content.offsetWidth;[].slice.call(this.content.querySelectorAll('.h5p-kewar-code-display-row-name')).forEach(function(e){e.style.flexGrow=1,e.style.flexShrink=1,e.style.maxWidth=''.concat(t,'px'),e.style.overflow='hidden',e.style.textOverflow='ellipsis',e.style.width=''.concat(a,'%')}),[].slice.call(this.content.querySelectorAll('.h5p-kewar-code-display-row-content')).forEach(function(e){e.style.flexGrow=1,e.style.width=''.concat(100-a,'%')})}}}]),e}(),k=a(0),x=a.n(k),v=function(e){function t(e,n,o){var r;return p(this,t),r=a.call(this),r.params=C.extend({codeType:'url',contact:{name:'Unknown',organization:'',title:'',url:'',number:'',email:'',address:{extended:'',street:'',locality:'',region:'',zip:'',country:''},note:''},event:{title:'Unnamed event',allDay:!1,dateStart:'1970/1/1',timeStart:'00:00',dateEnd:'1970/1/1',timeEnd:'01:00',timezone:'0:00',daylightSavings:!1},email:'add_your@email.here',location:{latitude:'69.646007',longitude:'18.954036'},phone:'+123456789',sms:{number:'+123456789',message:'Please fetch milk and bread!'},text:'Please fetch\n* milk\n* bread',url:'https://h5p.org',behaviour:{codeColor:'#000000',backgroundColor:'#ffffff',alignment:'center'},l10n:{address:'Address',contact:'Contact',country:'Country',dateEnd:'End date',dateStart:'Start date',description:'Description',email:'Email',event:'Event',extended:'Extended address',latitude:'Latitude',locality:'Locality',location:'Location',longitude:'Longitude',message:'Message',name:'Name',note:'Note',organization:'Organization',phone:'Phone number',region:'Region',sms:'SMS',street:'Street',text:'Text',title:'Title',url:'URL',zip:'ZIP code'},a11y:{openCodeInformation:'QRCode. Display information.',closeCodeInformation:'Hide information.'}},e),r.contentId=n,r.extras=o,r.on('resize',function(){if(r.qrcodeContainer){var e=r.overlay?r.overlay.getBoxHeight():0,t=r.codeImage?r.codeImage.getBoundingClientRect().width:0;e>t?(r.codeImage.style.height=''.concat(t,'px'),r.codeImage.style.maxHeight='',r.qrcodeContainer.style.height=''.concat(e,'px')):(r.codeImage.style.height='',r.codeImage.style.maxHeight=r.params.behaviour.maxSize||'',r.qrcodeContainer.style.height=''),r.isInitialized||setTimeout(function(){r.isInitialized=!0,r.trigger('resize')},0)}}),r.attach=function(e){var a=this;if(this.calledFromKewAr()){var n=H5P.newRunnable(this.params.h5p,this.contentId,e,!1,this.extras);this.bubbleUp(n,'resize',this),this.bubbleDown(this,'resize',n);var o=this.params.h5p.library?this.params.h5p.library.split(' ')[0]:null;return void(('H5P.Image'===o||'H5P.TwitterUserFeed'===this.params.h5p.library)&&n.on('loaded',function(){this.trigger('resize')}))}var r=x()(t.typeNumber,t.errorCorrection),i='Something went wrong',l=document.createElement('div').innerHTML=i;if('contact'===this.params.codeType){var d=this.buildContact(this.params.contact);i=d.payload,l=d.display}else if('event'===this.params.codeType){var s=this.buildEvent(this.params.event);i=s.payload,l=s.display}else if('email'===this.params.codeType)i='mailto:'.concat(this.params.email),l=this.buildDisplay(this.params.l10n.email,'<a href="mailto:'.concat(this.params.email,'">').concat(this.params.email,'</a>'));else if('location'===this.params.codeType)i='geo:'.concat(this.params.location.latitude,',').concat(this.params.location.longitude),l=this.buildDisplay(this.params.l10n.location,[{name:this.params.l10n.latitude,content:this.params.location.latitude},{name:this.params.l10n.longitude,content:this.params.location.longitude}]);else if('phone'===this.params.codeType)i='tel:'.concat(this.params.phone),l=this.buildDisplay(this.params.l10n.phone,this.params.phone);else if('sms'===this.params.codeType){var c=this.params.sms.number.replace(/[^+0-9]/gi,'');i='smsto:'.concat(c,':').concat(this.params.sms.message),l=this.buildDisplay(this.params.l10n.sms,[{name:this.params.l10n.phone,content:c},{name:this.params.l10n.message,content:this.params.sms.message}])}else if('text'===this.params.codeType)i=this.params.text,l=this.buildDisplay(this.params.l10n.text,this.params.text.replace(/\n/g,'<br />'));else if('url'===this.params.codeType)i=this.params.url,l=this.buildDisplay(this.params.l10n.url,'<a href="'.concat(this.params.url,'" target="blank">').concat(this.params.url,'</a>'));else if('h5p'===this.params.codeType){var p=window.location.href;i=-1===p.indexOf('?')?window.location.href+'?kewar='.concat(this.contentId):this.calledFromKewAr()?p:p+'&kewar='.concat(this.contentId),l=this.buildDisplay(this.params.l10n.url,'<a href="'.concat(i,'" target="blank">').concat(i,'</a>'))}r.addData(i),r.make(),this.overlay=new E({content:l,callbackClosed:function(){return a.handleClosedOverlay(focus)},a11y:{closeCodeInformation:this.params.a11y.closeCodeInformation}}),this.qrcodeContainer=document.createElement('div'),this.qrcodeContainer.classList.add('h5p-kewar-code-container'),this.qrcodeContainer.setAttribute('role','button'),this.qrcodeContainer.setAttribute('tabindex',0),this.qrcodeContainer.setAttribute('aria-label',this.params.a11y.openCodeInformation),this.qrcodeContainer.style.textAlign=this.params.behaviour.alignment,this.qrcodeContainer.addEventListener('click',function(){a.overlay.show(),setTimeout(function(){a.trigger('resize')},0)}),this.qrcodeContainer.addEventListener('keydown',function(e){e=e||window.event;var t=e.which||e.keyCode;(13===t||32===t)&&(a.overlay.show(void 0,!0),a.qrcodeContainer.removeAttribute('tabindex'),setTimeout(function(){a.trigger('resize')},0))}),this.codeImage=this.buildSVGImage(r.createSvgTag()),this.params.behaviour.maxSize&&(this.codeImage.style.maxWidth=this.params.behaviour.maxSize,this.codeImage.maxHeight=this.params.behaviour.maxSize),this.qrcodeContainer.appendChild(this.codeImage),e.get(0).classList.add('h5p-kewar-code'),e.get(0).appendChild(this.qrcodeContainer),e.get(0).appendChild(this.overlay.getDOM())},r.buildSVGImage=function(e){e=e.replace(/width="[0-9]*px"/,'width="'.concat(t.svgImageSize,'px"')),e=e.replace(/height="[0-9]*px"/,'height="'.concat(t.svgImageSize,'px"'));var a=document.createElement('div');a.innerHTML=e;var n=a.querySelector('path');n.setAttribute('fill',this.params.behaviour.codeColor);var o=a.querySelector('rect');o.setAttribute('fill',this.params.behaviour.backgroundColor);var r='data:image/svg+xml;base64,'.concat(window.btoa(a.innerHTML)),i=document.createElement('img');return i.src=r,i},r.buildContact=function(e){var t=e.address,a='BEGIN:VCARD\n';a+='VERSION:3.0\n',a+='N:'.concat(e.name,'\n'),a+=''===e.organization?'':'ORG:'.concat(e.organization,'\n'),a+=''===e.title?'':'TITLE:'.concat(e.title,'\n'),a+=''===e.number?'':'TEL:'.concat(e.number,'\n'),a+=''===e.email?'':'EMAIL:'.concat(e.email,'\n'),a+=''===e.url?'':'URL:'.concat(e.url,'\n'),a+=''!==t.extended||''!==t.street||''!==t.locality||t.region||''!==t.zip||''!==t.country?'ADR:;'.concat(t.extended,';').concat(t.street,';').concat(t.locality,';').concat(t.region,';').concat(t.zip,';').concat(t.country,'\n'):'',a+=''===this.params.contact.note?'':'NOTE:'.concat(this.params.contact.note,'\n'),a+='END:VCARD';var n=[{name:this.params.l10n.name,content:e.name}];''!==e.organization&&n.push({name:this.params.l10n.organization,content:e.organization}),''!==e.title&&n.push({name:this.params.l10n.title,content:e.title}),''!==e.number&&n.push({name:this.params.l10n.phone,content:e.number}),''!==e.email&&n.push({name:this.params.l10n.email,content:'<a href="mailto:'.concat(e.email,'">').concat(e.email,'</a>')}),''!==e.url&&n.push({name:this.params.l10n.url,content:'<a href="'.concat(e.url,'" target="blank">').concat(e.url,'</a>')});var o=[t.extended,t.street,t.locality,t.region,t.zip,t.country].filter(function(e){return''!==e}).join(', ');''!==o&&n.push({name:this.params.l10n.address,content:o}),''!==e.note&&n.push({name:this.params.l10n.note,content:e.note});var r=this.buildDisplay(this.params.l10n.contact,n);return{payload:a,display:r}},r.buildEvent=function(e){e.allDay&&(e.timeStart='00:00',e.timeEnd='23:59',e.timezone='0:00',e.daylightSavings=!1),e.dateStart=e.dateStart.split('/').map(function(e){return parseInt(e,10)}),e.dateEnd=e.dateEnd.split('/').map(function(e){return parseInt(e,10)}),e.timeStart=e.timeStart.split(':').map(function(e){return parseInt(e,10)}),e.timeEnd=e.timeEnd.split(':').map(function(e){return parseInt(e,10)}),e.timezone=e.timezone.split(':');var t=new Date(Date.UTC(e.dateStart[0],e.dateStart[1]-1,e.dateStart[2],e.timeStart[0]-e.timezone[0]+(e.daylightSavings?1:0),e.timeStart[1]-e.timezone[1])),a=new Date(Date.UTC(e.dateEnd[0],e.dateEnd[1]-1,e.dateEnd[2],e.timeEnd[0]-e.timezone[0]+(e.daylightSavings?1:0),e.timeEnd[1]-e.timezone[1]));a<t&&(a=t);var n=t.toISOString().split('.')[0].replace(/-|\.|:/g,'').concat(e.allDay?'':'Z'),o=a.toISOString().split('.')[0].replace(/-|\.|:/g,'').concat(e.allDay?'':'Z'),r='BEGIN:VEVENT\n';r+='SUMMARY:'.concat(e.title,'\n'),r+='DTSTART:'.concat(n,'\n'),r+='DTEND:'.concat(o,'\n'),r+=e.location?'LOCATION:'.concat(e.location,'\n'):'',r+=e.description?'DESCRIPTION:'.concat(e.description,'\n'):'',r+='END:VEVENT';var i=[{name:this.params.l10n.title,content:e.title},{name:this.params.l10n.dateStart,content:t.toString()},{name:this.params.l10n.dateEnd,content:a.toString()}];e.location&&i.push({name:this.params.l10n.location,content:e.location}),e.description&&i.push({name:this.params.l10n.description,content:e.description});var l=this.buildDisplay(this.params.l10n.event,i);return{payload:r,display:l}},r.buildDisplay=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:'',t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'';'string'==typeof t&&(t=[{name:'',content:t}]);var a=document.createElement('div');a.classList.add('h5p-kewar-code-display');var n=document.createElement('div');return n.classList.add('h5p-kewar-code-display-title'),n.innerHTML=e,a.appendChild(n),t.forEach(function(e){var t=document.createElement('div');if(t.classList.add('h5p-kewar-code-display-row'),''!==e.name){var n=document.createElement('div');n.classList.add('h5p-kewar-code-display-row-name'),n.innerHTML=''.concat(e.name,': '),t.appendChild(n)}var o=document.createElement('div');o.classList.add('h5p-kewar-code-display-row-content'),o.innerHTML=e.content,t.appendChild(o),a.appendChild(t)}),a},r.handleClosedOverlay=function(e){e&&(this.qrcodeContainer.setAttribute('tabindex',0),this.qrcodeContainer.focus()),this.trigger('resize')},r.calledFromKewAr=function(){return new RegExp('[?&]kewar='.concat(this.contentId)).test(window.location.href)},r.bubbleUp=function(e,t,a){e.on(t,function(e){a.bubblingUpwards=!0,a.trigger(t,e),a.bubblingUpwards=!1})},r.bubbleDown=function(e,t,a){Array.isArray(a)||(a=[a]),e.on(t,function(n){e.bubblingUpwards||a.forEach(function(e){e.trigger(t,n)})})},r}g(t,e);var a=h(t);return t}(H5P.EventDispatcher);v.typeNumber=0,v.errorCorrection='L',v.svgImageSize=4096,H5P=H5P||{},H5P.KewArCode=v}]);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists