5d3e988ac49a6b2f5f2e8c935a403eed.json
4.5 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _invariant=_interopRequireDefault(require(\"fbjs/lib/invariant\"));var twoArgumentPooler=function twoArgumentPooler(a1,a2){var Klass=this;if(Klass.instancePool.length){var instance=Klass.instancePool.pop();Klass.call(instance,a1,a2);return instance;}else{return new Klass(a1,a2);}};var standardReleaser=function standardReleaser(instance){var Klass=this;instance.destructor();if(Klass.instancePool.length<Klass.poolSize){Klass.instancePool.push(instance);}};var DEFAULT_POOL_SIZE=10;var DEFAULT_POOLER=twoArgumentPooler;var addPoolingTo=function addPoolingTo(CopyConstructor,pooler){var NewKlass=CopyConstructor;NewKlass.instancePool=[];NewKlass.getPooled=pooler||DEFAULT_POOLER;if(!NewKlass.poolSize){NewKlass.poolSize=DEFAULT_POOL_SIZE;}NewKlass.release=standardReleaser;return NewKlass;};var PooledClass={addPoolingTo:addPoolingTo,twoArgumentPooler:twoArgumentPooler};var _default=PooledClass;exports.default=_default;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/dist/vendor/react-native/PooledClass/index.js"],"names":["twoArgumentPooler","a1","a2","Klass","instancePool","length","instance","pop","call","standardReleaser","destructor","poolSize","push","DEFAULT_POOL_SIZE","DEFAULT_POOLER","addPoolingTo","CopyConstructor","pooler","NewKlass","getPooled","release","PooledClass"],"mappings":"mKAUA,qEAEA,GAAIA,CAAAA,iBAAiB,CAAG,QAASA,CAAAA,iBAAT,CAA2BC,EAA3B,CAA+BC,EAA/B,CAAmC,CACzD,GAAIC,CAAAA,KAAK,CAAG,IAAZ,CAEA,GAAIA,KAAK,CAACC,YAAN,CAAmBC,MAAvB,CAA+B,CAC7B,GAAIC,CAAAA,QAAQ,CAAGH,KAAK,CAACC,YAAN,CAAmBG,GAAnB,EAAf,CACAJ,KAAK,CAACK,IAAN,CAAWF,QAAX,CAAqBL,EAArB,CAAyBC,EAAzB,EACA,MAAOI,CAAAA,QAAP,CACD,CAJD,IAIO,CACL,MAAO,IAAIH,CAAAA,KAAJ,CAAUF,EAAV,CAAcC,EAAd,CAAP,CACD,CACF,CAVD,CAYA,GAAIO,CAAAA,gBAAgB,CAAG,QAASA,CAAAA,gBAAT,CAA0BH,QAA1B,CAAoC,CACzD,GAAIH,CAAAA,KAAK,CAAG,IAAZ,CACAG,QAAQ,CAACI,UAAT,GAEA,GAAIP,KAAK,CAACC,YAAN,CAAmBC,MAAnB,CAA4BF,KAAK,CAACQ,QAAtC,CAAgD,CAC9CR,KAAK,CAACC,YAAN,CAAmBQ,IAAnB,CAAwBN,QAAxB,EACD,CACF,CAPD,CASA,GAAIO,CAAAA,iBAAiB,CAAG,EAAxB,CACA,GAAIC,CAAAA,cAAc,CAAGd,iBAArB,CAWA,GAAIe,CAAAA,YAAY,CAAG,QAASA,CAAAA,YAAT,CAAsBC,eAAtB,CAAuCC,MAAvC,CAA+C,CAGhE,GAAIC,CAAAA,QAAQ,CAAGF,eAAf,CACAE,QAAQ,CAACd,YAAT,CAAwB,EAAxB,CACAc,QAAQ,CAACC,SAAT,CAAqBF,MAAM,EAAIH,cAA/B,CAEA,GAAI,CAACI,QAAQ,CAACP,QAAd,CAAwB,CACtBO,QAAQ,CAACP,QAAT,CAAoBE,iBAApB,CACD,CAEDK,QAAQ,CAACE,OAAT,CAAmBX,gBAAnB,CACA,MAAOS,CAAAA,QAAP,CACD,CAbD,CAeA,GAAIG,CAAAA,WAAW,CAAG,CAChBN,YAAY,CAAEA,YADE,CAEhBf,iBAAiB,CAAEA,iBAFH,CAAlB,C,aAIeqB,W","sourcesContent":["/* eslint-disable */\n\n/**\n * Copyright 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * From React 16.0.0\n */\nimport invariant from 'fbjs/lib/invariant';\n\nvar twoArgumentPooler = function twoArgumentPooler(a1, a2) {\n var Klass = this;\n\n if (Klass.instancePool.length) {\n var instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2);\n return instance;\n } else {\n return new Klass(a1, a2);\n }\n};\n\nvar standardReleaser = function standardReleaser(instance) {\n var Klass = this;\n instance.destructor();\n\n if (Klass.instancePool.length < Klass.poolSize) {\n Klass.instancePool.push(instance);\n }\n};\n\nvar DEFAULT_POOL_SIZE = 10;\nvar DEFAULT_POOLER = twoArgumentPooler;\n/**\n * Augments `CopyConstructor` to be a poolable class, augmenting only the class\n * itself (statically) not adding any prototypical fields. Any CopyConstructor\n * you give this may have a `poolSize` property, and will look for a\n * prototypical `destructor` on instances.\n *\n * @param {Function} CopyConstructor Constructor that can be used to reset.\n * @param {Function} pooler Customizable pooler.\n */\n\nvar addPoolingTo = function addPoolingTo(CopyConstructor, pooler) {\n // Casting as any so that flow ignores the actual implementation and trusts\n // it to match the type we declared\n var NewKlass = CopyConstructor;\n NewKlass.instancePool = [];\n NewKlass.getPooled = pooler || DEFAULT_POOLER;\n\n if (!NewKlass.poolSize) {\n NewKlass.poolSize = DEFAULT_POOL_SIZE;\n }\n\n NewKlass.release = standardReleaser;\n return NewKlass;\n};\n\nvar PooledClass = {\n addPoolingTo: addPoolingTo,\n twoArgumentPooler: twoArgumentPooler\n};\nexport default PooledClass;"]},"metadata":{},"sourceType":"script"}