2020-05-12 12:54:34 +03:00
! function ( e ) { var t = { } ; function n ( r ) { if ( t [ r ] ) return t [ r ] . exports ; var i = t [ r ] = { i : r , l : ! 1 , exports : { } } ; return e [ r ] . call ( i . exports , i , i . exports , n ) , i . l = ! 0 , i . exports } n . m = e , n . c = t , n . d = function ( e , t , r ) { n . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : r } ) } , n . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , n . t = function ( e , t ) { if ( 1 & t && ( e = n ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var r = Object . create ( null ) ; if ( n . r ( r ) , Object . defineProperty ( r , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var i in e ) n . d ( r , i , function ( t ) { return e [ t ] } . bind ( null , i ) ) ; return r } , n . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return n . d ( t , "a" , t ) , t } , n . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , n . p = "" , n ( n . s = 810 ) } ( [ function ( e , t , n ) { var r , i , a ;
2019-05-16 17:40:02 +03:00
/ * !
2020-05-13 11:48:36 +03:00
* jQuery JavaScript Library v2 . 2.4
2019-05-16 17:40:02 +03:00
* http : //jquery.com/
*
* Includes Sizzle . js
* http : //sizzlejs.com/
*
2020-05-13 11:48:36 +03:00
* Copyright jQuery Foundation and other contributors
2019-05-16 17:40:02 +03:00
* Released under the MIT license
* http : //jquery.org/license
*
2020-05-13 11:48:36 +03:00
* Date : 2016 - 05 - 20 T17 : 23 Z
* /i="undefined"!=typeof window?window:this,a=function(n,i){var a=[],o=n.document,s=a.slice,u=a.concat,l=a.push,d=a.indexOf,c={},f=c.toString,h=c.hasOwnProperty,m={},_=function(e,t){return new _.fn.init(e,t)},p=/ ^ [ \ s\uFEFF \ xA0 ] + | [ \ s\uFEFF \ xA0 ] + $ / g , y = /^-ms-/ , g = /-([\da-z])/gi , v = function ( e , t ) { return t . toUpperCase ( ) } ; function M ( e ) { var t = ! ! e && "length" in e && e . length , n = _ . type ( e ) ; return "function" !== n && ! _ . isWindow ( e ) && ( "array" === n || 0 === t || "number" == typeof t && t > 0 && t - 1 in e ) } _ . fn = _ . prototype = { jquery : "2.2.4" , constructor : _ , selector : "" , length : 0 , toArray : function ( ) { return s . call ( this ) } , get : function ( e ) { return null != e ? e < 0 ? this [ e + this . length ] : this [ e ] : s . call ( this ) } , pushStack : function ( e ) { var t = _ . merge ( this . constructor ( ) , e ) ; return t . prevObject = this , t . context = this . context , t } , each : function ( e ) { return _ . each ( this , e ) } , map : function ( e ) { return this . pushStack ( _ . map ( this , ( function ( t , n ) { return e . call ( t , n , t ) } ) ) ) } , slice : function ( ) { return this . pushStack ( s . apply ( this , arguments ) ) } , first : function ( ) { return this . eq ( 0 ) } , last : function ( ) { return this . eq ( - 1 ) } , eq : function ( e ) { var t = this . length , n = + e + ( e < 0 ? t : 0 ) ; return this . pushStack ( n >= 0 && n < t ? [ this [ n ] ] : [ ] ) } , end : function ( ) { return this . prevObject || this . constructor ( ) } , push : l , sort : a . sort , splice : a . splice } , _ . extend = _ . fn . extend = function ( ) { var e , t , n , r , i , a , o = arguments [ 0 ] || { } , s = 1 , u = arguments . length , l = ! 1 ; for ( "boolean" == typeof o && ( l = o , o = arguments [ s ] || { } , s ++ ) , "object" == typeof o || _ . isFunction ( o ) || ( o = { } ) , s === u && ( o = this , s -- ) ; s < u ; s ++ ) if ( null != ( e = arguments [ s ] ) ) for ( t in e ) n = o [ t ] , o !== ( r = e [ t ] ) && ( l && r && ( _ . isPlainObject ( r ) || ( i = _ . isArray ( r ) ) ) ? ( i ? ( i = ! 1 , a = n && _ . isArray ( n ) ? n : [ ] ) : a = n && _ . isPlainObject ( n ) ? n : { } , o [ t ] = _ . extend ( l , a , r ) ) : void 0 !== r && ( o [ t ] = r ) ) ; return o } , _ . extend ( { expando : "jQuery" + ( "2.2.4" + Math . random ( ) ) . replace ( /\D/g , "" ) , isReady : ! 0 , error : function ( e ) { throw new Error ( e ) } , noop : function ( ) { } , isFunction : function ( e ) { return "function" === _ . type ( e ) } , isArray : Array . isArray , isWindow : function ( e ) { return null != e && e === e . window } , isNumeric : function ( e ) { var t = e && e . toString ( ) ; return ! _ . isArray ( e ) && t - parseFloat ( t ) + 1 >= 0 } , isPlainObject : function ( e ) { var t ; if ( "object" !== _ . type ( e ) || e . nodeType || _ . isWindow ( e ) ) return ! 1 ; if ( e . constructor && ! h . call ( e , "constructor" ) && ! h . call ( e . constructor . prototype || { } , "isPrototypeOf" ) ) return ! 1 ; for ( t in e ) ; return void 0 === t || h . call ( e , t ) } , isEmptyObject : function ( e ) { var t ; for ( t in e ) return ! 1 ; return ! 0 } , type : function ( e ) { return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? c [ f . call ( e ) ] || "object" : typeof e } , globalEval : function ( e ) { var t , n = eval ; ( e = _ . trim ( e ) ) && ( 1 === e . indexOf ( "use strict" ) ? ( ( t = o . createElement ( "script" ) ) . text = e , o . head . appendChild ( t ) . parentNode . removeChild ( t ) ) : n ( e ) ) } , camelCase : function ( e ) { return e . replace ( y , "ms-" ) . replace ( g , v ) } , nodeName : function ( e , t ) { return e . nodeName && e . nodeName . toLowerCase ( ) === t . toLowerCase ( ) } , each : function ( e , t ) { var n , r = 0 ; if ( M ( e ) ) for ( n = e . length ; r < n && ! 1 !== t . call ( e [ r ] , r , e [ r ] ) ; r ++ ) ; else for ( r in e ) if ( ! 1 === t . call ( e [ r ] , r , e [ r ] ) ) break ; return e } , trim : function ( e ) { return null == e ? "" : ( e + "" ) . replace ( p , "" ) } , makeArray : function ( e , t ) { var n = t || [ ] ; return null != e && ( M ( Object ( e ) ) ? _ . merge ( n , "string" == typeof e ? [ e ] : e ) : l . call ( n , e ) ) , n } , inArray : function ( e , t , n ) { return null == t ? - 1 : d . call ( t , e , n ) } , merge : function ( e , t ) { for ( var n = + t . length , r = 0 , i = e . length ; r < n ; r ++ ) e [ i ++ ] = t [ r ] ; return e . length = i , e } , grep : function ( e , t , n ) { for ( var r = [ ] , i = 0 , a = e . length , o = ! n ; i < a ; i ++ ) ! t ( e [ i ] , i ) !== o && r . push ( e [ i ] ) ; return r } , map : function ( e , t , n ) { var r , i , a = 0 , o = [ ] ; if ( M ( e ) ) for ( r = e . length ; a < r ; a ++ ) null != ( i = t ( e [ a ] , a , n ) ) && o . push ( i ) ; else for ( a in e ) null != ( i = t ( e [ a ] , a , n ) ) && o . push ( i ) ; return u . apply ( [ ] , o ) } , guid : 1 , proxy : function ( e , t ) { var n , r , i ; if ( "string" == typeof t && ( n = e [ t ] , t = e , e = n ) , _ . isFunction ( e ) ) return r = s . call ( arguments , 2 ) , ( i = function ( ) { return e . apply ( t || this , r . concat ( s . call ( arguments ) ) ) } ) . guid = e . guid = e . guid || _ . guid ++ , i } , now : Date . now , support : m } ) , "function" == typeof Symbol && ( _ . fn [ Symbol . iterator ] = a [ Symbol . iterator ] ) , _ . each ( "Boolean Number String Function Array Date RegExp Object Error Symbol" . split ( " " ) , ( function ( e , t ) { c [ "[object " + t + "]" ] = t . toLowerCase ( ) } ) ) ; var L =
2019-05-16 17:40:02 +03:00
/ * !
2020-05-13 11:48:36 +03:00
* Sizzle CSS Selector Engine v2 . 2.1
2019-05-16 17:40:02 +03:00
* http : //sizzlejs.com/
*
2020-05-13 11:48:36 +03:00
* Copyright jQuery Foundation and other contributors
2019-05-16 17:40:02 +03:00
* Released under the MIT license
* http : //jquery.org/license
*
2020-05-13 11:48:36 +03:00
* Date : 2015 - 10 - 17
2019-05-16 17:40:02 +03:00
* /
2020-05-13 11:48:36 +03:00
function ( e ) { var t , n , r , i , a , o , s , u , l , d , c , f , h , m , _ , p , y , g , v , M = "sizzle" + 1 * new Date , L = e . document , k = 0 , Y = 0 , w = ie ( ) , b = ie ( ) , T = ie ( ) , D = function ( e , t ) { return e === t && ( c = ! 0 ) , 0 } , x = { } . hasOwnProperty , S = [ ] , E = S . pop , j = S . push , O = S . push , H = S . slice , P = function ( e , t ) { for ( var n = 0 , r = e . length ; n < r ; n ++ ) if ( e [ n ] === t ) return n ; return - 1 } , A = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped" , C = "[\\x20\\t\\r\\n\\f]" , N = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+" , R = "\\[" + C + "*(" + N + ")(?:" + C + "*([*^$|!~]?=)" + C + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + N + "))|)" + C + "*\\]" , I = ":(" + N + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + R + ")*)|.*)\\)|)" , F = new RegExp ( C + "+" , "g" ) , W = new RegExp ( "^" + C + "+|((?:^|[^\\\\])(?:\\\\.)*)" + C + "+$" , "g" ) , z = new RegExp ( "^" + C + "*," + C + "*" ) , U = new RegExp ( "^" + C + "*([>+~]|" + C + ")" + C + "*" ) , $ = new RegExp ( "=" + C + "*([^\\]'\"]*?)" + C + "*\\]" , "g" ) , q = new RegExp ( I ) , B = new RegExp ( "^" + N + "$" ) , J = { ID : new RegExp ( "^#(" + N + ")" ) , CLASS : new RegExp ( "^\\.(" + N + ")" ) , TAG : new RegExp ( "^(" + N + "|[*])" ) , ATTR : new RegExp ( "^" + R ) , PSEUDO : new RegExp ( "^" + I ) , CHILD : new RegExp ( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + C + "*(even|odd|(([+-]|)(\\d*)n|)" + C + "*(?:([+-]|)" + C + "*(\\d+)|))" + C + "*\\)|)" , "i" ) , bool : new RegExp ( "^(?:" + A + ")$" , "i" ) , needsContext : new RegExp ( "^" + C + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + C + "*((?:-\\d)?\\d*)" + C + "*\\)|)(?=[^-]|$)" , "i" ) } , G = /^(?:input|select|textarea|button)$/i , V = /^h\d$/i , K = /^[^{]+\{\s*\[native \w/ , X = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/ , Z = /[+~]/ , Q = /'|\\/g , ee = new RegExp ( "\\\\([\\da-f]{1,6}" + C + "?|(" + C + ")|.)" , "ig" ) , te = function ( e , t , n ) { var r = "0x" + t - 65536 ; return r != r || n ? t : r < 0 ? String . fromCharCode ( r + 65536 ) : String . fromCharCode ( r >> 10 | 55296 , 1023 & r | 56320 ) } , ne = function ( ) { f ( ) } ; try { O . apply ( S = H . call ( L . childNodes ) , L . childNodes ) , S [ L . childNodes . length ] . nodeType } catch ( e ) { O = { apply : S . length ? function ( e , t ) { j . apply ( e , H . call ( t ) ) } : function ( e , t ) { for ( var n = e . length , r = 0 ; e [ n ++ ] = t [ r ++ ] ; ) ; e . length = n - 1 } } } function re ( e , t , r , i ) { var a , s , l , d , c , m , y , g , k = t && t . ownerDocument , Y = t ? t . nodeType : 9 ; if ( r = r || [ ] , "string" != typeof e || ! e || 1 !== Y && 9 !== Y && 11 !== Y ) return r ; if ( ! i && ( ( t ? t . ownerDocument || t : L ) !== h && f ( t ) , t = t || h , _ ) ) { if ( 11 !== Y && ( m = X . exec ( e ) ) ) if ( a = m [ 1 ] ) { if ( 9 === Y ) { if ( ! ( l = t . getElementById ( a ) ) ) return r ; if ( l . id === a ) return r . push ( l ) , r } else if ( k && ( l = k . getElementById ( a ) ) && v ( t , l ) && l . id === a ) return r . push ( l ) , r } else { if ( m [ 2 ] ) return O . apply ( r , t . getElementsByTagName ( e ) ) , r ; if ( ( a = m [ 3 ] ) && n . getElementsByClassName && t . getElementsByClassName ) return O . apply ( r , t . getElementsByClassName ( a ) ) , r } if ( n . qsa && ! T [ e + " " ] && ( ! p || ! p . test ( e ) ) ) { if ( 1 !== Y ) k = t , g = e ; else if ( "object" !== t . nodeName . toLowerCase ( ) ) { for ( ( d = t . getAttribute ( "id" ) ) ? d = d . replace ( Q , "\\$&" ) : t . setAttribute ( "id" , d = M ) , s = ( y = o ( e ) ) . length , c = B . test ( d ) ? "#" + d : "[id='" + d + "']" ; s -- ; ) y [ s ] = c + " " + me ( y [ s ] ) ; g = y . join ( "," ) , k = Z . test ( e ) && fe ( t . parentNode ) || t } if ( g ) try { return O . apply ( r , k . querySelectorAll ( g ) ) , r } catch ( e ) { } finally { d === M && t . removeAttribute ( "id" ) } } } return u ( e . replace ( W , "$1" ) , t , r , i ) } function ie ( ) { var e = [ ] ; return function t ( n , i ) { return e . push ( n + " " ) > r . cacheLength && delete t [ e . shift ( ) ] , t [ n + " " ] = i } } function ae ( e ) { return e [ M ] = ! 0 , e } function oe ( e ) { var t = h . createElement ( "div" ) ; try { return ! ! e ( t ) } catch ( e ) { return ! 1 } finally { t . parentNode && t . parentNode . removeChild ( t ) , t = null } } function se ( e , t ) { for ( var n = e . split ( "|" ) , i = n . length ; i -- ; ) r . attrHandle [ n [ i ] ] = t } function ue ( e , t ) { var n = t && e , r = n && 1 === e . nodeType && 1 === t . nodeType && ( ~ t . sourceIndex || 1 << 31 ) - ( ~ e . sourceIndex || 1 << 31 ) ; if ( r ) return r ; if ( n ) for ( ; n = n . nextSibling ; ) if ( n === t ) return - 1 ; return e ? 1 : - 1 } function le ( e ) { return function ( t ) { return "input" === t . nodeName . toLowerCase ( ) && t . type === e } } function de ( e ) { return function ( t ) { var n = t . nodeName . toLowerCase ( ) ; return ( "input" === n || "button" === n ) && t . type === e } } function ce ( e ) { return ae ( ( function ( t ) { return t = + t , ae ( ( function ( n , r ) { for ( var i , a = e ( [ ] , n . length , t ) , o = a . length ; o -- ; ) n [ i = a [ o ] ] && ( n [ i ] = ! ( r [ i ] = n [ i ] ) ) } ) ) } ) ) } function fe ( e ) { return e && void 0 !== e . getElementsByTagName && e } for ( t in n = re . support = { } , a = re . isXML = function ( e ) { var t = e && ( e . ownerDocument || e ) . documentElement ; return ! ! t && "HTML" !== t . nodeName } , f = re . setDocument = function ( e ) { var t , i
2019-11-03 11:22:59 +03:00
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
* @ copyright Copyright ( c ) 2019 Gary Kim < gary @ garykim . dev >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
* @ author Gary Kim < gary @ garykim . dev >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
2020-05-13 11:48:36 +03:00
* /var z={YES_NO_BUTTONS:70,OK_BUTTONS:71,FILEPICKER_TYPE_CHOOSE:1,FILEPICKER_TYPE_MOVE:2,FILEPICKER_TYPE_COPY:3,FILEPICKER_TYPE_COPY_MOVE:4,FILEPICKER_TYPE_CUSTOM:5,dialogsCounter:0,alert:function(e,t,n,r){this.message(e,t,"alert",z.OK_BUTTON,n,r)},info:function(e,t,n,r){this.message(e,t,"info",z.OK_BUTTON,n,r)},confirm:function(e,t,n,r){return this.message(e,t,"notice",z.YES_NO_BUTTONS,n,r)},confirmDestructive:function(e,t,n,r,i){return this.message(e,t,"none",n,r,i)},confirmHtml:function(e,t,n,r){return this.message(e,t,"notice",z.YES_NO_BUTTONS,n,r,!0)},prompt:function(e,n,r,i,a,o){return s.a.when(this._getMessageTemplate()).then((function(u){var l="oc-dialog-"+z.dialogsCounter+"-content",c="#"+l,f=u.octemplate({dialog_name:l,title:n,message:e,type:"notice"}),h=s()("<input/ > ");h.attr(" type ",o?" password ":" text ").attr(" id ",l+" - input ").attr(" placeholder ",a);var m=s()(" < label / > ").attr(" for ",l+" - input ").text(a+" : ");f.append(m),f.append(h),void 0===i&&(i=!1),s()(" body ").append(f),void 0!==r&&(r=d.default.once(r));var _=[{text:t(" core "," No "),click:function(){void 0!==r&&r(!1,h.val()),s()(c).ocdialog(" close ")}},{text:t(" core "," Yes "),click:function(){void 0!==r&&r(!0,h.val()),s()(c).ocdialog(" close ")},defaultButton:!0}];s()(c).ocdialog({closeOnEscape:!0,modal:i,buttons:_,close:function(){void 0!==r&&r(!1,h.val())}}),h.focus(),z.dialogsCounter++}))},filepicker:function(e,n,r,i,a,o,u,l){var c=this;if(this.filepicker.sortField=" name ",this.filepicker.sortOrder=" asc ",!this.filepicker.loading){void 0===o&&(o=this.FILEPICKER_TYPE_CHOOSE);var f=t(" core "," No files in here "),h=t(" files "," New folder ");o!==this.FILEPICKER_TYPE_COPY&&o!==this.FILEPICKER_TYPE_MOVE&&o!==this.FILEPICKER_TYPE_COPY_MOVE||(f=t(" core "," No more subfolders in here ")),this.filepicker.loading=!0,this.filepicker.filesClient=F.a.Sharing&&F.a.Sharing.PublicApp&&F.a.Sharing.PublicApp.fileList?F.a.Sharing.PublicApp.fileList.filesClient:me.Files.getClient(),this.filelist=null,u=u||" ",l=Object.assign({allowDirectoryChooser:!1},l),s.a.when(this._getFilePickerTemplate()).then((function(m){c.filepicker.loading=!1;c.$filePicker&&c.$filePicker.ocdialog(" close "),null==i&&(i=[])," string "==typeof i&&(i=[i]),c.$filePicker=m.octemplate({dialog_name:" oc - dialog - filepicker - content ",title:e,emptytext:f,newtext:h,nameCol:t(" core "," Name "),sizeCol:t(" core "," Size "),modifiedCol:t(" core "," Modified ")}).data(" path ",u).data(" multiselect ",r).data(" mimetype ",i).data(" allowDirectoryChooser ",l.allowDirectoryChooser),void 0===a&&(a=!1),void 0===r&&(r=!1),me.Util.isIE()&&(c.$filePicker.find(" # picker - view - toggle ").remove(),c.$filePicker.find(" # picker - filestable ").removeClass(" view - grid ")),s()(" body ").append(c.$filePicker),c.$showGridView=s()(" input # picker - showgridview "),c.$showGridView.on(" change ",d.default.bind(c._onGridviewChange,c)),me.Util.isIE()||c._getGridSettings();var _=c.$filePicker.find(" . actions . creatable . button - add ");o!==c.FILEPICKER_TYPE_CHOOSE||l.allowDirectoryChooser||_.hide(),_.on(" focus ",(function(){c.$filePicker.ocdialog(" setEnterCallback ",(function(){event.stopImmediatePropagation(),event.preventDefault(),_.click()}))})),_.on(" blur ",(function(){c.$filePicker.ocdialog(" unsetEnterCallback ")})),me.registerMenu(_,c.$filePicker.find(" . menu "),(function(){y.focus(),c.$filePicker.ocdialog(" setEnterCallback ",(function(){event.stopImmediatePropagation(),event.preventDefault(),c.$filePicker.submit()}));var e=y.val(),t=e.lastIndexOf(" . ");-1===t&&(t=e.length),y.selectRange(0,t)}));var p=c.$filePicker.find(" . filenameform "),y=p.find(" input [ type = 'text' ] ");p.find(" input [ type = 'submit' ] ").on(" click ",(function(e){e.stopImmediatePropagation(),e.preventDefault(),p.submit()}));var g=function(){var e=y.val();try{if(function(e){var n=e.trim();if(" . "===n||" . . "===n)throw t(" files ",'" { name } " is an invalid file name.',{name:e});if(0===n.length)throw t(" files "," File name cannot be empty . ");if(-1!==n.indexOf(" / "))throw t(" files ",'" / " is not allowed inside a file name.');if(n.match(me.config.blacklist_files_regex))throw t(" files ",'" { name } " is not an allowed filetype ' , { name : e } ) ; return ! 0 } ( e ) ) { if ( c . filelist . find ( ( f
2019-09-25 19:19:42 +03:00
/ * *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
2020-04-08 20:36:02 +03:00
* / n e . c u s t o m R e s u l t s = { } , n e . r e s u l t T y p e s = { } ; v a r r e = n e , i e = w i n d o w . _ t h e m e | | { } , a e = i ( 1 ) , o e = i . n ( a e ) ;
2019-05-16 17:40:02 +03:00
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
2019-09-25 19:19:42 +03:00
/ * *
2019-05-16 17:40:02 +03:00
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
2020-05-11 14:46:47 +03:00
function se ( e ) { for ( var t , n = [ ] , r = 0 , i = - 1 , a = 0 ; r < e . length ; ) { t = e . charAt ( r ) ; var o = ! a && "." === t || t >= "0" && t <= "9" ; o !== a && ( n [ ++ i ] = "" , a = o ) , n [ i ] += t , r ++ } return n } var ue = { History : { _handlers : [ ] , _pushState : function ( e , t , n ) { var r ; if ( r = "string" == typeof e ? e : me . buildQueryString ( e ) , window . history . pushState ) { if ( t = t || location . pathname + "?" + r , navigator . userAgent . toLowerCase ( ) . indexOf ( "firefox" ) > - 1 && parseInt ( navigator . userAgent . split ( "/" ) . pop ( ) ) < 51 ) for ( var i , a = document . querySelectorAll ( '[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]' ) , o = 0 , s = a . length ; o < s ; o ++ ) ( i = a [ o ] ) . style . fill = i . style . fill , i . style . stroke = i . style . stroke , i . removeAttribute ( "filter" ) , i . setAttribute ( "filter" , "url(#invert)" ) ; n ? window . history . replaceState ( e , "" , t ) : window . history . pushState ( e , "" , t ) } else window . location . hash = "?" + r , this . _cancelPop = ! 0 } , pushState : function ( e , t ) { this . _pushState ( e , t , ! 1 ) } , replaceState : function ( e , t ) { this . _pushState ( e , t , ! 0 ) } , addOnPopStateHandler : function ( e ) { this . _handlers . push ( e ) } , _parseHashQuery : function ( ) { var e = window . location . hash , t = e . indexOf ( "?" ) ; return t >= 0 ? e . substr ( t + 1 ) : e . length ? e . substr ( 1 ) : "" } , _decodeQuery : function ( e ) { return e . replace ( /\+/g , " " ) } , parseUrlQuery : function ( ) { var e , t = this . _parseHashQuery ( ) ; return t && ( e = me . parseQueryString ( this . _decodeQuery ( t ) ) ) , ( e = d . default . extend ( e || { } , me . parseQueryString ( this . _decodeQuery ( location . search ) ) ) ) || { } } , _onPopState : function ( e ) { var t ; if ( this . _cancelPop ) this . _cancelPop = ! 1 ; else if ( this . _handlers . length ) { t = e && e . state , d . default . isString ( t ) ? t = me . parseQueryString ( t ) : t || ( t = this . parseUrlQuery ( ) || { } ) ; for ( var n = 0 ; n < this . _handlers . length ; n ++ ) this . _handlers [ n ] ( t ) } } } , humanFileSize :
2020-02-07 19:08:50 +03:00
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
2020-05-15 09:42:55 +03:00
function ( e , t ) { var n = [ "B" , "KB" , "MB" , "GB" , "TB" ] , r = e > 0 ? Math . floor ( Math . log ( e ) / Math . log ( 1024 ) ) : 0 , i = n [ r = Math . min ( n . length - 1 , r ) ] , a = ( e / Math . pow ( 1024 , r ) ) . toFixed ( 1 ) ; return ! 0 === t && 0 === r ? "0.0" !== a ? "< 1 KB" : "0 KB" : ( a = r < 2 ? parseFloat ( a ) . toFixed ( 0 ) : ".0" === a . substr ( a . length - 2 , 2 ) ? a . substr ( 0 , a . length - 2 ) : parseFloat ( a ) . toLocaleString ( OC . getCanonicalLocale ( ) ) ) + " " + i } , computerFileSize : function ( e ) { if ( "string" != typeof e ) return null ; var t = e . toLowerCase ( ) . trim ( ) , n = null , r = t . match ( /^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i ) ; return null === r ? null : ( n = parseFloat ( t ) , isFinite ( n ) ? ( r [ 5 ] && ( n *= { b : 1 , k : 1024 , kb : 1024 , mb : 1048576 , m : 1048576 , gb : 1073741824 , g : 1073741824 , tb : 1099511627776 , t : 1099511627776 , pb : 0x4000000000000 , p : 0x4000000000000 } [ r [ 5 ] ] ) , n = Math . round ( n ) ) : null ) } , formatDate : function ( e , t ) { return console . warn ( "OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment" ) , t = t || "LLL" , oe ( ) ( e ) . format ( t ) } , relativeModifiedDate : function ( e ) { console . warn ( "OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment" ) ; var n = oe ( ) ( ) . diff ( oe ( ) ( e ) ) ; return n >= 0 && n < 45e3 ? t ( "core" , "seconds ago" ) : oe ( ) ( e ) . fromNow ( ) } , isIE : function ( ) { return s ( ) ( "html" ) . hasClass ( "ie" ) } , getScrollBarWidth : function ( ) { if ( this . _scrollBarWidth ) return this . _scrollBarWidth ; var e = document . createElement ( "p" ) ; e . style . width = "100%" , e . style . height = "200px" ; var t = document . createElement ( "div" ) ; t . style . position = "absolute" , t . style . top = "0px" , t . style . left = "0px" , t . style . visibility = "hidden" , t . style . width = "200px" , t . style . height = "150px" , t . style . overflow = "hidden" , t . appendChild ( e ) , document . body . appendChild ( t ) ; var n = e . offsetWidth ; t . style . overflow = "scroll" ; var r = e . offsetWidth ; return n === r && ( r = t . clientWidth ) , document . body . removeChild ( t ) , this . _scrollBarWidth = n - r , this . _scrollBarWidth } , stripTime : function ( e ) { return new Date ( e . getFullYear ( ) , e . getMonth ( ) , e . getDate ( ) ) } , naturalSortCompare : function ( e , t ) { var n , r = se ( e ) , i = se ( t ) ; for ( n = 0 ; r [ n ] && i [ n ] ; n ++ ) if ( r [ n ] !== i [ n ] ) { var a = Number ( r [ n ] ) , o = Number ( i [ n ] ) ; return a == r [ n ] && o == i [ n ] ? a - o : r [ n ] . localeCompare ( i [ n ] , me . getLanguage ( ) ) } return r . length - i . length } , waitFor : function ( e , t ) { ! function n ( ) { ! 0 !== e ( ) && setTimeout ( n , t ) } ( ) } , isCookieSetToValue : function ( e , t ) { for ( var n = document . cookie . split ( ";" ) , r = 0 ; r < n . length ; r ++ ) { var i = n [ r ] . split ( "=" ) ; if ( i [ 0 ] . trim ( ) === e && i [ 1 ] . trim ( ) === t ) return ! 0 } return ! 1 } } , le = window . _oc _debug , de = window . _oc _webroot ;
2020-05-12 12:54:34 +03:00
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
2020-05-13 11:48:36 +03:00
* / i f ( v o i d 0 = = = d e ) { v a r c e = ( d e = l o c a t i o n . p a t h n a m e ) . i n d e x O f ( " / i n d e x . p h p / " ) ; d e = - 1 ! = = c e ? d e . s u b s t r ( 0 , c e ) : d e . s u b s t r ( 0 , d e . l a s t I n d e x O f ( " / " ) ) } v a r f e , h e = d e , m e = r . a = { c o r e A p p s : A . i , m e n u S p e e d : A . j , P E R M I S S I O N _ A L L : A . a , P E R M I S S I O N _ C R E A T E : A . b , P E R M I S S I O N _ D E L E T E : A . c , P E R M I S S I O N _ N O N E : A . d , P E R M I S S I O N _ R E A D : A . e , P E R M I S S I O N _ S H A R E : A . f , P E R M I S S I O N _ U P D A T E : A . g , T A G _ F A V O R I T E : A . h , f i l e I s B l a c k l i s t e d : f u n c t i o n ( e ) { r e t u r n ! ! e . m a t c h ( P . b l a c k l i s t _ f i l e s _ r e g e x ) } , a d d S c r i p t : f u n c t i o n ( e , t , n ) { v a r r ; c o n s o l e . w a r n ( " O C . a d d S c r i p t i s d e p r e c a t e d , u s e O C P . L o a d e r . l o a d S c r i p t i n s t e a d " ) ; v a r i = O C . f i l e P a t h ( e , " j s " , t + " . j s " ) ; r e t u r n u [ i ] ? n & & n ( ) : ( r = s . a . D e f e r r e d ( ) , s . a . g e t S c r i p t ( i , ( f u n c t i o n ( ) { r e t u r n r . r e s o l v e ( ) } ) ) , u [ i ] = r ) , u [ i ] } , a d d S t y l e : f u n c t i o n ( e , t ) { c o n s o l e . w a r n ( " O C . a d d S t y l e i s d e p r e c a t e d , u s e O C P . L o a d e r . l o a d S t y l e s h e e t i n s t e a d " ) ; v a r n = O C . f i l e P a t h ( e , " c s s " , t + " . c s s " ) ; - 1 = = = l . i n d e x O f ( n ) & & ( l . p u s h ( n ) , d o c u m e n t . c r e a t e S t y l e S h e e t ? d o c u m e n t . c r e a t e S t y l e S h e e t ( n ) : ( t = s ( ) ( ' < l i n k r e l = " s t y l e s h e e t " t y p e = " t e x t / c s s " h r e f = " ' + n + ' " / > ' ) , s ( ) ( " h e a d " ) . a p p e n d ( t ) ) ) } , A p p s : m . a , A p p C o n f i g : y , a p p C o n f i g : p , a p p S e t t i n g s : f u n c t i o n ( e ) { i f ( c o n s o l e . w a r n ( " O C . a p p S e t t i n g s i s d e p r e c a t e d a n d w i l l b e r e m o v e d w i t h N e x t c l o u d 1 8 " ) , v o i d 0 = = = e | | v o i d 0 = = = e . a p p i d ) t h r o w { n a m e : " M i s s i n g P a r a m e t e r " , m e s s a g e : " T h e p a r a m e t e r a p p i d i s m i s s i n g " } ; v a r n = { s c r i p t N a m e : " s e t t i n g s . p h p " , c a c h e : ! 0 } ; s . a . e x t e n d ( n , e ) ; v a r r = s ( ) ( " # a p p s e t t i n g s " ) ; i f ( 0 = = = r . l e n g t h ) t h r o w { n a m e : " M i s s i n g D O M E l e m e n t " , m e s s a g e : ' T h e r e h a s b e b e a n e l e m e n t w i t h i d " a p p s e t t i n g s " f o r t h e p o p u p t o s h o w . ' } ; v a r i = s ( ) ( " # a p p s e t t i n g s _ p o p u p " ) ; i f ( 0 = = = i . l e n g t h & & ( s ( ) ( " b o d y " ) . p r e p e n d ( ' < d i v c l a s s = " p o p u p h i d d e n " i d = " a p p s e t t i n g s _ p o p u p " > < / d i v > ' ) , ( i = s ( ) ( " # a p p s e t t i n g s _ p o p u p " ) ) . a d d C l a s s ( r . h a s C l a s s ( " t o p r i g h t " ) ? " t o p r i g h t " : " b o t t o m l e f t " ) ) , i . i s ( " : v i s i b l e " ) ) i . h i d e ( ) . r e m o v e ( ) ; e l s e { v a r a = r . h a s C l a s s ( " t o p r i g h t " ) ? " u p " : " l e f t " ; s . a . g e t ( O b j e c t ( g . a ) ( n . a p p i d , " " , n . s c r i p t N a m e ) , ( f u n c t i o n ( e ) { i . h t m l ( e ) . r e a d y ( ( f u n c t i o n ( ) { i f ( i . p r e p e n d ( ' < s p a n c l a s s = " a r r o w ' + a + ' " > < / s p a n > < h 2 > ' + t ( " c o r e " , " S e t t i n g s " ) + ' < / h 2 > < a c l a s s = " c l o s e " > < / a > ' ) . s h o w ( ) , i . f i n d ( " . c l o s e " ) . b i n d ( " c l i c k " , ( f u n c t i o n ( ) { i . r e m o v e ( ) } ) ) , v o i d 0 ! = = n . l o a d J S ) { v a r e ; i f ( ! 0 = = = n . l o a d J S ) e = " s e t t i n g s . j s " ; e l s e { i f ( " s t r i n g " ! = t y p e o f n . l o a d J S ) t h r o w { n a m e : " I n v a l i d P a r a m e t e r " , m e s s a g e : ' T h e " l o a d J S " p a r a m e t e r m u s t b e e i t h e r b o o l e a n o r a s t r i n g . ' } ; e = n . l o a d J S } n . c a c h e & & s . a . a j a x S e t u p ( { c a c h e : ! 0 } ) , s . a . g e t S c r i p t ( O b j e c t ( g . a ) ( n . a p p i d , " j s " , e ) ) . f a i l ( ( f u n c t i o n ( e , t , n ) { t h r o w n } ) ) } } ) ) . s h o w ( ) } ) , " h t m l " ) } } , a p p s w e b r o o t s : v , B a c k b o n e : j , C o n t a c t s M e n u : C . a , c o n f i g : P , c u r r e n t U s e r : I , d i a l o g s : U , E v e n t S o u r c e : B , g e t C u r r e n t U s e r : f u n c t i o n ( ) { r e t u r n { u i d : I , d i s p l a y N a m e : R } } , i s U s e r A d m i n : f u n c t i o n ( ) { r e t u r n X } , L 1 0 N : Z . a , _ a j a x C o n n e c t i o n L o s t H a n d l e r : h , _ p r o c e s s A j a x E r r o r : f u n c t i o n ( e ) { ( 0 ! = = e . s t a t u s | | " a b o r t " ! = = e . s t a t u s T e x t & & " t i m e o u t " ! = = e . s t a t u s T e x t & & ! m e . _ r e l o a d C a l l e d ) & & ( d . d e f a u l t . c o n t a i n s ( [ 3 0 2 , 3 0 3 , 3 0 7 , 4 0 1 ] , e . s t a t u s ) & & m e . c u r r e n t U s e r ? s e t T i m e o u t ( ( f u n c t i o n ( ) { i f ( ! m e . _ u s e r I s N a v i g a t i n g A w a y & & ! m e . _ r e l o a d C a l l e d ) { v a r e = 0 , t = s e t I n t e r v a l ( ( f u n c t i o n ( ) { f . s h o w U p d a t e ( n ( " c o r e " , " P r o b l e m l o a d i n g p a g e , r e l o a d i n g i n % n s e c o n d " , " P r o b l e m l o a d i n g p a g e , r e l o a d i n g i n % n s e c o n d s " , 5 - e ) ) , e > = 5 & & ( c l e a r I n t e r v a l ( t ) , m e . r e l o a d ( ) ) , e + + } ) , 1 e 3 ) ; m e . _ r e l o a d C a l l e d = ! 0 } } ) , 1 0 0 ) : 0 = = = e . s t a t u s & & s e t T i m e o u t ( ( f u n c t i o n ( ) { m e . _ u s e r I s N a v i g a t i n g A w a y | | m e . _ r e l o a d C a l l e d | | m e . _ a j a x C o n n e c t i o n L o s t H a n d l e r ( ) } ) , 1 0 0 ) ) } , r e g i s t e r X H R F o r E r r o r P r o c e s s i n g : f u n c t i o n ( e ) { e . a d d E v e n t L i s t e n e r & & ( e . a d d E v e n t L i s t e n e r ( " l o a d " , ( f u n c t i o n ( ) { 4 = = = e . r e a d y S t a t e & & ( e . s t a t u s > = 2 0 0 & & e . s t a t u s < 3 0 0 | | 3 0 4 = = = e . s t a t u s | | s ( ) ( d o c u m e n t ) . t r i g g e r ( n e w s . a . E v e n t ( " a j a x E r r o r " ) , e ) ) } ) ) , e . a d d E v e n t L i s t e n e r ( " e r r o r " , ( f u n c t i o n ( ) { s ( ) ( d o c u m e n t ) . t r i g g e r ( n e w s . a . E v e n t ( " a j a x E r r o r " ) , e ) } ) ) ) } , _ c a p a b i l i t i e s : G ( ) , g e t C a p a b i l i t i e s : G , h i d e M e n u s : K , r e g i s t e r M e n u : f u n c t i o n ( e , t , n , r ) { t . a d d C l a s s ( " m e n u " ) ; v a r i = " A " = = = e . p r o p ( " t a g N a m e " ) | | " B U T T O N " = = = e . p r o p ( " t a g N a m e " ) ; e . o n ( i ? " c l i c k . m e n u " : " c l i c k . m e n u k e y u p . m e n u " , ( f u n c t i o n ( i ) { i . p r e v e n t D e f a u l t ( ) , i . k e y & & " E n t e r " ! = = i . k e y | | ( t . i s ( V ) ? K ( ) : ( V & & K ( ) , ! 0 = = = r & & t . p a r e n t ( ) . a d d C l a s s ( " o p e n e d M e n u " ) , e . a t t r ( " a r i a - e x p a n d e d " , ! 0 ) , t . s l i d e T o g g l e ( A . j , n ) , V = t , e ) ) } ) ) } , s h o w M e n u : f u n c t i o n ( e , t , n ) { t . i s ( V ) | | ( K ( ) , V = t , e , t . t r i g g e r ( n e w s . a . E v e n t ( " b e f o r e S h o w " ) ) , t . s h o w ( ) , t . t r i g g e r ( n e w s . a . E v e n t ( " a f t e r S h o w " ) ) , d . d e f a u l t . i s F u n c t i o n ( n ) & & n ( ) ) } , u n r e g i s t e r M e n u : f u n c t i o n ( e , t ) { t . i s ( V ) & & K ( ) , e . o f f ( " c l i c k . m e n u " ) . r e m o v e C l a s s ( " m e n u t o g g l e " ) , t . r e
2019-09-25 19:19:42 +03:00
/ * *
2019-05-16 17:40:02 +03:00
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
2020-05-11 14:46:47 +03:00
* / O b j e c t ( a . s u b s c r i b e ) ( " c s r f - t o k e n - u p d a t e " , ( f u n c t i o n ( e ) { O C . r e q u e s t T o k e n = e . t o k e n , c o n s o l e . i n f o ( " O C . r e q u e s t T o k e n c h a n g e d " , e . t o k e n ) } ) ) } , f u n c t i o n ( e , t ) { e . e x p o r t s = f u n c t i o n ( e ) { t r y { r e t u r n ! ! e ( ) } c a t c h ( e ) { r e t u r n ! 0 } } } , f u n c t i o n ( e , t , n ) { ( f u n c t i o n ( t ) { v a r n = f u n c t i o n ( e ) { r e t u r n e & & e . M a t h = = M a t h & & e } ; e . e x p o r t s = n ( " o b j e c t " = = t y p e o f g l o b a l T h i s & & g l o b a l T h i s ) | | n ( " o b j e c t " = = t y p e o f w i n d o w & & w i n d o w ) | | n ( " o b j e c t " = = t y p e o f s e l f & & s e l f ) | | n ( " o b j e c t " = = t y p e o f t & & t ) | | F u n c t i o n ( " r e t u r n t h i s " ) ( ) } ) . c a l l ( t h i s , n ( 2 5 ) ) } , f u n c t i o n ( e , t , n ) { v a r r = n ( 6 ) , i = n ( 8 6 ) , a = n ( 1 1 ) , o = n ( 5 1 ) , s = n ( 8 9 ) , u = n ( 1 4 3 ) , l = i ( " w k s " ) , d = r . S y m b o l , c = u ? d : d & & d . w i t h o u t S e t t e r | | o ; e . e x p o r t s = f u n c t i o n ( e ) { r e t u r n a ( l , e ) | | ( s & & a ( d , e ) ? l [ e ] = d [ e ] : l [ e ] = c ( " S y m b o l . " + e ) ) , l [ e ] } } , f u n c t i o n ( e , t ) { e . e x p o r t s = f u n c t i o n ( e ) { r e t u r n " o b j e c t " = = t y p e o f e ? n u l l ! = = e : " f u n c t i o n " = = t y p e o f e } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 8 ) ; e . e x p o r t s = f u n c t i o n ( e ) { i f ( ! r ( e ) ) t h r o w T y p e E r r o r ( S t r i n g ( e ) + " i s n o t a n o b j e c t " ) ; r e t u r n e } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 5 ) ; e . e x p o r t s = ! r ( ( f u n c t i o n ( ) { r e t u r n 7 ! = O b j e c t . d e f i n e P r o p e r t y ( { } , 1 , { g e t : f u n c t i o n ( ) { r e t u r n 7 } } ) [ 1 ] } ) ) } , f u n c t i o n ( e , t ) { v a r n = { } . h a s O w n P r o p e r t y ; e . e x p o r t s = f u n c t i o n ( e , t ) { r e t u r n n . c a l l ( e , t ) } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 1 0 ) , i = n ( 1 1 8 ) , a = n ( 9 ) , o = n ( 3 8 ) , s = O b j e c t . d e f i n e P r o p e r t y ; t . f = r ? s : f u n c t i o n ( e , t , n ) { i f ( a ( e ) , t = o ( t , ! 0 ) , a ( n ) , i ) t r y { r e t u r n s ( e , t , n ) } c a t c h ( e ) { } i f ( " g e t " i n n | | " s e t " i n n ) t h r o w T y p e E r r o r ( " A c c e s s o r s n o t s u p p o r t e d " ) ; r e t u r n " v a l u e " i n n & & ( e [ t ] = n . v a l u e ) , e } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 1 0 ) , i = n ( 1 2 ) , a = n ( 3 3 ) ; e . e x p o r t s = r ? f u n c t i o n ( e , t , n ) { r e t u r n i . f ( e , t , a ( 1 , n ) ) } : f u n c t i o n ( e , t , n ) { r e t u r n e [ t ] = n , e } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 3 4 ) , i = M a t h . m i n ; e . e x p o r t s = f u n c t i o n ( e ) { r e t u r n e > 0 ? i ( r ( e ) , 9 0 0 7 1 9 9 2 5 4 7 4 0 9 9 1 ) : 0 } } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; n . d ( t , " i " , ( f u n c t i o n ( ) { r e t u r n r } ) ) , n . d ( t , " j " , ( f u n c t i o n ( ) { r e t u r n i } ) ) , n . d ( t , " d " , ( f u n c t i o n ( ) { r e t u r n a } ) ) , n . d ( t , " b " , ( f u n c t i o n ( ) { r e t u r n o } ) ) , n . d ( t , " e " , ( f u n c t i o n ( ) { r e t u r n s } ) ) , n . d ( t , " g " , ( f u n c t i o n ( ) { r e t u r n u } ) ) , n . d ( t , " c " , ( f u n c t i o n ( ) { r e t u r n l } ) ) , n . d ( t , " f " , ( f u n c t i o n ( ) { r e t u r n d } ) ) , n . d ( t , " a " , ( f u n c t i o n ( ) { r e t u r n c } ) ) , n . d ( t , " h " , ( f u n c t i o n ( ) { r e t u r n f } ) ) ;
2019-09-25 19:19:42 +03:00
/ * *
2019-05-16 17:40:02 +03:00
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software = you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation either version 3 of the
* License or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not see < http : //www.gnu.org/licenses/>.
* /
2020-05-12 12:54:34 +03:00
var r = [ "" , "admin" , "log" , "core/search" , "core" , "3rdparty" ] , i = 50 , a = 0 , o = 4 , s = 1 , u = 2 , l = 8 , d = 16 , c = 31 , f = "_$!<Favorite>!$_" } , function ( e , t , n ) { var r = n ( 28 ) ; e . exports = function ( e ) { return Object ( r ( e ) ) } } , function ( e , t ) { e . exports = function ( e ) { try { return ! ! e ( ) } catch ( e ) { return ! 0 } } } , function ( e , t , n ) { var r = n ( 6 ) , i = n ( 13 ) , a = n ( 11 ) , o = n ( 67 ) , s = n ( 85 ) , u = n ( 22 ) , l = u . get , d = u . enforce , c = String ( String ) . split ( "String" ) ; ( e . exports = function ( e , t , n , s ) { var u = ! ! s && ! ! s . unsafe , l = ! ! s && ! ! s . enumerable , f = ! ! s && ! ! s . noTargetGet ; "function" == typeof n && ( "string" != typeof t || a ( n , "name" ) || i ( n , "name" , t ) , d ( n ) . source = c . join ( "string" == typeof t ? t : "" ) ) , e !== r ? ( u ? ! f && e [ t ] && ( l = ! 0 ) : delete e [ t ] , l ? e [ t ] = n : i ( e , t , n ) ) : l ? e [ t ] = n : o ( t , n ) } ) ( Function . prototype , "toString" , ( function ( ) { return "function" == typeof this && l ( this ) . source || s ( this ) } ) ) } , function ( e , t , n ) { var r = n ( 50 ) , i = n ( 28 ) ; e . exports = function ( e ) { return r ( i ( e ) ) } } , function ( e , t , n ) { ( function ( t ) { var n = function ( e ) { return e && e . Math == Math && e } ; e . exports = n ( "object" == typeof globalThis && globalThis ) || n ( "object" == typeof window && window ) || n ( "object" == typeof self && self ) || n ( "object" == typeof t && t ) || Function ( "return this" ) ( ) } ) . call ( this , n ( 25 ) ) } , function ( e , t , n ) { "use strict" ; var r = n ( 352 ) , i = Object . prototype . toString ; function a ( e ) { return "[object Array]" === i . call ( e ) } function o ( e ) { return void 0 === e } function s ( e ) { return null !== e && "object" == typeof e } function u ( e ) { return "[object Function]" === i . call ( e ) } function l ( e , t ) { if ( null != e ) if ( "object" != typeof e && ( e = [ e ] ) , a ( e ) ) for ( var n = 0 , r = e . length ; n < r ; n ++ ) t . call ( null , e [ n ] , n , e ) ; else for ( var i in e ) Object . prototype . hasOwnProperty . call ( e , i ) && t . call ( null , e [ i ] , i , e ) } e . exports = { isArray : a , isArrayBuffer : function ( e ) { return "[object ArrayBuffer]" === i . call ( e ) } , isBuffer : function ( e ) { return null !== e && ! o ( e ) && null !== e . constructor && ! o ( e . constructor ) && "function" == typeof e . constructor . isBuffer && e . constructor . isBuffer ( e ) } , isFormData : function ( e ) { return "undefined" != typeof FormData && e instanceof FormData } , isArrayBufferView : function ( e ) { return "undefined" != typeof ArrayBuffer && ArrayBuffer . isView ? ArrayBuffer . isView ( e ) : e && e . buffer && e . buffer instanceof ArrayBuffer } , isString : function ( e ) { return "string" == typeof e } , isNumber : function ( e ) { return "number" == typeof e } , isObject : s , isUndefined : o , isDate : function ( e ) { return "[object Date]" === i . call ( e ) } , isFile : function ( e ) { return "[object File]" === i . call ( e ) } , isBlob : function ( e ) { return "[object Blob]" === i . call ( e ) } , isFunction : u , isStream : function ( e ) { return s ( e ) && u ( e . pipe ) } , isURLSearchParams : function ( e ) { return "undefined" != typeof URLSearchParams && e instanceof URLSearchParams } , isStandardBrowserEnv : function ( ) { return ( "undefined" == typeof navigator || "ReactNative" !== navigator . product && "NativeScript" !== navigator . product && "NS" !== navigator . product ) && ( "undefined" != typeof window && "undefined" != typeof document ) } , forEach : l , merge : function e ( ) { var t = { } ; function n ( n , r ) { "object" == typeof t [ r ] && "object" == typeof n ? t [ r ] = e ( t [ r ] , n ) : t [ r ] = n } for ( var r = 0 , i = arguments . length ; r < i ; r ++ ) l ( arguments [ r ] , n ) ; return t } , deepMerge : function e ( ) { var t = { } ; function n ( n , r ) { "object" == typeof t [ r ] && "object" == typeof n ? t [ r ] = e ( t [ r ] , n ) : t [ r ] = "object" == typeof n ? e ( { } , n ) : n } for ( var r = 0 , i = arguments . length ; r < i ; r ++ ) l ( arguments [ r ] , n ) ; return t } , extend : function ( e , t , n ) { return l ( t , ( function ( t , i ) { e [ i ] = n && "function" == typeof t ? r ( t , n ) : t } ) ) , e } , trim : function ( e ) { return e . replace ( /^\s*/ , "" ) . replace ( /\s*$/ , "" ) } } } , function ( e , t , n ) { var r , i , a , o = n ( 176 ) , s = n ( 6 ) , u = n ( 8 ) , l = n ( 13 ) , d = n ( 11 ) , c = n ( 57 ) , f = n ( 43 ) , h = s . WeakMap ; if ( o ) { var m = new h , _ = m . get , p = m . has , y = m . set ; r = function ( e , t ) { return y . call ( m , e , t ) , t } , i = function ( e ) { return _ . call ( m , e ) || { } } , a = function ( e ) { return p . call ( m , e ) } } else { var g = c ( "state" ) ; f [ g ] = ! 0 , r = function ( e , t ) { return l ( e , g , t ) , t } , i = function ( e ) { return d ( e , g ) ? e [ g ] : { } } , a = function ( e ) { return d ( e , g ) } } e . exports = { set : r , get : i , has : a , enforce : function ( e ) { return a ( e ) ? i ( e ) : r ( e , { } ) } , getterFor : function ( e ) { return function ( t ) { var n ; if ( ! u ( t ) || ( n = i ( t ) ) . type !== e ) throw TypeError ( "Incompatible receiver, " + e + " required" ) ; return n } } } } , function ( e , t , n ) { "use strict" ; n ( 361 ) , n ( 376 ) , n ( 379 ) , n ( 171 ) , n ( 384 ) , n ( 385 ) , Object . defineProperty ( t , "__esModule" , { value : ! 0 } ) , t . getRootUrl = t . generateFilePath = t . imagePath = t . generateUrl = t . generateOcsUrl = t . generateRemoteUrl = t . linkTo = void 0
2019-09-25 19:19:42 +03:00
/ * *
2019-05-31 14:27:29 +03:00
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
2020-05-12 12:54:34 +03:00
window . _oc _l10n _registry _translations = window . _oc _l10n _registry _translations || { } , window . _oc _l10n _registry _plural _functions = window . _oc _l10n _registry _plural _functions || { } ; var h = function ( e , t , n ) { m ( e ) ? function ( e , t , n ) { window . _oc _l10n _registry _translations [ e ] = Object . assign ( window . _oc _l10n _registry _translations [ e ] , t ) , window . _oc _l10n _registry _plural _functions [ e ] = n } ( e , t , n ) : function ( e , t , n ) { window . _oc _l10n _registry _translations [ e ] = t , window . _oc _l10n _registry _plural _functions [ e ] = n } ( e , t , n ) } , m = function ( e ) { return void 0 !== window . _oc _l10n _registry _translations [ e ] && void 0 !== window . _oc _l10n _registry _plural _functions [ e ] } , _ = function ( e ) { return { translations : window . _oc _l10n _registry _translations [ e ] || { } , pluralFunction : window . _oc _l10n _registry _plural _functions [ e ] } } ; function p ( e ) { return ( p = "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 } ) ( e ) } var y = { load : function ( e , t ) { if ( m ( e ) || "en" === f . a . getLocale ( ) ) { var n = a . a . Deferred ( ) , r = n . promise ( ) ; return r . then ( t ) , n . resolve ( ) , r } var i = this , o = f . a . filePath ( e , "l10n" , f . a . getLocale ( ) + ".json" ) ; return a . a . get ( o ) . then ( ( function ( t ) { t . translations && i . register ( e , t . translations , t . pluralForm ) } ) ) . then ( t ) } , register : function ( e , t ) { h ( e , t , this . _getPlural ) } , _unregister : function ( e ) { delete window . _oc _l10n _registry _translations [ e ] , delete window . _oc _l10n _registry _plural _functions [ e ] } , translate : function ( e , t , n , i , a ) { var o = a || { } ; r . default . defaults ( o , { escape : ! 0 } ) ; var u = t , l = _ ( e ) . translations [ t ] ; return void 0 !== l && ( u = l ) , "object" === p ( n ) || void 0 !== i ? s . a . sanitize ( function ( e , t , n ) { return e . replace ( /%n/g , n ) . replace ( /{([^{}]*)}/g , ( function ( e , n ) { var r = t [ n ] ; return "string" == typeof r || "number" == typeof r ? o . escape ? s . a . sanitize ( c ( ) ( r ) ) : s . a . sanitize ( r ) : s . a . sanitize ( e ) } ) ) } ( u , n , i ) ) : s . a . sanitize ( u ) } , translatePlural : function ( e , t , n , r , i , o ) { var s = "_" + t + "_::_" + n + "_" , u = _ ( e ) , l = u . translations [ s ] ; if ( void 0 !== l ) { var d = l ; if ( a . a . isArray ( d ) ) { var c = u . pluralFunction ( r ) ; return this . translate ( e , d [ c ] , i , r , o ) } } return 1 === r ? this . translate ( e , t , i , r , o ) : this . translate ( e , n , i , r , o ) } , _getPlural : function ( e ) { var t = f . a . getLanguage ( ) ; if ( "pt_BR" === t && ( t = "xbr" ) , void 0 === t || "" === t ) return 1 === e ? 0 : 1 ; switch ( t . length > 3 && ( t = t . substring ( 0 , t . lastIndexOf ( "_" ) ) ) , t ) { case "az" : case "bo" : case "dz" : case "id" : case "ja" : case "jv" : case "ka" : case "km" : case "kn" : case "ko" : case "ms" : case "th" : case "tr" : case "vi" : case "zh" : return 0 ; case "af" : case "bn" : case "bg" : case "ca" : case "da" : case "de" : case "el" : case "en" : case "eo" : case "es" : case "et" : case "eu" : case "fa" : case "fi" : case "fo" : case "fur" : case "fy" : case "gl" : case "gu" : case "ha" : case "he" : case "hu" : case "is" : case "it" : case "ku" : case "lb" : case "ml" : case "mn" : case "mr" : case "nah" : case "nb" : case "ne" : case "nl" : case "nn" : case "no" : case "oc" : case "om" : case "or" : case "pa" : case "pap" : case "ps" : case "pt" : case "so" : case "sq" : case "sv" : case "sw" : case "ta" : case "te" : case "tk" : case "ur" : case "zu" : return 1 === e ? 0 : 1 ; case "am" : case "bh" : case "fil" : case "fr" : case "gun" : case "hi" : case "hy" : case "ln" : case "mg" : case "nso" : case "xbr" : case "ti" : case "wa" : return 0 === e || 1 === e ? 0 : 1 ; case "be" : case "bs" : case "hr" : case "ru" : case "sh" : case "sr" : case "uk" : return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && ( e % 100 < 10 || e % 100 >= 20 ) ? 1 : 2 ; case "cs" : case "sk" : return 1 === e ? 0 : e >= 2 && e <= 4 ? 1 : 2 ; case "ga" : return 1 === e ? 0 : 2 === e ? 1 : 2 ; case "lt" : return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && ( e % 100 < 10 || e % 100 >= 20 ) ? 1 : 2 ; case "sl" : return e % 100 == 1 ? 0 : e % 100 == 2 ? 1 : e % 100 == 3 || e % 100 == 4 ? 2 : 3 ; case "mk" : return e % 10 == 1 ? 0 : 1 ; case "mt" : return 1 === e ? 0 : 0 === e || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3 ; case "lv" : return 0 === e ? 0 : e % 10 == 1 && e % 100 != 11 ? 1 : 2 ; case "pl" : return 1 === e ? 0 : e % 10 >= 2 && e % 10 <= 4 && ( e % 100 < 12 || e % 100 > 14 ) ? 1 : 2 ; case "cy" : return 1 === e ? 0 : 2 === e ? 1 : 8 === e || 11 === e ? 2 : 3 ; case "ro" : return 1 === e ? 0 : 0 === e || e % 100 > 0 && e % 100 < 20 ? 1 : 2 ; case "ar" : return 0 === e ? 0 : 1 === e ? 1 : 2 === e ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 && e % 100 <= 99 ? 4 : 5 ; default : return 0 } } } , g = ( t . a = y , function ( ) { var e = v ( ) ; return "string" == typeof e ? e . replace ( /_/g , "-" ) : e } ) , v = function ( ) { return a ( ) ( "html" ) . data ( "locale" ) } , M = function ( ) { return a ( ) ( "html" ) . prop ( "lang" ) } ; l . a . registerHelper ( "t" , ( function ( e , t ) { return y . translate ( e , t ) } ) ) } , function ( e , t , n ) { "use strict" ; n . d ( t , "a" , ( fun
2019-05-16 17:40:02 +03:00
/ * *
* @ copyright Copyright ( c ) 2016 Joas Schilling < coding @ schilljs . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
*
* /
2020-05-15 09:21:36 +03:00
function o ( t , n , r ) { "post" !== t && "delete" !== t || ! a . a . PasswordConfirmation . requiresPasswordConfirmation ( ) ? ( r = r || { } , i . a . ajax ( { type : t . toUpperCase ( ) , url : a . a . linkToOCS ( "apps/provisioning_api/api/v1" , 2 ) + "config/apps" + n , data : r . data || { } , success : r . success , error : r . error } ) ) : a . a . PasswordConfirmation . requirePasswordConfirmation ( e . bind ( o , this , t , n , r ) ) } function s ( e ) { o ( "get" , "" , e ) } function u ( e , t ) { o ( "get" , "/" + e , t ) } function l ( e , t , n , r ) { ( r = r || { } ) . data = { defaultValue : n } , o ( "get" , "/" + e + "/" + t , r ) } function d ( e , t , n , r ) { ( r = r || { } ) . data = { value : n } , o ( "post" , "/" + e + "/" + t , r ) } function c ( e , t , n ) { o ( "delete" , "/" + e + "/" + t , n ) } } . call ( this , n ( 3 ) ) } , function ( e , t , n ) {
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
e . exports = function ( ) { "use strict" ; var e = Object . hasOwnProperty , t = Object . setPrototypeOf , n = Object . isFrozen , r = Object . keys , i = Object . freeze , a = Object . seal , o = "undefined" != typeof Reflect && Reflect , s = o . apply , u = o . construct ; s || ( s = function ( e , t , n ) { return e . apply ( t , n ) } ) , i || ( i = function ( e ) { return e } ) , a || ( a = function ( e ) { return e } ) , u || ( u = function ( e , t ) { return new ( Function . prototype . bind . apply ( e , [ null ] . concat ( function ( e ) { if ( Array . isArray ( e ) ) { for ( var t = 0 , n = Array ( e . length ) ; t < e . length ; t ++ ) n [ t ] = e [ t ] ; return n } return Array . from ( e ) } ( t ) ) ) ) } ) ; var l = Y ( Array . prototype . forEach ) , d = Y ( Array . prototype . indexOf ) , c = Y ( Array . prototype . join ) , f = Y ( Array . prototype . pop ) , h = Y ( Array . prototype . push ) , m = Y ( Array . prototype . slice ) , _ = Y ( String . prototype . toLowerCase ) , p = Y ( String . prototype . match ) , y = Y ( String . prototype . replace ) , g = Y ( String . prototype . indexOf ) , v = Y ( String . prototype . trim ) , M = Y ( RegExp . prototype . test ) , L = w ( RegExp ) , k = w ( TypeError ) ; function Y ( e ) { return function ( t ) { for ( var n = arguments . length , r = Array ( n > 1 ? n - 1 : 0 ) , i = 1 ; i < n ; i ++ ) r [ i - 1 ] = arguments [ i ] ; return s ( e , t , r ) } } function w ( e ) { return function ( ) { for ( var t = arguments . length , n = Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ] ; return u ( e , n ) } } function b ( e , r ) { t && t ( e , null ) ; for ( var i = r . length ; i -- ; ) { var a = r [ i ] ; if ( "string" == typeof a ) { var o = _ ( a ) ; o !== a && ( n ( r ) || ( r [ i ] = o ) , a = o ) } e [ a ] = ! 0 } return e } function T ( t ) { var n = { } , r = void 0 ; for ( r in t ) s ( e , t , [ r ] ) && ( n [ r ] = t [ r ] ) ; return n } var D = i ( [ "a" , "abbr" , "acronym" , "address" , "area" , "article" , "aside" , "audio" , "b" , "bdi" , "bdo" , "big" , "blink" , "blockquote" , "body" , "br" , "button" , "canvas" , "caption" , "center" , "cite" , "code" , "col" , "colgroup" , "content" , "data" , "datalist" , "dd" , "decorator" , "del" , "details" , "dfn" , "dir" , "div" , "dl" , "dt" , "element" , "em" , "fieldset" , "figcaption" , "figure" , "font" , "footer" , "form" , "h1" , "h2" , "h3" , "h4" , "h5" , "h6" , "head" , "header" , "hgroup" , "hr" , "html" , "i" , "img" , "input" , "ins" , "kbd" , "label" , "legend" , "li" , "main" , "map" , "mark" , "marquee" , "menu" , "menuitem" , "meter" , "nav" , "nobr" , "ol" , "optgroup" , "option" , "output" , "p" , "picture" , "pre" , "progress" , "q" , "rp" , "rt" , "ruby" , "s" , "samp" , "section" , "select" , "shadow" , "small" , "source" , "spacer" , "span" , "strike" , "strong" , "style" , "sub" , "summary" , "sup" , "table" , "tbody" , "td" , "template" , "textarea" , "tfoot" , "th" , "thead" , "time" , "tr" , "track" , "tt" , "u" , "ul" , "var" , "video" , "wbr" ] ) , x = i ( [ "svg" , "a" , "altglyph" , "altglyphdef" , "altglyphitem" , "animatecolor" , "animatemotion" , "animatetransform" , "audio" , "canvas" , "circle" , "clippath" , "defs" , "desc" , "ellipse" , "filter" , "font" , "g" , "glyph" , "glyphref" , "hkern" , "image" , "line" , "lineargradient" , "marker" , "mask" , "metadata" , "mpath" , "path" , "pattern" , "polygon" , "polyline" , "radialgradient" , "rect" , "stop" , "style" , "switch" , "symbol" , "text" , "textpath" , "title" , "tref" , "tspan" , "video" , "view" , "vkern" ] ) , S = i ( [ "feBlend" , "feColorMatrix" , "feComponentTransfer" , "feComposite" , "feConvolveMatrix" , "feDiffuseLighting" , "feDisplacementMap" , "feDistantLight" , "feFlood" , "feFuncA" , "feFuncB" , "feFuncG" , "feFuncR" , "feGaussianBlur" , "feMerge" , "feMergeNode" , "feMorphology" , "feOffset" , "fePointLight" , "feSpecularLighting" , "feSpotLight" , "feTile" , "feTurbulence" ] ) , E = i ( [ "math" , "menclose" , "merror" , "mfenced" , "mfrac" , "mglyph" , "mi" , "mlabeledtr" , "mmultiscripts" , "mn" , "mo" , "mover" , "mpadded" , "mphantom" , "mroot" , "mrow" , "ms" , "mspace" , "msqrt" , "mstyle" , "msub" , "msup" , "msubsup" , "mtable" , "mtd" , "mtext" , "mtr" , "munder" , "munderover" ] ) , j = i ( [ "#text" ] ) , O = i ( [ "accept" , "action" , "align" , "alt" , "autocapitalize" , "autocomplete" , "autopictureinpicture" , "autoplay" , "background" , "bgcolor" , "border" , "capture" , "cellpadding" , "cellspacing" , "checked" , "cite" , "class" , "clear" , "color" , "cols" , "colspan" , "controls" , "controlslist" , "coords" , "crossorigin" , "datetime" , "decoding" , "default" , "dir" , "disabled" , "disablepictureinpicture" , "disableremoteplayback" , "download" , "draggable" , "enctype" , "enterkeyhint" , "face" , "for" , "headers" , "height" , "hidden" , "high" , "href" , "hreflang" , "id" , "inputmode" , "integrity" , "ismap" , "kind" , "label" , "lang" , "list" , "loading" , "loop" , "low" , "max" , "maxlength" , "media" , "method" , "min" , "minlength" , "multiple" , "muted" , "name" , "noshade" , "novalidate" , "nowrap" , "open" , "optimum" , "pattern" , "placeholder" , "playsinline" , "poster" , "preload" , "pubdate" , "radiogroup" , "readonly" , "rel" , "required" , "rev" , " reve
2019-05-16 17:40:02 +03:00
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
2020-05-12 12:54:34 +03:00
* / t . a = { } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 1 0 7 ) , i = n ( 1 1 ) , a = n ( 2 0 1 ) , o = n ( 1 2 ) . f ; e . e x p o r t s = f u n c t i o n ( e ) { v a r t = r . S y m b o l | | ( r . S y m b o l = { } ) ; i ( t , e ) | | o ( t , e , { v a l u e : a . f ( e ) } ) } } , f u n c t i o n ( e , t , n ) { e . e x p o r t s = n ( 1 4 2 ) . d e f a u l t } , f u n c t i o n ( e , t , n ) { v a r r = n ( 6 ) , i = n ( 8 ) , a = r . d o c u m e n t , o = i ( a ) & & i ( a . c r e a t e E l e m e n t ) ; e . e x p o r t s = f u n c t i o n ( e ) { r e t u r n o ? a . c r e a t e E l e m e n t ( e ) : { } } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 1 1 9 ) , i = F u n c t i o n . t o S t r i n g ; " f u n c t i o n " ! = t y p e o f r . i n s p e c t S o u r c e & & ( r . i n s p e c t S o u r c e = f u n c t i o n ( e ) { r e t u r n i . c a l l ( e ) } ) , e . e x p o r t s = r . i n s p e c t S o u r c e } , f u n c t i o n ( e , t , n ) { v a r r = n ( 3 1 ) , i = n ( 1 1 9 ) ; ( e . e x p o r t s = f u n c t i o n ( e , t ) { r e t u r n i [ e ] | | ( i [ e ] = v o i d 0 ! = = t ? t : { } ) } ) ( " v e r s i o n s " , [ ] ) . p u s h ( { v e r s i o n : " 3 . 6 . 5 " , m o d e : r ? " p u r e " : " g l o b a l " , c o p y r i g h t : " © 2 0 2 0 D e n i s P u s h k a r e v ( z l o i r o c k . r u ) " } ) } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r r = n ( 3 8 ) , i = n ( 1 2 ) , a = n ( 3 3 ) ; e . e x p o r t s = f u n c t i o n ( e , t , n ) { v a r o = r ( t ) ; o i n e ? i . f ( e , o , a ( 0 , n ) ) : e [ o ] = n } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 8 ) , i = n ( 6 2 ) , a = n ( 7 ) ( " s p e c i e s " ) ; e . e x p o r t s = f u n c t i o n ( e , t ) { v a r n ; r e t u r n i ( e ) & & ( " f u n c t i o n " ! = t y p e o f ( n = e . c o n s t r u c t o r ) | | n ! = = A r r a y & & ! i ( n . p r o t o t y p e ) ? r ( n ) & & n u l l = = = ( n = n [ a ] ) & & ( n = v o i d 0 ) : n = v o i d 0 ) , n e w ( v o i d 0 = = = n ? A r r a y : n ) ( 0 = = = t ? 0 : t ) } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 5 ) ; e . e x p o r t s = ! ! O b j e c t . g e t O w n P r o p e r t y S y m b o l s & & ! r ( ( f u n c t i o n ( ) { r e t u r n ! S t r i n g ( S y m b o l ( ) ) } ) ) } , f u n c t i o n ( e , t , n ) { v a r r , i , a = n ( 6 ) , o = n ( 1 2 1 ) , s = a . p r o c e s s , u = s & & s . v e r s i o n s , l = u & & u . v 8 ; l ? i = ( r = l . s p l i t ( " . " ) ) [ 0 ] + r [ 1 ] : o & & ( ! ( r = o . m a t c h ( / E d g e \ / ( \ d + ) / ) ) | | r [ 1 ] > = 7 4 ) & & ( r = o . m a t c h ( / C h r o m e \ / ( \ d + ) / ) ) & & ( i = r [ 1 ] ) , e . e x p o r t s = i & & + i } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r r = n ( 2 ) , i = n ( 1 2 3 ) ; r ( { t a r g e t : " A r r a y " , p r o t o : ! 0 , f o r c e d : [ ] . f o r E a c h ! = i } , { f o r E a c h : i } ) } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r r = n ( 1 9 ) , i = n ( 1 0 3 ) , a = n ( 3 9 ) , o = n ( 2 2 ) , s = n ( 7 3 ) , u = o . s e t , l = o . g e t t e r F o r ( " A r r a y I t e r a t o r " ) ; e . e x p o r t s = s ( A r r a y , " A r r a y " , ( f u n c t i o n ( e , t ) { u ( t h i s , { t y p e : " A r r a y I t e r a t o r " , t a r g e t : r ( e ) , i n d e x : 0 , k i n d : t } ) } ) , ( f u n c t i o n ( ) { v a r e = l ( t h i s ) , t = e . t a r g e t , n = e . k i n d , r = e . i n d e x + + ; r e t u r n ! t | | r > = t . l e n g t h ? ( e . t a r g e t = v o i d 0 , { v a l u e : v o i d 0 , d o n e : ! 0 } ) : " k e y s " = = n ? { v a l u e : r , d o n e : ! 1 } : " v a l u e s " = = n ? { v a l u e : t [ r ] , d o n e : ! 1 } : { v a l u e : [ r , t [ r ] ] , d o n e : ! 1 } } ) , " v a l u e s " ) , a . A r g u m e n t s = a . A r r a y , i ( " k e y s " ) , i ( " v a l u e s " ) , i ( " e n t r i e s " ) } , f u n c t i o n ( e , t , n ) { v a r r = n ( 7 6 ) , i = n ( 2 4 ) , a = n ( 7 ) ( " t o S t r i n g T a g " ) , o = " A r g u m e n t s " = = i ( f u n c t i o n ( ) { r e t u r n a r g u m e n t s } ( ) ) ; e . e x p o r t s = r ? i : f u n c t i o n ( e ) { v a r t , n , r ; r e t u r n v o i d 0 = = = e ? " U n d e f i n e d " : n u l l = = = e ? " N u l l " : " s t r i n g " = = t y p e o f ( n = f u n c t i o n ( e , t ) { t r y { r e t u r n e [ t ] } c a t c h ( e ) { } } ( t = O b j e c t ( e ) , a ) ) ? n : o ? i ( t ) : " O b j e c t " = = ( r = i ( t ) ) & & " f u n c t i o n " = = t y p e o f t . c a l l e e ? " A r g u m e n t s " : r } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 9 5 ) ; e . e x p o r t s = ! r ( ( f u n c t i o n ( ) { r e t u r n 7 ! = O b j e c t . d e f i n e P r o p e r t y ( { } , 1 , { g e t : f u n c t i o n ( ) { r e t u r n 7 } } ) [ 1 ] } ) ) } , f u n c t i o n ( e , t ) { e . e x p o r t s = f u n c t i o n ( e ) { t r y { r e t u r n ! ! e ( ) } c a t c h ( e ) { r e t u r n ! 0 } } } , f u n c t i o n ( e , t ) { v a r n = { } . h a s O w n P r o p e r t y ; e . e x p o r t s = f u n c t i o n ( e , t ) { r e t u r n n . c a l l ( e , t ) } } , , , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r r = n ( 2 ) , i = n ( 5 ) , a = n ( 6 2 ) , o = n ( 8 ) , s = n ( 1 6 ) , u = n ( 1 4 ) , l = n ( 8 7 ) , d = n ( 8 8 ) , c = n ( 7 1 ) , f = n ( 7 ) , h = n ( 9 0 ) , m = f ( " i s C o n c a t S p r e a d a b l e " ) , _ = h > = 5 1 | | ! i ( ( f u n c t i o n ( ) { v a r e = [ ] ; r e t u r n e [ m ] = ! 1 , e . c o n c a t ( ) [ 0 ] ! = = e } ) ) , p = c ( " c o n c a t " ) , y = f u n c t i o n ( e ) { i f ( ! o ( e ) ) r e t u r n ! 1 ; v a r t = e [ m ] ; r e t u r n v o i d 0 ! = = t ? ! ! t : a ( e ) } ; r ( { t a r g e t : " A r r a y " , p r o t o : ! 0 , f o r c e d : ! _ | | ! p } , { c o n c a t : f u n c t i o n ( e ) { v a r t , n , r , i , a , o = s ( t h i s ) , c = d ( o , 0 ) , f = 0 ; f o r ( t = - 1 , r = a r g u m e n t s . l e n g t h ; t < r ; t + + ) i f ( a = - 1 = = = t ? o : a r g u m e n t s [ t ] , y ( a ) ) { i f ( f + ( i = u ( a . l e n g t h ) ) > 9 0 0 7 1 9 9 2 5 4 7 4 0 9 9 1 ) t h r o w T y p e E r r o r ( " M a x i m u m a l l o w e d i n d e x e x c e e d e d " ) ; f o r ( n = 0 ; n < i ; n + + , f + + ) n i n a & & l ( c , f , a [ n ] ) } e l s e { i f ( f > = 9 0 0 7 1 9 9 2 5 4 7 4 0 9 9 1 ) t h r o w T y p e E r r o r ( " M a x i m u m a l l o w e d i n d e x e x c e e d e d " ) ; l ( c , f + + , a ) } r e t u r n c . l e n g t h = f , c } } ) } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r r = { } . p r o p e r t y I s E n u m e r a b l e , i = O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r , a = i & & ! r . c a l l ( { 1 : 2 } , 1 ) ; t . f = a ? f u n c t i o n ( e ) { v a r t = i ( t h i s , e ) ; r e t u r n ! ! t & & t . e n u m e r a b l e } : r } , f u n c t i o n ( e , t , n ) { v a r r = n ( 3 4 ) , i = M a t h . m a x , a = M a t h . m i n ; e . e x p o r t s = f u n c t i o n ( e , t ) { v a r n = r ( e ) ; r e t u r n n < 0 ? i ( n + t , 0 ) : a ( n , t ) } } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r r = n ( 2 ) , i = n ( 2 9 ) . f i l t e r , a = n ( 7 1 ) , o = n ( 3 6 ) , s = a ( " f i l t e r " ) , u = o ( " f i l t e r " ) ; r ( { t a r g e t : " A r r a y " , p r o t o : ! 0 , f o r c e d : ! s | | ! u } , { f i l t e r : f u n c t i o n ( e ) { r e t u r n i ( t h i s , e , a r g u m e n t s . l e n g t h > 1 ? a r g u m e n t s [ 1 ] : v o i d 0 ) } } ) } , f u n c t i o n ( e , t , n ) { v a r r = n ( 7 ) , i = n ( 4 4 ) , a = n ( 1 2 ) , o = r ( " u n s c o p a b l e s " ) , s = A r r a y . p r o t o t y p e ; n u l l = = s [ o ] & & a . f ( s , o , { c o n f i g u r a b l e : ! 0 , v a l u e : i ( n u l l ) } ) , e . e x p o r t s = f u n c t i o n ( e ) { s [ o ] [ e ] = ! 0 } } , f u n c t i o n ( e , t , n ) { v a r r = n ( 1 8 ) ; e . e x p o r t s = f u n c t i o n ( e , t , n ) { f o r ( v a r i i n t ) r ( e , i , t [ i ] , n ) ; r e t u r n e } } , f u n c t i o n
2019-10-04 14:23:32 +03:00
/ * !
* escape - html
* Copyright ( c ) 2012 - 2013 TJ Holowaychuk
* Copyright ( c ) 2015 Andreas Lubbe
* Copyright ( c ) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
2020-05-12 12:54:34 +03:00
* /var r=/ [ "'&<>]/;e.exports=function(e){var t,n=" "+e,i=r.exec(n);if(!i)return n;var a=" ",o=0,s=0;for(o=i.index;o<n.length;o++){switch(n.charCodeAt(o)){case 34:t=" & quot ; ";break;case 38:t=" & amp ; ";break;case 39:t=" & # 39 ; ";break;case 60:t=" & lt ; ";break;case 62:t=" & gt ; ";break;default:continue}s!==o&&(a+=n.substring(s,o)),s=o+1,a+=t}return s!==o?a+n.substring(s,o):a}},function(e,t,n){" use strict ";n(438),Object.defineProperty(t," _ _esModule ",{value:!0}),t.default=void 0;var r,i=(r=n(461))&&r.__esModule?r:{default:r},a=n(141);var o=i.default.create({headers:{requesttoken:(0,a.getRequestToken)()}}),s=Object.assign(o,{CancelToken:i.default.CancelToken,isCancel:i.default.isCancel});(0,a.onRequestTokenUpdate)((function(e){return o.defaults.headers.requesttoken=e}));var u=s;t.default=u},function(e,t,n){var r=n(27),i=n(68),a=n(108),o=n(9);e.exports=r(" Reflect "," ownKeys ")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(19),i=n(14),a=n(101),o=function(e){return function(t,n,o){var s,u=r(t),l=i(u.length),d=a(o,l);if(e&&n!=n){for(;l>d;)if((s=u[d++])!=s)return!0}else for(;l>d;d++)if((e||d in u)&&u[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(5);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(93),i=n(39),a=n(7)(" iterator ");e.exports=function(e){if(null!=e)return e[a]||e[" @ @ iterator "]||i[r(e)]}},function(e,t,n){var r=n(76),i=n(18),a=n(194);r||i(Object.prototype," toString ",a,{unsafe:!0})},function(e,t,n){var r=n(6),i=n(127),a=n(123),o=n(13);for(var s in i){var u=r[s],l=u&&u.prototype;if(l&&l.forEach!==a)try{o(l," forEach ",a)}catch(e){l.forEach=a}}},,,function(e,t,n){" use strict ";Object.defineProperty(t," _ _esModule ",{value:!0}),Object.defineProperty(t," getRequestToken ",{enumerable:!0,get:function(){return r.getRequestToken}}),Object.defineProperty(t," onRequestTokenUpdate ",{enumerable:!0,get:function(){return r.onRequestTokenUpdate}}),Object.defineProperty(t," getCurrentUser ",{enumerable:!0,get:function(){return i.getCurrentUser}});var r=n(390),i=n(391)},function(e,t,n){" use strict ";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var a=i(n(205)),o=r(n(428)),s=r(n(53)),u=i(n(30)),l=i(n(429)),d=r(n(431));function c(){var e=new a.HandlebarsEnvironment;return u.extend(e,a),e.SafeString=o.default,e.Exception=s.default,e.Utils=u,e.escapeExpression=u.escapeExpression,e.VM=l,e.template=function(t){return l.template(t,e)},e}var f=c();f.create=c,d.default(f),f.default=f,t.default=f,e.exports=t.default},function(e,t,n){var r=n(89);e.exports=r&&!Symbol.sham&&" symbol "==typeof Symbol.iterator},function(e,t,n){var r=n(27);e.exports=r(" document "," documentElement ")},function(e,t,n){" use strict ";var r=n(2),i=n(6),a=n(70),o=n(18),s=n(75),u=n(64),l=n(58),d=n(8),c=n(5),f=n(125),h=n(37),m=n(146);e.exports=function(e,t,n){var _=-1!==e.indexOf(" Map "),p=-1!==e.indexOf(" Weak "),y=_?" set ":" add ",g=i[e],v=g&&g.prototype,M=g,L={},k=function(e){var t=v[e];o(v,e," add "==e?function(e){return t.call(this,0===e?0:e),this}:" delete "==e?function(e){return!(p&&!d(e))&&t.call(this,0===e?0:e)}:" get "==e?function(e){return p&&!d(e)?void 0:t.call(this,0===e?0:e)}:" has "==e?function(e){return!(p&&!d(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e," function "!=typeof g||!(p||v.forEach&&!c((function(){(new g).entries().next()})))))M=n.getConstructor(t,e,_,y),s.REQUIRED=!0;else if(a(e,!0)){var Y=new M,w=Y[y](p?{}:-0,1)!=Y,b=c((function(){Y.has(1)})),T=f((function(e){new g(e)})),D=!p&&c((function(){for(var e=new g,t=5;t--;)e[y](t,t);return!e.has(-0)}));T||((M=t((function(t,n){l(t,M,e);var r=m(new g,t,M);return null!=n&&u(n,r[y],r,_),r}))).prototype=v,v.constructor=M),(b||D)&&(k(" delete "),k(" has "),_&&k(" get " ) ) , ( D || w ) && k ( y ) , p && v . clear && delete v . clear } return L [ e ] = M , r ( { global : ! 0 , forced : M != g } , L ) , h ( M , e ) , p || n . setStrong ( M , e , _ ) , M } } , function ( e
2019-09-25 19:19:42 +03:00
/ * *
2019-05-16 17:40:02 +03:00
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
2020-05-11 14:46:47 +03:00
var r = function ( e ) { var t , n , r , i = { } ; if ( ! e ) return null ; ( t = e . indexOf ( "?" ) ) >= 0 && ( e = e . substr ( t + 1 ) ) ; for ( var a = e . replace ( /\+/g , "%20" ) . split ( "&" ) , o = 0 ; o < a . length ; o ++ ) { var s = a [ o ] ; ( n = ( t = s . indexOf ( "=" ) ) >= 0 ? [ s . substr ( 0 , t ) , s . substr ( t + 1 ) ] : [ s ] ) . length && ( ( r = decodeURIComponent ( n [ 0 ] ) ) && ( n . length > 1 ? i [ r ] = decodeURIComponent ( n [ 1 ] ) : i [ r ] = null ) ) } return i } , i = function ( t ) { return t ? e . map ( t , ( function ( e , t ) { var n = encodeURIComponent ( t ) ; return null != e && ( n += "=" + encodeURIComponent ( e ) ) , n } ) ) . join ( "&" ) : "" } } ) . call ( this , n ( 0 ) ) } , function ( e , t , n ) { var r = n ( 6 ) , i = n ( 85 ) , a = r . WeakMap ; e . exports = "function" == typeof a && /native code/ . test ( i ( a ) ) } , function ( e , t , n ) { var r = n ( 11 ) , i = n ( 133 ) , a = n ( 26 ) , o = n ( 12 ) ; e . exports = function ( e , t ) { for ( var n = i ( t ) , s = o . f , u = a . f , l = 0 ; l < n . length ; l ++ ) { var d = n [ l ] ; r ( e , d ) || s ( e , d , u ( t , d ) ) } } } , function ( e , t , n ) { var r = n ( 8 ) ; e . exports = function ( e ) { if ( ! r ( e ) && null !== e ) throw TypeError ( "Can't set " + String ( e ) + " as a prototype" ) ; return e } } , function ( e , t , n ) { "use strict" ; var r = n ( 145 ) , i = n ( 181 ) ; e . exports = r ( "Map" , ( function ( e ) { return function ( ) { return e ( this , arguments . length ? arguments [ 0 ] : void 0 ) } } ) , i ) } , function ( e , t , n ) { var r = n ( 9 ) ; e . exports = function ( e , t , n , i ) { try { return i ? t ( r ( n ) [ 0 ] , n [ 1 ] ) : t ( n ) } catch ( t ) { var a = e . return ; throw void 0 !== a && r ( a . call ( e ) ) , t } } } , function ( e , t , n ) { "use strict" ; var r = n ( 12 ) . f , i = n ( 44 ) , a = n ( 104 ) , o = n ( 46 ) , s = n ( 58 ) , u = n ( 64 ) , l = n ( 73 ) , d = n ( 105 ) , c = n ( 10 ) , f = n ( 75 ) . fastKey , h = n ( 22 ) , m = h . set , _ = h . getterFor ; e . exports = { getConstructor : function ( e , t , n , l ) { var d = e ( ( function ( e , r ) { s ( e , d , t ) , m ( e , { type : t , index : i ( null ) , first : void 0 , last : void 0 , size : 0 } ) , c || ( e . size = 0 ) , null != r && u ( r , e [ l ] , e , n ) } ) ) , h = _ ( t ) , p = function ( e , t , n ) { var r , i , a = h ( e ) , o = y ( e , t ) ; return o ? o . value = n : ( a . last = o = { index : i = f ( t , ! 0 ) , key : t , value : n , previous : r = a . last , next : void 0 , removed : ! 1 } , a . first || ( a . first = o ) , r && ( r . next = o ) , c ? a . size ++ : e . size ++ , "F" !== i && ( a . index [ i ] = o ) ) , e } , y = function ( e , t ) { var n , r = h ( e ) , i = f ( t ) ; if ( "F" !== i ) return r . index [ i ] ; for ( n = r . first ; n ; n = n . next ) if ( n . key == t ) return n } ; return a ( d . prototype , { clear : function ( ) { for ( var e = h ( this ) , t = e . index , n = e . first ; n ; ) n . removed = ! 0 , n . previous && ( n . previous = n . previous . next = void 0 ) , delete t [ n . index ] , n = n . next ; e . first = e . last = void 0 , c ? e . size = 0 : this . size = 0 } , delete : function ( e ) { var t = h ( this ) , n = y ( this , e ) ; if ( n ) { var r = n . next , i = n . previous ; delete t . index [ n . index ] , n . removed = ! 0 , i && ( i . next = r ) , r && ( r . previous = i ) , t . first == n && ( t . first = r ) , t . last == n && ( t . last = i ) , c ? t . size -- : this . size -- } return ! ! n } , forEach : function ( e ) { for ( var t , n = h ( this ) , r = o ( e , arguments . length > 1 ? arguments [ 1 ] : void 0 , 3 ) ; t = t ? t . next : n . first ; ) for ( r ( t . value , t . key , this ) ; t && t . removed ; ) t = t . previous } , has : function ( e ) { return ! ! y ( this , e ) } } ) , a ( d . prototype , n ? { get : function ( e ) { var t = y ( this , e ) ; return t && t . value } , set : function ( e , t ) { return p ( this , 0 === e ? 0 : e , t ) } } : { add : function ( e ) { return p ( this , e = 0 === e ? 0 : e , e ) } } ) , c && r ( d . prototype , "size" , { get : function ( ) { return h ( this ) . size } } ) , d } , setStrong : function ( e , t , n ) { var r = t + " Iterator" , i = _ ( t ) , a = _ ( r ) ; l ( e , t , ( function ( e , t ) { m ( this , { type : r , target : e , state : i ( e ) , kind : t , last : void 0 } ) } ) , ( function ( ) { for ( var e = a ( this ) , t = e . kind , n = e . last ; n && n . removed ; ) n = n . previous ; return e . target && ( e . last = n = n ? n . next : e . state . first ) ? "keys" == t ? { value : n . key , done : ! 1 } : "values" == t ? { value : n . value , done : ! 1 } : { value : [ n . key , n . value ] , done : ! 1 } : ( e . target = void 0 , { value : void 0 , done : ! 0 } ) } ) , n ? "entries" : "values" , ! n , ! 0 ) , d ( t ) } } } , function ( e , t , n ) { var r = n ( 6 ) , i = n ( 127 ) , a = n ( 92 ) , o = n ( 13 ) , s = n ( 7 ) , u = s ( "iterator" ) , l = s ( "toStringTag" ) , d = a . values ; for ( var c in i ) { var f = r [ c ] , h = f && f . prototype ; if ( h ) { if ( h [ u ] !== d ) try { o ( h , u , d ) } catch ( e ) { h [ u ] = d } if ( h [ l ] || o ( h , l , c ) , i [ c ] ) for ( var m in a ) if ( h [ m ] !== a [ m ] ) try { o ( h , m , a [ m ] ) } catch ( e ) { h [ m ] = a [ m ] } } } } , function ( e , t , n ) { "use strict" ; var r = n ( 2 ) , i = n ( 128 ) ; r ( { target : "RegExp" , proto : ! 0 , forced : /./ . exec !== i } , { exec : i } ) } , function ( e , t , n ) { "use strict" ; n ( 183 ) ; var r = n ( 18 ) , i = n ( 5 ) , a = n ( 7 ) , o = n ( 128 ) , s = n ( 13 ) , u = a ( "species" ) , l = ! i ( ( function ( ) { var e = /./ ; return e . exec = function ( ) { var e = [ ] ; return e . groups = { a : "7" } , e } , "7" !== "" . replace ( e , "$<a>" ) } ) ) , d = "$0" === "a" . replace ( /./ , "$0" ) , c = a ( "replace" ) , f = ! ! /./ [ c ] && "" === /./ [ c ] ( "a" , "$0" ) , h = ! i ( ( function ( ) { var e = /(?:)/ , t = e . exec ; e . exec = function ( ) { return t . apply ( this , arguments ) } ; var n = "ab" . split ( e ) ; return 2 !== n . length || "a" !== n [ 0 ] || "b" !== n [ 1 ] } ) ) ; e . exports = function ( e , t , n , c ) { var m = a ( e ) , _ = ! i ( ( function ( ) { var t
2019-09-25 19:19:42 +03:00
/ * *
2019-05-16 17:40:02 +03:00
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
2020-05-13 11:48:36 +03:00
* / n . a = { c a l l b a c k : n u l l , p a g e L o a d T i m e : n u l l , i n i t : f u n c t i o n ( ) { o ( ) ( " . p a s s w o r d - c o n f i r m - r e q u i r e d " ) . o n ( " c l i c k " , i . d e f a u l t . b i n d ( t h i s . r e q u i r e P a s s w o r d C o n f i r m a t i o n , t h i s ) ) , t h i s . p a g e L o a d T i m e = u . a . n o w ( ) } , r e q u i r e s P a s s w o r d C o n f i r m a t i o n : f u n c t i o n ( ) { v a r e = t h i s . p a g e L o a d T i m e - 1 e 3 * w i n d o w . n c _ p a g e L o a d , t = u . a . n o w ( ) - ( e + 1 e 3 * w i n d o w . n c _ l a s t L o g i n ) ; r e t u r n w i n d o w . b a c k e n d A l l o w s P a s s w o r d C o n f i r m a t i o n & & t > 1 8 e 5 } , r e q u i r e P a s s w o r d C o n f i r m a t i o n : f u n c t i o n ( e , n , r ) { n = v o i d 0 ! = = n ? n : { } ; v a r a = { t i t l e : t ( " c o r e " , " A u t h e n t i c a t i o n r e q u i r e d " ) , t e x t : t ( " c o r e " , " T h i s a c t i o n r e q u i r e s y o u t o c o n f i r m y o u r p a s s w o r d " ) , c o n f i r m : t ( " c o r e " , " C o n f i r m " ) , l a b e l : t ( " c o r e " , " P a s s w o r d " ) , e r r o r : " " } , s = i . d e f a u l t . e x t e n d ( a , n ) , u = t h i s ; t h i s . r e q u i r e s P a s s w o r d C o n f i r m a t i o n ( ) & & l . a . d i a l o g s . p r o m p t ( s . t e x t , s . t i t l e , ( f u n c t i o n ( e , t ) { e & & " " ! = = t ? u . _ c o n f i r m P a s s w o r d ( t , s ) : i . d e f a u l t . i s F u n c t i o n ( r ) & & r ( ) } ) , ! 0 , s . l a b e l , ! 0 ) . t h e n ( ( f u n c t i o n ( ) { v a r e = o ( ) ( " . o c - d i a l o g : v i s i b l e " ) ; i f ( e . f i n d ( " . u i - i c o n " ) . r e m o v e ( ) , e . a d d C l a s s ( " p a s s w o r d - c o n f i r m a t i o n " ) , " " ! = = s . e r r o r ) { v a r t = o ( ) ( " < p > < / p > " ) . a d d C l a s s ( " m s g w a r n i n g " ) . t e x t ( s . e r r o r ) ; e . f i n d ( " . o c - d i a l o g - c o n t e n t " ) . a p p e n d ( t ) } e . f i n d ( " . o c - d i a l o g - b u t t o n r o w " ) . a d d C l a s s ( " a s i d e " ) ; v a r n = e . f i n d ( " b u t t o n " ) ; n . e q ( 0 ) . h i d e ( ) , n . e q ( 1 ) . t e x t ( s . c o n f i r m ) } ) ) , t h i s . c a l l b a c k = e } , _ c o n f i r m P a s s w o r d : f u n c t i o n ( e , n ) { v a r r = t h i s ; o . a . a j a x ( { u r l : l . a . g e n e r a t e U r l ( " / l o g i n / c o n f i r m " ) , d a t a : { p a s s w o r d : e } , t y p e : " P O S T " , s u c c e s s : f u n c t i o n ( e ) { w i n d o w . n c _ l a s t L o g i n = e . l a s t L o g i n , i . d e f a u l t . i s F u n c t i o n ( r . c a l l b a c k ) & & r . c a l l b a c k ( ) } , e r r o r : f u n c t i o n ( ) { n . e r r o r = t ( " c o r e " , " F a i l e d t o a u t h e n t i c a t e , t r y a g a i n " ) , l . a . P a s s w o r d C o n f i r m a t i o n . r e q u i r e P a s s w o r d C o n f i r m a t i o n ( r . c a l l b a c k , n ) } } ) } } } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; O b j e c t . d e f i n e P r o p e r t y ( t , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) , t . P r o x y B u s = v o i d 0 ; v a r r , i = ( r = n ( 1 9 2 ) ) & & r . _ _ e s M o d u l e ? r : { d e f a u l t : r } ; f u n c t i o n a ( e , t ) { f o r ( v a r n = 0 ; n < t . l e n g t h ; n + + ) { v a r r = t [ n ] ; r . e n u m e r a b l e = r . e n u m e r a b l e | | ! 1 , r . c o n f i g u r a b l e = ! 0 , " v a l u e " i n r & & ( r . w r i t a b l e = ! 0 ) , O b j e c t . d e f i n e P r o p e r t y ( e , r . k e y , r ) } } v a r o = " 1 . 1 . 4 " , s = f u n c t i o n ( ) { f u n c t i o n e ( t ) { ! f u n c t i o n ( e , t ) { i f ( ! ( e i n s t a n c e o f t ) ) t h r o w n e w T y p e E r r o r ( " C a n n o t c a l l a c l a s s a s a f u n c t i o n " ) } ( t h i s , e ) , f u n c t i o n ( e , t , n ) { t i n e ? O b j e c t . d e f i n e P r o p e r t y ( e , t , { v a l u e : n , e n u m e r a b l e : ! 0 , c o n f i g u r a b l e : ! 0 , w r i t a b l e : ! 0 } ) : e [ t ] = n } ( t h i s , " b u s " , v o i d 0 ) , " f u n c t i o n " = = t y p e o f t . g e t V e r s i o n & & i . d e f a u l t . v a l i d ( t . g e t V e r s i o n ( ) ) ? i . d e f a u l t . m a j o r ( t . g e t V e r s i o n ( ) ) ! = = i . d e f a u l t . m a j o r ( t h i s . g e t V e r s i o n ( ) ) & & c o n s o l e . w a r n ( " P r o x y i n g a n e v e n t b u s o f v e r s i o n " + t . g e t V e r s i o n ( ) + " w i t h " + t h i s . g e t V e r s i o n ( ) ) : c o n s o l e . w a r n ( " P r o x y i n g a n e v e n t b u s w i t h a n u n k n o w n o r i n v a l i d v e r s i o n " ) , t h i s . b u s = t } v a r t , n , r ; r e t u r n t = e , ( n = [ { k e y : " g e t V e r s i o n " , v a l u e : f u n c t i o n ( ) { r e t u r n o } } , { k e y : " s u b s c r i b e " , v a l u e : f u n c t i o n ( e , t ) { t h i s . b u s . s u b s c r i b e ( e , t ) } } , { k e y : " u n s u b s c r i b e " , v a l u e : f u n c t i o n ( e , t ) { t h i s . b u s . u n s u b s c r i b e ( e , t ) } } , { k e y : " e m i t " , v a l u e : f u n c t i o n ( e , t ) { t h i s . b u s . e m i t ( e , t ) } } ] ) & & a ( t . p r o t o t y p e , n ) , r & & a ( t , r ) , e } ( ) ; t . P r o x y B u s = s } , f u n c t i o n ( e , t , n ) { ( f u n c t i o n ( n ) { v a r r ; t = e . e x p o r t s = f , r = " o b j e c t " = = t y p e o f n & & n . e n v & & n . e n v . N O D E _ D E B U G & & / \ b s e m v e r \ b / i . t e s t ( n . e n v . N O D E _ D E B U G ) ? f u n c t i o n ( ) { v a r e = A r r a y . p r o t o t y p e . s l i c e . c a l l ( a r g u m e n t s , 0 ) ; e . u n s h i f t ( " S E M V E R " ) , c o n s o l e . l o g . a p p l y ( c o n s o l e , e ) } : f u n c t i o n ( ) { } , t . S E M V E R _ S P E C _ V E R S I O N = " 2 . 0 . 0 " ; v a r i = N u m b e r . M A X _ S A F E _ I N T E G E R | | 9 0 0 7 1 9 9 2 5 4 7 4 0 9 9 1 , a = t . r e = [ ] , o = t . s r c = [ ] , s = t . t o k e n s = { } , u = 0 ; f u n c t i o n l ( e ) { s [ e ] = u + + } l ( " N U M E R I C I D E N T I F I E R " ) , o [ s . N U M E R I C I D E N T I F I E R ] = " 0 | [ 1 - 9 ] \ \ d * " , l ( " N U M E R I C I D E N T I F I E R L O O S E " ) , o [ s . N U M E R I C I D E N T I F I E R L O O S E ] = " [ 0 - 9 ] + " , l ( " N O N N U M E R I C I D E N T I F I E R " ) , o [ s . N O N N U M E R I C I D E N T I F I E R ] = " \ \ d * [ a - z A - Z - ] [ a - z A - Z 0 - 9 - ] * " , l ( " M A I N V E R S I O N " ) , o [ s . M A I N V E R S I O N ] = " ( " + o [ s . N U M E R I C I D E N T I F I E R ] + " ) \ \ . ( " + o [ s . N U M E R I C I D E N T I F I E R ] + " ) \ \ . ( " + o [ s . N U M E R I C I D E N T I F I E R ] + " ) " , l ( " M A I N V E R S I O N L O O S E " ) , o [ s . M A I N V E R S I O N L O O S E ] = " ( " + o [ s . N U M E R I C I D E N T I F I E R L O O S E ] + " ) \ \ . ( " + o [ s . N U M E R I C I D E N T I F I E R L O O S E ] + " ) \ \ . ( " + o [ s . N U M E R I C I D E N T I F I E R L O O S E ] + " ) " , l ( " P R E R E L E A S E I D E N T I F I E R " ) , o [ s . P R E R E L E A S E I D E N T I F I E R ] = " ( ? : " + o [ s . N U M E R I C I D E N T I F I E R ] + " | " + o [ s . N O N N U M E R I C I D E N T I F I E R ] + " ) " , l ( " P R E R E L E A S E I D E N T I F I E R L O O S E " ) , o [ s . P R E R E L E A S E I D E N T I F I E R L O O S E ] = " ( ? : " + o [ s . N U M E R I C I D E N T I F I E R L O O S E ] + " | " + o [ s . N O N N U M E R I C I D E N T I F I E R ] + " ) " , l ( " P R E R E L E A S E " ) , o [ s . P R E R E L E A S E ] = " ( ? : - ( " + o [ s . P R E R E L E A S E I D E N T I F I E R ] + " ( ? : \ \ . " + o [ s . P R E R E L E A S E I D E N T I F I E R ] + " ) * ) ) " , l ( " P R E R E L E A S E L O O S E " ) , o [ s . P R E R E L E A S E L O O S E ] = " ( ? : - ? ( " + o [ s . P R E R E L E A S E I D E N T I F I E R L O O S E ] + " ( ? : \ \ . " + o [ s . P R E R E L E A S E I D E N T I F I E R L O O S E ] + " ) * ) ) " , l ( " B U I L D
2020-02-07 13:02:45 +03:00
/ * !
* Toastify js 1.7 . 0
* https : //github.com/apvarun/toastify-js
* @ license MIT licensed
*
* Copyright ( C ) 2018 Varun A P
* /
2020-05-12 12:54:34 +03:00
var r , i ; r = this , i = function ( e ) { var t = function ( e ) { return new t . lib . init ( e ) } ; function n ( e , t ) { return ! ( ! e || "string" != typeof t || ! ( e . className && e . className . trim ( ) . split ( /\s+/gi ) . indexOf ( t ) > - 1 ) ) } return t . lib = t . prototype = { toastify : "1.7.0" , constructor : t , init : function ( e ) { return e || ( e = { } ) , this . options = { } , this . toastElement = null , this . options . text = e . text || "Hi there!" , this . options . duration = 0 === e . duration ? 0 : e . duration || 3e3 , this . options . selector = e . selector , this . options . callback = e . callback || function ( ) { } , this . options . destination = e . destination , this . options . newWindow = e . newWindow || ! 1 , this . options . close = e . close || ! 1 , this . options . gravity = "bottom" === e . gravity ? "toastify-bottom" : "toastify-top" , this . options . positionLeft = e . positionLeft || ! 1 , this . options . position = e . position || "" , this . options . backgroundColor = e . backgroundColor , this . options . avatar = e . avatar || "" , this . options . className = e . className || "" , this . options . stopOnFocus = void 0 === e . stopOnFocus || e . stopOnFocus , this . options . onClick = e . onClick , this } , buildToast : function ( ) { if ( ! this . options ) throw "Toastify is not initialized" ; var e = document . createElement ( "div" ) ; if ( e . className = "toastify on " + this . options . className , this . options . position ? e . className += " toastify-" + this . options . position : ! 0 === this . options . positionLeft ? ( e . className += " toastify-left" , console . warn ( "Property `positionLeft` will be depreciated in further versions. Please use `position` instead." ) ) : e . className += " toastify-right" , e . className += " " + this . options . gravity , this . options . backgroundColor && ( e . style . background = this . options . backgroundColor ) , e . innerHTML = this . options . text , "" !== this . options . avatar ) { var t = document . createElement ( "img" ) ; t . src = this . options . avatar , t . className = "toastify-avatar" , "left" == this . options . position || ! 0 === this . options . positionLeft ? e . appendChild ( t ) : e . insertAdjacentElement ( "beforeend" , t ) } if ( ! 0 === this . options . close ) { var n = document . createElement ( "span" ) ; n . innerHTML = "✖" , n . className = "toast-close" , n . addEventListener ( "click" , function ( e ) { e . stopPropagation ( ) , this . removeElement ( this . toastElement ) , window . clearTimeout ( this . toastElement . timeOutValue ) } . bind ( this ) ) ; var r = window . innerWidth > 0 ? window . innerWidth : screen . width ; ( "left" == this . options . position || ! 0 === this . options . positionLeft ) && r > 360 ? e . insertAdjacentElement ( "afterbegin" , n ) : e . appendChild ( n ) } if ( this . options . stopOnFocus && this . options . duration > 0 ) { const t = this ; e . addEventListener ( "mouseover" , ( function ( t ) { window . clearTimeout ( e . timeOutValue ) } ) ) , e . addEventListener ( "mouseleave" , ( function ( ) { e . timeOutValue = window . setTimeout ( ( function ( ) { t . removeElement ( e ) } ) , t . options . duration ) } ) ) } return void 0 !== this . options . destination && e . addEventListener ( "click" , function ( e ) { e . stopPropagation ( ) , ! 0 === this . options . newWindow ? window . open ( this . options . destination , "_blank" ) : window . location = this . options . destination } . bind ( this ) ) , "function" == typeof this . options . onClick && void 0 === this . options . destination && e . addEventListener ( "click" , function ( e ) { e . stopPropagation ( ) , this . options . onClick ( ) } . bind ( this ) ) , e } , showToast : function ( ) { var e ; if ( this . toastElement = this . buildToast ( ) , ! ( e = void 0 === this . options . selector ? document . body : document . getElementById ( this . options . selector ) ) ) throw "Root element is not defined" ; return e . insertBefore ( this . toastElement , e . firstChild ) , t . reposition ( ) , this . options . duration > 0 && ( this . toastElement . timeOutValue = window . setTimeout ( function ( ) { this . removeElement ( this . toastElement ) } . bind ( this ) , this . options . duration ) ) , this } , hideToast : function ( ) { this . toastElement . timeOutValue && clearTimeout ( this . toastElement . timeOutValue ) , this . removeElement ( this . toastElement ) } , removeElement : function ( e ) { e . className = e . className . replace ( " on" , "" ) , window . setTimeout ( function ( ) { e . parentNode && e . parentNode . removeChild ( e ) , this . options . callback . call ( e ) , t . reposition ( ) } . bind ( this ) , 400 ) } } , t . reposition = function ( ) { for ( var e , t = { top : 15 , bottom : 15 } , r = { top : 15 , bottom : 15 } , i = { top : 15 , bottom : 15 } , a = document . getElementsByClassName ( "toastify" ) , o = 0 ; o < a . length ; o ++ ) { e = ! 0 === n ( a [ o ] , "toastify-top" ) ? "toastify-top" : "toastify-bottom" ; var s = a [ o ] . offsetHeight ; e = e . substr ( 9 , e . length - 1 ) , ( window . innerWidth > 0 ? window . innerWidth : screen . width ) <= 360 ? ( a [ o ] . style [ e ] = i [ e ] + "px" , i [ e ] += s + 15 ) : ! 0 === n (
2019-05-16 17:40:02 +03:00
//# sourceMappingURL=maintenance.js.map