nextcloud/dist/7883-7883.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

2 lines
331 KiB
JavaScript
Raw Permalink Normal View History

(self.webpackChunknextcloud_ui_legacy=self.webpackChunknextcloud_ui_legacy||[]).push([[7883],{322:e=>{"use strict";e.exports={CharacterClass:function(e){for(var u=e.node,r={},a=0;a<u.expressions.length;a++){var s=e.getChild(a),n=s.jsonEncode();r.hasOwnProperty(n)&&(s.remove(),a--),r[n]=!0}}}},1379:e=>{"use strict";e.exports=function e(u){if(null===u||"object"!=typeof u)return u;var r=void 0;for(var a in r=Array.isArray(u)?[]:{},u)r[a]=e(u[a]);return r}},2003:(e,u,r)=>{"use strict";var a=function(){function e(e,u){for(var r=0;r<u.length;r++){var a=u[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(u,r,a){return r&&e(u.prototype,r),a&&e(u,a),u}}(),s=r(20042),n=r(23810),t=r(29171),d=function(){function e(u){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}(this,e),this._ast=u,this._source=null,this._string=null,this._regexp=null,this._extra=r}return a(e,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=s.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=s.generate(this._ast)),this._string}}]),e}();e.exports={TransformResult:d,transform:function(e,u){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=n.parse(e,{captureLocations:!0})),t.traverse(r,u),new d(r)}}},3211:(e,u,r)=>{"use strict";r.d(u,{yS:()=>I});var a,s=r(94364),n=r(34999),t=r(20043);function d(e){return"number"==typeof e?e:1===e.length?e[0]:[e[0],e[e.length-1]]}function f(e){const u=Array.isArray(e)?e:e.toString().split(".");if("all"===u[0])return[1/0,0,0];let r=null,a=null;const s=[0,0,0];for(let e=0;e<3;e++)if(r=u[e],void 0!==r){if(a="number"==typeof r?r:parseInt(r,10),isNaN(a))return null;s[e]=a}return s}function i(e,u,r){const[a,s,n]=e,[t,d,f]=u,{ignoreMinor:i,ignorePatch:c,allowHigherVersions:o}=r;if(t===1/0)return!0;const l=!i,b=l&&!c;return o?!(b&&n<f||l&&s<d)&&a>=t:!(b&&n!==f||l&&s!==d)&&a===t}function c(e,u,r=0){const a=e.length;for(let s=r;s<a;s++)if(e[s]!==u[s])return!1;return!0}function o(e){if(null===e||"object"!=typeof e)return e;const u=Array.isArray(e)?[]:{};let r;for(r in e)u[r]=o(e[r]);return u}function l(e){return[].concat(...e)}function b(...e){const u=l(e).filter(Boolean);return 1===u.length?u[0]:{type:"Alternative",expressions:u}}function v(e){return{type:"Char",kind:"simple",value:String(e),codePoint:NaN}}function p(e,u){return{type:"ClassRange",from:e,to:u}}function g(...e){return{type:"CharacterClass",expressions:l(e).filter(Boolean)}}function m(e){return{type:"Group",capturing:!0,expression:e,number:null}}function h(...e){const u=function(...e){const u=l(e).filter(Boolean);if(1===u.length)return u[0];const r={type:"Disjunction",left:null,right:u.pop()};return u.reduceRight((e,u,r)=>0===r?(e.left=u,e):(e.left={type:"Disjunction",left:null,right:u},e.left),r),r}(...e);return"Disjunction"===u.type?m(u):u}function y(){return{type:"Char",kind:"meta",value:"\\d",codePoint:NaN}}function C(e={type:"Quantifier",kind:"+",greedy:!0}){const u=function(e,u){return{type:"Repetition",expression:{type:"Char",kind:"meta",value:"\\d",codePoint:NaN},quantifier:u}}(0,e);return u}function B(e){return b(Array.from(String(e),v))}function w(e){if("Group"===e.type&&"Repetition"===e.expression.type){const{expression:u,quantifier:r}=e.expression;return"Char"===u.type&&"\\d"===u.value&&"+"===r.kind&&r.greedy}return!1}function _(e,u){return!(!e||"Char"!==e.type)&&(void 0===u||u instanceof RegExp&&u.test(e.value)||String(u)===e.value)}function j(e){if("CharacterClass"===e.type&&1===e.expressions.length){const[u]=e.expressions;return"ClassRange"===u.t
//# sourceMappingURL=7883-7883.js.map?v=a1f1f5149754ebee820a