@tarojs/rn-runner 3.5.0-theta.1 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/.eslintrc.js +2 -1
  2. package/__tests__/__snapshots__/components.spec.ts.snap +523 -0
  3. package/__tests__/components.spec.ts +103 -0
  4. package/__tests__/global.d.ts +11 -0
  5. package/__tests__/mock/components_testdata.ts +58 -0
  6. package/__tests__/mock/config/index.js +1 -0
  7. package/__tests__/mock/src/app.config.ts +13 -0
  8. package/__tests__/mock/src/app.scss +0 -0
  9. package/__tests__/mock/src/app.tsx +15 -0
  10. package/__tests__/mock/src/components/cell/index.scss +25 -0
  11. package/__tests__/mock/src/components/cell/index.tsx +38 -0
  12. package/__tests__/mock/src/components/navbar/icon_back.webp +0 -0
  13. package/__tests__/mock/src/components/navbar/index.scss +29 -0
  14. package/__tests__/mock/src/components/navbar/index.tsx +36 -0
  15. package/__tests__/mock/src/components/navbar/resolver.rn.ts +1 -0
  16. package/__tests__/mock/src/components/navbar/resolver.ts +1 -0
  17. package/__tests__/mock/src/components/svg/index.tsx +6 -0
  18. package/__tests__/mock/src/components/svg/rollup-logo.svg +3 -0
  19. package/__tests__/mock/src/utils/dynamicImport/index.ts +3 -0
  20. package/__tests__/mock/src/utils/namedExport/index.js +2 -0
  21. package/__tests__/mock/src/utils/requireLodash/index.ts +5 -0
  22. package/__tests__/mock/src/utils/requireReactNative/index.js +2 -0
  23. package/__tests__/tsconfig.json +8 -0
  24. package/dist/config/build-component.js +162 -0
  25. package/dist/config/build-component.js.map +1 -0
  26. package/dist/index.js +7 -3
  27. package/dist/index.js.map +1 -1
  28. package/dist/utils.js +1 -1
  29. package/dist/utils.js.map +1 -1
  30. package/package.json +19 -6
  31. package/src/config/build-component.ts +171 -0
  32. package/src/index.ts +14 -3
  33. package/src/utils.ts +1 -1
  34. package/tsconfig.json +2 -2
package/.eslintrc.js CHANGED
@@ -5,5 +5,6 @@ module.exports = {
5
5
  rules: {
6
6
  ...config.rules,
7
7
  'no-console': 0
8
- }
8
+ },
9
+ ignorePatterns: ['__tests__/mock']
9
10
  }
@@ -0,0 +1,523 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`build_components dynamic require 1`] = `
4
+ Array [
5
+ "var reactIs$1 = {exports: {}};
6
+
7
+ var reactIs_production_min = {};
8
+
9
+ var b=\\"function\\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\\"react.element\\"):60103,d=b?Symbol.for(\\"react.portal\\"):60106,e=b?Symbol.for(\\"react.fragment\\"):60107,f=b?Symbol.for(\\"react.strict_mode\\"):60108,g=b?Symbol.for(\\"react.profiler\\"):60114,h=b?Symbol.for(\\"react.provider\\"):60109,k=b?Symbol.for(\\"react.context\\"):60110,l=b?Symbol.for(\\"react.async_mode\\"):60111,m=b?Symbol.for(\\"react.concurrent_mode\\"):60111,n=b?Symbol.for(\\"react.forward_ref\\"):60112,p=b?Symbol.for(\\"react.suspense\\"):60113,q=b?Symbol.for(\\"react.suspense_list\\"):60120,r=b?Symbol.for(\\"react.memo\\"):60115,t=b?Symbol.for(\\"react.lazy\\"):60116,v=b?Symbol.for(\\"react.block\\"):60121,w=b?Symbol.for(\\"react.fundamental\\"):60117,x=b?Symbol.for(\\"react.responder\\"):60118,y=b?Symbol.for(\\"react.scope\\"):60119;function z(a){if(\\"object\\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u;}}case d:return u;}}}function A(a){return z(a)===m;}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l;};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k;};reactIs_production_min.isContextProvider=function(a){return z(a)===h;};reactIs_production_min.isElement=function(a){return \\"object\\"===typeof a&&null!==a&&a.$$typeof===c;};reactIs_production_min.isForwardRef=function(a){return z(a)===n;};reactIs_production_min.isFragment=function(a){return z(a)===e;};reactIs_production_min.isLazy=function(a){return z(a)===t;};reactIs_production_min.isMemo=function(a){return z(a)===r;};reactIs_production_min.isPortal=function(a){return z(a)===d;};reactIs_production_min.isProfiler=function(a){return z(a)===g;};reactIs_production_min.isStrictMode=function(a){return z(a)===f;};reactIs_production_min.isSuspense=function(a){return z(a)===p;};reactIs_production_min.isValidElementType=function(a){return \\"string\\"===typeof a||\\"function\\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\\"object\\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v);};reactIs_production_min.typeOf=z;
10
+
11
+ reactIs$1.exports=reactIs_production_min;var reactIs = reactIs$1.exports;
12
+
13
+ console.log({reactIs:reactIs});
14
+ ",
15
+ ]
16
+ `;
17
+
18
+ exports[`build_components modify rollup config 1`] = `
19
+ Array [
20
+ "import _extends from '@babel/runtime/helpers/extends';
21
+ import 'react';
22
+ import View from '@tarojs/components-rn/dist/components/View';
23
+ import Text from '@tarojs/components-rn/dist/components/Text';
24
+ import taro from '@tarojs/taro-rn';
25
+ import { Dimensions, StyleSheet } from 'react-native';
26
+ import { jsx, jsxs } from 'react/jsx-runtime';
27
+
28
+ // 一般app 只有竖屏模式,所以可以只获取一次 width
29
+ const deviceWidthDp = Dimensions.get('window').width;
30
+ const uiWidthPx = 375;
31
+
32
+ function scalePx2dp (uiElementPx) {
33
+ return uiElementPx * deviceWidthDp / uiWidthPx
34
+ }
35
+
36
+ var indexScssStyleSheet = StyleSheet.create({
37
+ \\"cellGroup\\": {
38
+ \\"backgroundColor\\": \\"white\\",
39
+ \\"borderRadius\\": scalePx2dp(10)
40
+ },
41
+ \\"cellItem\\": {
42
+ \\"display\\": \\"flex\\",
43
+ \\"flexDirection\\": \\"row\\",
44
+ \\"justifyContent\\": \\"space-between\\",
45
+ \\"paddingLeft\\": scalePx2dp(15),
46
+ \\"paddingRight\\": scalePx2dp(15),
47
+ \\"height\\": scalePx2dp(49)
48
+ },
49
+ \\"cellItem--care\\": {
50
+ \\"height\\": scalePx2dp(64)
51
+ },
52
+ \\"cellItem__title\\": {
53
+ \\"color\\": \\"#333\\",
54
+ \\"fontWeight\\": \\"bold\\"
55
+ },
56
+ \\"cellItem__line\\": {
57
+ \\"height\\": scalePx2dp(0.5),
58
+ \\"backgroundColor\\": \\"#f4f4f4\\"
59
+ }
60
+ });
61
+
62
+ function _mergeEleStyles(){return [].concat.apply([],arguments).reduce((pre,cur)=>Object.assign(pre,cur),{});}var _styleSheet=indexScssStyleSheet;console.log({taro:taro});function Cell(_ref){var children=_ref.children,style=_ref.style;var childs=Array.isArray(children)?children:[children];return jsx(View,{style:_mergeEleStyles(_styleSheet[\\"cellGroup\\"],_extends({},style)),children:childs.map(function(it,i){return [it].concat(i===children.length-1?[]:jsx(View,{style:_styleSheet[\\"cellItem__line\\"]},\\"line-\\"+i));})});}function Item(_ref2){var title=_ref2.title,children=_ref2.children,style=_ref2.style;return jsxs(View,{style:_mergeEleStyles(_styleSheet[\\"cellItem\\"],_extends({},style)),children:[jsx(Text,{style:_styleSheet[\\"cellItem__title\\"],children:title}),jsx(View,{style:_styleSheet[\\"cellItem__content\\"],children:children})]});}Cell.Item=Item;
63
+
64
+ export { Cell as default };
65
+ ",
66
+ "import 'react';
67
+ import { navigateBack } from '@tarojs/taro-rn/dist/api';
68
+ import View from '@tarojs/components-rn/dist/components/View';
69
+ import Text from '@tarojs/components-rn/dist/components/Text';
70
+ import Image from '@tarojs/components-rn/dist/components/Image';
71
+ import { Dimensions, StyleSheet } from 'react-native';
72
+ import { jsxs, jsx } from 'react/jsx-runtime';
73
+
74
+ var iconBack = require('../assets/icon_back-541a82be.webp');
75
+
76
+ // 一般app 只有竖屏模式,所以可以只获取一次 width
77
+ const deviceWidthDp = Dimensions.get('window').width;
78
+ const uiWidthPx = 375;
79
+
80
+ function scalePx2dp (uiElementPx) {
81
+ return uiElementPx * deviceWidthDp / uiWidthPx
82
+ }
83
+
84
+ var indexScssStyleSheet = StyleSheet.create({
85
+ \\"navbar\\": {
86
+ \\"display\\": \\"flex\\",
87
+ \\"flexDirection\\": \\"row\\",
88
+ \\"justifyContent\\": \\"space-between\\",
89
+ \\"alignItems\\": \\"center\\",
90
+ \\"width\\": scalePx2dp(375),
91
+ \\"height\\": scalePx2dp(50),
92
+ \\"backgroundColor\\": \\"white\\"
93
+ },
94
+ \\"navbar-title-text\\": {
95
+ \\"fontSize\\": scalePx2dp(19),
96
+ \\"color\\": \\"#000\\"
97
+ },
98
+ \\"icon-back\\": {
99
+ \\"width\\": scalePx2dp(19),
100
+ \\"height\\": scalePx2dp(19)
101
+ },
102
+ \\"navbar-leftElement\\": {
103
+ \\"width\\": scalePx2dp(50),
104
+ \\"display\\": \\"flex\\",
105
+ \\"flexDirection\\": \\"row\\",
106
+ \\"justifyContent\\": \\"center\\",
107
+ \\"alignItems\\": \\"center\\"
108
+ },
109
+ \\"navbar-rightElement\\": {
110
+ \\"width\\": scalePx2dp(50),
111
+ \\"display\\": \\"flex\\",
112
+ \\"flexDirection\\": \\"row\\",
113
+ \\"justifyContent\\": \\"center\\",
114
+ \\"alignItems\\": \\"center\\"
115
+ }
116
+ });
117
+
118
+ console.log('rn resolve');
119
+
120
+ var _styleSheet=indexScssStyleSheet;console.log('isRn',true);function Navbar(props){var title=props.title,rightElement=props.rightElement;return jsxs(View,{style:_styleSheet[\\"navbar\\"],children:[jsx(View,{style:_styleSheet[\\"navbar-leftElement\\"],children:jsx(Image,{src:iconBack,onClick:function back(){return navigateBack();},style:_styleSheet[\\"icon-back\\"]})}),jsx(View,{style:_styleSheet[\\"navbar-title\\"],children:typeof title==='string'?jsx(Text,{style:_styleSheet[\\"navbar-title-text\\"],children:title}):title}),jsx(View,{style:_styleSheet[\\"navbar-rightElement\\"],children:rightElement})]});}
121
+
122
+ export { Navbar as default };
123
+ ",
124
+ undefined,
125
+ ]
126
+ `;
127
+
128
+ exports[`build_components multiple components 1`] = `
129
+ Array [
130
+ "import _extends from '@babel/runtime/helpers/extends';
131
+ import 'react';
132
+ import View from '@tarojs/components-rn/dist/components/View';
133
+ import Text from '@tarojs/components-rn/dist/components/Text';
134
+ import taro from '@tarojs/taro-rn';
135
+ import { Dimensions, StyleSheet } from 'react-native';
136
+ import { jsx, jsxs } from 'react/jsx-runtime';
137
+
138
+ // 一般app 只有竖屏模式,所以可以只获取一次 width
139
+ const deviceWidthDp = Dimensions.get('window').width;
140
+ const uiWidthPx = 375;
141
+
142
+ function scalePx2dp (uiElementPx) {
143
+ return uiElementPx * deviceWidthDp / uiWidthPx
144
+ }
145
+
146
+ var indexScssStyleSheet = StyleSheet.create({
147
+ \\"cellGroup\\": {
148
+ \\"backgroundColor\\": \\"white\\",
149
+ \\"borderRadius\\": scalePx2dp(10)
150
+ },
151
+ \\"cellItem\\": {
152
+ \\"display\\": \\"flex\\",
153
+ \\"flexDirection\\": \\"row\\",
154
+ \\"justifyContent\\": \\"space-between\\",
155
+ \\"paddingLeft\\": scalePx2dp(15),
156
+ \\"paddingRight\\": scalePx2dp(15),
157
+ \\"height\\": scalePx2dp(49)
158
+ },
159
+ \\"cellItem--care\\": {
160
+ \\"height\\": scalePx2dp(64)
161
+ },
162
+ \\"cellItem__title\\": {
163
+ \\"color\\": \\"#333\\",
164
+ \\"fontWeight\\": \\"bold\\"
165
+ },
166
+ \\"cellItem__line\\": {
167
+ \\"height\\": scalePx2dp(0.5),
168
+ \\"backgroundColor\\": \\"#f4f4f4\\"
169
+ }
170
+ });
171
+
172
+ function _mergeEleStyles(){return [].concat.apply([],arguments).reduce((pre,cur)=>Object.assign(pre,cur),{});}var _styleSheet=indexScssStyleSheet;console.log({taro:taro});function Cell(_ref){var children=_ref.children,style=_ref.style;var childs=Array.isArray(children)?children:[children];return jsx(View,{style:_mergeEleStyles(_styleSheet[\\"cellGroup\\"],_extends({},style)),children:childs.map(function(it,i){return [it].concat(i===children.length-1?[]:jsx(View,{style:_styleSheet[\\"cellItem__line\\"]},\\"line-\\"+i));})});}function Item(_ref2){var title=_ref2.title,children=_ref2.children,style=_ref2.style;return jsxs(View,{style:_mergeEleStyles(_styleSheet[\\"cellItem\\"],_extends({},style)),children:[jsx(Text,{style:_styleSheet[\\"cellItem__title\\"],children:title}),jsx(View,{style:_styleSheet[\\"cellItem__content\\"],children:children})]});}Cell.Item=Item;
173
+
174
+ export { Cell as default };
175
+ ",
176
+ "import 'react';
177
+ import { navigateBack } from '@tarojs/taro-rn/dist/api';
178
+ import View from '@tarojs/components-rn/dist/components/View';
179
+ import Text from '@tarojs/components-rn/dist/components/Text';
180
+ import Image from '@tarojs/components-rn/dist/components/Image';
181
+ import { Dimensions, StyleSheet } from 'react-native';
182
+ import { jsxs, jsx } from 'react/jsx-runtime';
183
+
184
+ var iconBack = require('../../assets/icon_back-541a82be.webp');
185
+
186
+ // 一般app 只有竖屏模式,所以可以只获取一次 width
187
+ const deviceWidthDp = Dimensions.get('window').width;
188
+ const uiWidthPx = 375;
189
+
190
+ function scalePx2dp (uiElementPx) {
191
+ return uiElementPx * deviceWidthDp / uiWidthPx
192
+ }
193
+
194
+ var indexScssStyleSheet = StyleSheet.create({
195
+ \\"navbar\\": {
196
+ \\"display\\": \\"flex\\",
197
+ \\"flexDirection\\": \\"row\\",
198
+ \\"justifyContent\\": \\"space-between\\",
199
+ \\"alignItems\\": \\"center\\",
200
+ \\"width\\": scalePx2dp(375),
201
+ \\"height\\": scalePx2dp(50),
202
+ \\"backgroundColor\\": \\"white\\"
203
+ },
204
+ \\"navbar-title-text\\": {
205
+ \\"fontSize\\": scalePx2dp(19),
206
+ \\"color\\": \\"#000\\"
207
+ },
208
+ \\"icon-back\\": {
209
+ \\"width\\": scalePx2dp(19),
210
+ \\"height\\": scalePx2dp(19)
211
+ },
212
+ \\"navbar-leftElement\\": {
213
+ \\"width\\": scalePx2dp(50),
214
+ \\"display\\": \\"flex\\",
215
+ \\"flexDirection\\": \\"row\\",
216
+ \\"justifyContent\\": \\"center\\",
217
+ \\"alignItems\\": \\"center\\"
218
+ },
219
+ \\"navbar-rightElement\\": {
220
+ \\"width\\": scalePx2dp(50),
221
+ \\"display\\": \\"flex\\",
222
+ \\"flexDirection\\": \\"row\\",
223
+ \\"justifyContent\\": \\"center\\",
224
+ \\"alignItems\\": \\"center\\"
225
+ }
226
+ });
227
+
228
+ console.log('rn resolve');
229
+
230
+ var _styleSheet=indexScssStyleSheet;console.log('isRn',true);function Navbar(props){var title=props.title,rightElement=props.rightElement;return jsxs(View,{style:_styleSheet[\\"navbar\\"],children:[jsx(View,{style:_styleSheet[\\"navbar-leftElement\\"],children:jsx(Image,{src:iconBack,onClick:function back(){return navigateBack();},style:_styleSheet[\\"icon-back\\"]})}),jsx(View,{style:_styleSheet[\\"navbar-title\\"],children:typeof title==='string'?jsx(Text,{style:_styleSheet[\\"navbar-title-text\\"],children:title}):title}),jsx(View,{style:_styleSheet[\\"navbar-rightElement\\"],children:rightElement})]});}
231
+
232
+ export { Navbar as default };
233
+ ",
234
+ undefined,
235
+ ]
236
+ `;
237
+
238
+ exports[`build_components named export 1`] = `
239
+ Array [
240
+ "import { Platform as Platform$1, NativeEventEmitter } from 'react-native';
241
+ import 'react-native/Libraries/EventEmitter/RCTDeviceEventEmitter';
242
+ import 'react';
243
+ import require$$0 from 'crypto';
244
+
245
+ function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
246
+
247
+ function _inherits(subClass,superClass){if(typeof superClass!==\\"function\\"&&superClass!==null){throw new TypeError(\\"Super expression must either be null or a function\\");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,\\"prototype\\",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}
248
+
249
+ function _typeof$1(obj){\\"@babel/helpers - typeof\\";return _typeof$1=\\"function\\"==typeof Symbol&&\\"symbol\\"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&\\"function\\"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?\\"symbol\\":typeof obj;},_typeof$1(obj);}
250
+
251
+ function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError(\\"this hasn't been initialised - super() hasn't been called\\");}return self;}
252
+
253
+ function _possibleConstructorReturn(self,call){if(call&&(_typeof$1(call)===\\"object\\"||typeof call===\\"function\\")){return call;}else if(call!==void 0){throw new TypeError(\\"Derived constructors may only return object or undefined\\");}return _assertThisInitialized(self);}
254
+
255
+ function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
256
+
257
+ function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\\"Cannot call a class as a function\\");}}
258
+
259
+ function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if(\\"value\\"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,\\"prototype\\",{writable:false});return Constructor;}
260
+
261
+ function _extends(){_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}
262
+
263
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
264
+
265
+ function getDefaultExportFromCjs (x) {
266
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
267
+ }
268
+
269
+ var regeneratorRuntime$1 = {exports: {}};
270
+
271
+ var _typeof = {exports: {}};
272
+
273
+ (function(module){function _typeof(obj){\\"@babel/helpers - typeof\\";return (module.exports=_typeof=\\"function\\"==typeof Symbol&&\\"symbol\\"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&\\"function\\"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?\\"symbol\\":typeof obj;},module.exports.__esModule=true,module.exports[\\"default\\"]=module.exports),_typeof(obj);}module.exports=_typeof,module.exports.__esModule=true,module.exports[\\"default\\"]=module.exports;})(_typeof);getDefaultExportFromCjs(_typeof.exports);
274
+
275
+ (function(module){var _typeof$1=_typeof.exports[\\"default\\"];function _regeneratorRuntime(){module.exports=_regeneratorRuntime=function(){return exports;},module.exports.__esModule=true,module.exports[\\"default\\"]=module.exports;var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,$Symbol=\\"function\\"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||\\"@@iterator\\",asyncIteratorSymbol=$Symbol.asyncIterator||\\"@@asyncIterator\\",toStringTagSymbol=$Symbol.toStringTag||\\"@@toStringTag\\";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},\\"\\");}catch(err){define=function(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return generator._invoke=function(innerFn,self,context){var state=\\"suspendedStart\\";return function(method,arg){if(\\"executing\\"===state)throw new Error(\\"Generator is already running\\");if(\\"completed\\"===state){if(\\"throw\\"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if(\\"next\\"===context.method)context.sent=context._sent=context.arg;else if(\\"throw\\"===context.method){if(\\"suspendedStart\\"===state)throw state=\\"completed\\",context.arg;context.dispatchException(context.arg);}else \\"return\\"===context.method&&context.abrupt(\\"return\\",context.arg);state=\\"executing\\";var record=tryCatch(innerFn,self,context);if(\\"normal\\"===record.type){if(state=context.done?\\"completed\\":\\"suspendedYield\\",record.arg===ContinueSentinel)continue;return {value:record.arg,done:context.done};}\\"throw\\"===record.type&&(state=\\"completed\\",context.method=\\"throw\\",context.arg=record.arg);}};}(innerFn,self,context),generator;}function tryCatch(fn,obj,arg){try{return {type:\\"normal\\",arg:fn.call(obj,arg)};}catch(err){return {type:\\"throw\\",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){[\\"next\\",\\"throw\\",\\"return\\"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if(\\"throw\\"!==record.type){var result=record.arg,value=result.value;return value&&\\"object\\"==_typeof$1(value)&&hasOwn.call(value,\\"__await\\")?PromiseImpl.resolve(value.__await).then(function(value){invoke(\\"next\\",value,resolve,reject);},function(err){invoke(\\"throw\\",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke(\\"throw\\",error,resolve,reject);});}reject(record.arg);}var previousPromise;this._invoke=function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();};}function maybeInvokeDelegate(delegate,context){var method=delegate.iterator[context.method];if(undefined===method){if(context.delegate=null,\\"throw\\"===context.method){if(delegate.iterator[\\"return\\"]&&(context.method=\\"return\\",context.arg=undefined,maybeInvokeDelegate(delegate,context),\\"throw\\"===context.method))return ContinueSentinel;context.method=\\"throw\\",context.arg=new TypeError(\\"The iterator does not provide a 'throw' method\\");}return ContinueSentinel;}var record=tryCatch(method,delegate.iterator,context.arg);if(\\"throw\\"===record.type)return context.method=\\"throw\\",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,\\"return\\"!==context.method&&(context.method=\\"next\\",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method=\\"throw\\",context.arg=new TypeError(\\"iterator result is not an object\\"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type=\\"normal\\",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:\\"root\\"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if(\\"function\\"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;){if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;}return next.value=undefined,next.done=!0,next;};return next.next=next;}}return {next:doneResult};}function doneResult(){return {value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(Gp,\\"constructor\\",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,\\"constructor\\",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,\\"GeneratorFunction\\"),exports.isGeneratorFunction=function(genFun){var ctor=\\"function\\"==typeof genFun&&genFun.constructor;return !!ctor&&(ctor===GeneratorFunction||\\"GeneratorFunction\\"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,\\"GeneratorFunction\\")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return {__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,\\"Generator\\"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,\\"toString\\",function(){return \\"[object Generator]\\";}),exports.keys=function(object){var keys=[];for(var key in object){keys.push(key);}return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method=\\"next\\",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this){\\"t\\"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);}},stop:function(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if(\\"throw\\"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type=\\"throw\\",record.arg=exception,context.next=loc,caught&&(context.method=\\"next\\",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if(\\"root\\"===entry.tryLoc)return handle(\\"end\\");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,\\"catchLoc\\"),hasFinally=hasOwn.call(entry,\\"finallyLoc\\");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else {if(!hasFinally)throw new Error(\\"try statement without catch or finally\\");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,\\"finallyLoc\\")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&(\\"break\\"===type||\\"continue\\"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method=\\"next\\",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function(record,afterLoc){if(\\"throw\\"===record.type)throw record.arg;return \\"break\\"===record.type||\\"continue\\"===record.type?this.next=record.arg:\\"return\\"===record.type?(this.rval=this.arg=record.arg,this.method=\\"return\\",this.next=\\"end\\"):\\"normal\\"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},\\"catch\\":function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if(\\"throw\\"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error(\\"illegal catch attempt\\");},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},\\"next\\"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}module.exports=_regeneratorRuntime,module.exports.__esModule=true,module.exports[\\"default\\"]=module.exports;})(regeneratorRuntime$1);getDefaultExportFromCjs(regeneratorRuntime$1.exports);
276
+
277
+ var runtime=regeneratorRuntime$1.exports();var regenerator=runtime;try{regeneratorRuntime=runtime;}catch(accidentalStrictMode){if(typeof globalThis===\\"object\\"){globalThis.regeneratorRuntime=runtime;}else {Function(\\"r\\",\\"regeneratorRuntime = r\\")(runtime);}}var _regeneratorRuntime = regenerator;
278
+
279
+ function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else {obj[key]=value;}return obj;}
280
+
281
+ var invariant=function(condition,format,a,b,c,d,e,f){if(!condition){var error;if(format===undefined){error=new Error('Minified exception occurred; use the non-minified dev environment '+'for the full error message and additional helpful warnings.');}else {var args=[a,b,c,d,e,f];var argIndex=0;error=new Error(format.replace(/%s/g,function(){return args[argIndex++];}));error.name='Invariant Violation';}error.framesToPop=1;throw error;}};var invariant_1=invariant;
282
+
283
+ var nativeEmitterSubscriptionKey='@@nativeEmitterSubscription@@';var EventEmitter=function(){function EventEmitter(nativeModule){_classCallCheck(this,EventEmitter);this._listenerCount=0;this._nativeModule=nativeModule;this._eventEmitter=new NativeEventEmitter(nativeModule);}_createClass(EventEmitter,[{key:\\"addListener\\",value:function addListener(eventName,listener){var _this=this,_subscription;if(!this._listenerCount&&Platform$1.OS!=='ios'&&this._nativeModule.startObserving){this._nativeModule.startObserving();}this._listenerCount++;var nativeEmitterSubscription=this._eventEmitter.addListener(eventName,listener);var subscription=(_subscription={},_defineProperty(_subscription,nativeEmitterSubscriptionKey,nativeEmitterSubscription),_defineProperty(_subscription,\\"remove\\",function remove(){_this.removeSubscription(subscription);}),_subscription);return subscription;}},{key:\\"removeAllListeners\\",value:function removeAllListeners(eventName){var removedListenerCount=this._eventEmitter.listenerCount?this._eventEmitter.listenerCount(eventName):this._eventEmitter.listeners(eventName).length;this._eventEmitter.removeAllListeners(eventName);this._listenerCount-=removedListenerCount;invariant_1(this._listenerCount>=0,\\"EventEmitter must have a non-negative number of listeners\\");if(!this._listenerCount&&Platform$1.OS!=='ios'&&this._nativeModule.stopObserving){this._nativeModule.stopObserving();}}},{key:\\"removeSubscription\\",value:function removeSubscription(subscription){var nativeEmitterSubscription=subscription[nativeEmitterSubscriptionKey];if(!nativeEmitterSubscription){return;}if('remove'in nativeEmitterSubscription){nativeEmitterSubscription.remove();}else if('removeSubscription'in this._eventEmitter){this._eventEmitter.removeSubscription(nativeEmitterSubscription);}this._listenerCount--;delete subscription[nativeEmitterSubscriptionKey];subscription.remove=function(){};if(!this._listenerCount&&Platform$1.OS!=='ios'&&this._nativeModule.stopObserving){this._nativeModule.stopObserving();}}},{key:\\"emit\\",value:function emit(eventName){var _this$_eventEmitter;for(var _len=arguments.length,params=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){params[_key-1]=arguments[_key];}(_this$_eventEmitter=this._eventEmitter).emit.apply(_this$_eventEmitter,[eventName].concat(params));}}]);return EventEmitter;}();
284
+
285
+ var NativeModulesProxy = {};
286
+
287
+ var isDOMAvailable=false;var canUseEventListeners=false;var canUseViewport=false;var isAsyncDebugging=false;if(__DEV__){isAsyncDebugging=!global.nativeExtensions&&!global.nativeCallSyncHook&&!global.RN$Bridgeless;}
288
+
289
+ var Platform={OS:Platform$1.OS,select:Platform$1.select,isDOMAvailable:isDOMAvailable,canUseEventListeners:canUseEventListeners,canUseViewport:canUseViewport,isAsyncDebugging:isAsyncDebugging};
290
+
291
+ function _isNativeFunction(fn){return Function.toString.call(fn).indexOf(\\"[native code]\\")!==-1;}
292
+
293
+ function _isNativeReflectConstruct$3(){if(typeof Reflect===\\"undefined\\"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy===\\"function\\")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}
294
+
295
+ function _construct(){if(_isNativeReflectConstruct$3()){_construct=Reflect.construct.bind();}else {_construct=function(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}
296
+
297
+ function _wrapNativeSuper(Class){var _cache=typeof Map===\\"function\\"?new Map():undefined;_wrapNativeSuper=function(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!==\\"function\\"){throw new TypeError(\\"Super expression must either be null or a function\\");}if(typeof _cache!==\\"undefined\\"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}
298
+
299
+ function _createSuper$2(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$2();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct$2(){if(typeof Reflect===\\"undefined\\"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy===\\"function\\")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var CodedError=function(_Error){_inherits(CodedError,_Error);var _super=_createSuper$2(CodedError);function CodedError(code,message){var _this;_classCallCheck(this,CodedError);_this=_super.call(this,message);_this.code=code;return _this;}return _createClass(CodedError);}(_wrapNativeSuper(Error));
300
+
301
+ function _createSuper$1(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$1();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct$1(){if(typeof Reflect===\\"undefined\\"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy===\\"function\\")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var UnavailabilityError=function(_CodedError){_inherits(UnavailabilityError,_CodedError);var _super=_createSuper$1(UnavailabilityError);function UnavailabilityError(moduleName,propertyName){_classCallCheck(this,UnavailabilityError);return _super.call(this,'ERR_UNAVAILABLE',\\"The method or property \\"+moduleName+\\".\\"+propertyName+\\" is not available on \\"+Platform.OS+\\", are you sure you've linked all the native dependencies properly?\\");}return _createClass(UnavailabilityError);}(CodedError);
302
+
303
+ var NativeErrorManager = NativeModulesProxy.ExpoModulesCoreErrorManager;
304
+
305
+ if(__DEV__&&Platform.OS==='android'&&NativeErrorManager){var eventEmitter=new EventEmitter(NativeErrorManager);eventEmitter.addListener('ExpoModulesCoreErrorManager.onNewException',function(_ref){var message=_ref.message;console.error(message);});}
306
+
307
+ var compareVersions = {exports: {}};
308
+
309
+ (function(module){(function(root,factory){module.exports=factory();})(commonjsGlobal,function(){var semver=/^v?(?:\\\\d+)(\\\\.(?:[x*]|\\\\d+)(\\\\.(?:[x*]|\\\\d+)(\\\\.(?:[x*]|\\\\d+))?(?:-[\\\\da-z\\\\-]+(?:\\\\.[\\\\da-z\\\\-]+)*)?(?:\\\\+[\\\\da-z\\\\-]+(?:\\\\.[\\\\da-z\\\\-]+)*)?)?)?$/i;function indexOrEnd(str,q){return str.indexOf(q)===-1?str.length:str.indexOf(q);}function split(v){var c=v.replace(/^v/,'').replace(/\\\\+.*$/,'');var patchIndex=indexOrEnd(c,'-');var arr=c.substring(0,patchIndex).split('.');arr.push(c.substring(patchIndex+1));return arr;}function tryParse(v){return isNaN(Number(v))?v:Number(v);}function validate(version){if(typeof version!=='string'){throw new TypeError('Invalid argument expected string');}if(!semver.test(version)){throw new Error('Invalid argument not valid semver (\\\\''+version+'\\\\' received)');}}function compareVersions(v1,v2){[v1,v2].forEach(validate);var s1=split(v1);var s2=split(v2);for(var i=0;i<Math.max(s1.length-1,s2.length-1);i++){var n1=parseInt(s1[i]||0,10);var n2=parseInt(s2[i]||0,10);if(n1>n2)return 1;if(n2>n1)return -1;}var sp1=s1[s1.length-1];var sp2=s2[s2.length-1];if(sp1&&sp2){var p1=sp1.split('.').map(tryParse);var p2=sp2.split('.').map(tryParse);for(i=0;i<Math.max(p1.length,p2.length);i++){if(p1[i]===undefined||typeof p2[i]==='string'&&typeof p1[i]==='number')return -1;if(p2[i]===undefined||typeof p1[i]==='string'&&typeof p2[i]==='number')return 1;if(p1[i]>p2[i])return 1;if(p2[i]>p1[i])return -1;}}else if(sp1||sp2){return sp1?-1:1;}return 0;}var allowedOperators=['>','>=','=','<','<='];var operatorResMap={'>':[1],'>=':[0,1],'=':[0],'<=':[-1,0],'<':[-1]};function validateOperator(op){if(typeof op!=='string'){throw new TypeError('Invalid operator type, expected string but got '+typeof op);}if(allowedOperators.indexOf(op)===-1){throw new TypeError('Invalid operator, expected one of '+allowedOperators.join('|'));}}compareVersions.validate=function(version){return typeof version==='string'&&semver.test(version);};compareVersions.compare=function(v1,v2,operator){validateOperator(operator);var res=compareVersions(v1,v2);return operatorResMap[operator].indexOf(res)>-1;};return compareVersions;});})(compareVersions);
310
+
311
+ var PermissionStatus;(function(PermissionStatus){PermissionStatus[\\"GRANTED\\"]=\\"granted\\";PermissionStatus[\\"UNDETERMINED\\"]=\\"undetermined\\";PermissionStatus[\\"DENIED\\"]=\\"denied\\";})(PermissionStatus||(PermissionStatus={}));
312
+
313
+ var crypto=require$$0;var rng$2=function(){return crypto.randomBytes(16);};
314
+
315
+ var byteToHex=[];for(var i=0;i<256;++i){byteToHex[i]=(i+0x100).toString(16).substr(1);}function bytesToUuid$2(buf,offset){var i=offset||0;var bth=byteToHex;return [bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],'-',bth[buf[i++]],bth[buf[i++]],'-',bth[buf[i++]],bth[buf[i++]],'-',bth[buf[i++]],bth[buf[i++]],'-',bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join('');}var bytesToUuid_1=bytesToUuid$2;
316
+
317
+ var rng$1=rng$2;var bytesToUuid$1=bytesToUuid_1;var _nodeId;var _clockseq;var _lastMSecs=0;var _lastNSecs=0;function v1$1(options,buf,offset){var i=buf&&offset||0;var b=buf||[];options=options||{};var node=options.node||_nodeId;var clockseq=options.clockseq!==undefined?options.clockseq:_clockseq;if(node==null||clockseq==null){var seedBytes=rng$1();if(node==null){node=_nodeId=[seedBytes[0]|0x01,seedBytes[1],seedBytes[2],seedBytes[3],seedBytes[4],seedBytes[5]];}if(clockseq==null){clockseq=_clockseq=(seedBytes[6]<<8|seedBytes[7])&0x3fff;}}var msecs=options.msecs!==undefined?options.msecs:new Date().getTime();var nsecs=options.nsecs!==undefined?options.nsecs:_lastNSecs+1;var dt=msecs-_lastMSecs+(nsecs-_lastNSecs)/10000;if(dt<0&&options.clockseq===undefined){clockseq=clockseq+1&0x3fff;}if((dt<0||msecs>_lastMSecs)&&options.nsecs===undefined){nsecs=0;}if(nsecs>=10000){throw new Error('uuid.v1(): Can\\\\'t create more than 10M uuids/sec');}_lastMSecs=msecs;_lastNSecs=nsecs;_clockseq=clockseq;msecs+=12219292800000;var tl=((msecs&0xfffffff)*10000+nsecs)%0x100000000;b[i++]=tl>>>24&0xff;b[i++]=tl>>>16&0xff;b[i++]=tl>>>8&0xff;b[i++]=tl&0xff;var tmh=msecs/0x100000000*10000&0xfffffff;b[i++]=tmh>>>8&0xff;b[i++]=tmh&0xff;b[i++]=tmh>>>24&0xf|0x10;b[i++]=tmh>>>16&0xff;b[i++]=clockseq>>>8|0x80;b[i++]=clockseq&0xff;for(var n=0;n<6;++n){b[i+n]=node[n];}return buf?buf:bytesToUuid$1(b);}var v1_1=v1$1;
318
+
319
+ var rng=rng$2;var bytesToUuid=bytesToUuid_1;function v4$1(options,buf,offset){var i=buf&&offset||0;if(typeof options=='string'){buf=options==='binary'?new Array(16):null;options=null;}options=options||{};var rnds=options.random||(options.rng||rng)();rnds[6]=rnds[6]&0x0f|0x40;rnds[8]=rnds[8]&0x3f|0x80;if(buf){for(var ii=0;ii<16;++ii){buf[i+ii]=rnds[ii];}}return buf||bytesToUuid(rnds);}var v4_1=v4$1;
320
+
321
+ var v1=v1_1;var v4=v4_1;var uuid=v4;uuid.v1=v1;uuid.v4=v4;var uuid_1=uuid;
322
+
323
+ var platformModule$1={get name(){return 'ExponentFileSystem';},get documentDirectory(){return null;},get cacheDirectory(){return null;},get bundledAssets(){return null;},get bundleDirectory(){return null;},addListener:function addListener(){},removeListeners:function removeListeners(){}};var ExponentFileSystemShim = platformModule$1;
324
+
325
+ var platformModule;if(NativeModulesProxy.ExponentFileSystem){platformModule=NativeModulesProxy.ExponentFileSystem;}else {platformModule=ExponentFileSystemShim;}var ExponentFileSystem = platformModule;
326
+
327
+ var FileSystemSessionType;(function(FileSystemSessionType){FileSystemSessionType[FileSystemSessionType[\\"BACKGROUND\\"]=0]=\\"BACKGROUND\\";FileSystemSessionType[FileSystemSessionType[\\"FOREGROUND\\"]=1]=\\"FOREGROUND\\";})(FileSystemSessionType||(FileSystemSessionType={}));var FileSystemUploadType;(function(FileSystemUploadType){FileSystemUploadType[FileSystemUploadType[\\"BINARY_CONTENT\\"]=0]=\\"BINARY_CONTENT\\";FileSystemUploadType[FileSystemUploadType[\\"MULTIPART\\"]=1]=\\"MULTIPART\\";})(FileSystemUploadType||(FileSystemUploadType={}));var EncodingType;(function(EncodingType){EncodingType[\\"UTF8\\"]=\\"utf8\\";EncodingType[\\"Base64\\"]=\\"base64\\";})(EncodingType||(EncodingType={}));
328
+
329
+ function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect===\\"undefined\\"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy===\\"function\\")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}if(!ExponentFileSystem){console.warn(\\"No native ExponentFileSystem module found, are you sure the expo-file-system's module is linked properly?\\");}new EventEmitter(ExponentFileSystem);function normalizeEndingSlash(p){if(p!=null){return p.replace(/\\\\/*$/,'')+'/';}return null;}var documentDirectory=normalizeEndingSlash(ExponentFileSystem.documentDirectory);var cacheDirectory=normalizeEndingSlash(ExponentFileSystem.cacheDirectory);var bundledAssets=ExponentFileSystem.bundledAssets,bundleDirectory=ExponentFileSystem.bundleDirectory;function getInfoAsync(fileUri){var options,_args=arguments;return _regeneratorRuntime.async(function(_context){while(1){switch(_context.prev=_context.next){case 0:options=_args.length>1&&_args[1]!==undefined?_args[1]:{};if(ExponentFileSystem.getInfoAsync){_context.next=3;break;}throw new UnavailabilityError('expo-file-system','getInfoAsync');case 3:_context.next=5;return _regeneratorRuntime.awrap(ExponentFileSystem.getInfoAsync(fileUri,options));case 5:return _context.abrupt(\\"return\\",_context.sent);case 6:case\\"end\\":return _context.stop();}}},null,null,null,Promise);}function readAsStringAsync(fileUri,options){return _regeneratorRuntime.async(function(_context2){while(1){switch(_context2.prev=_context2.next){case 0:if(ExponentFileSystem.readAsStringAsync){_context2.next=2;break;}throw new UnavailabilityError('expo-file-system','readAsStringAsync');case 2:_context2.next=4;return _regeneratorRuntime.awrap(ExponentFileSystem.readAsStringAsync(fileUri,options||{}));case 4:return _context2.abrupt(\\"return\\",_context2.sent);case 5:case\\"end\\":return _context2.stop();}}},null,null,null,Promise);}function getContentUriAsync(fileUri){return _regeneratorRuntime.async(function(_context3){while(1){switch(_context3.prev=_context3.next){case 0:if(!(Platform$1.OS==='android')){_context3.next=8;break;}if(ExponentFileSystem.getContentUriAsync){_context3.next=3;break;}throw new UnavailabilityError('expo-file-system','getContentUriAsync');case 3:_context3.next=5;return _regeneratorRuntime.awrap(ExponentFileSystem.getContentUriAsync(fileUri));case 5:return _context3.abrupt(\\"return\\",_context3.sent);case 8:return _context3.abrupt(\\"return\\",new Promise(function(resolve){resolve(fileUri);}));case 9:case\\"end\\":return _context3.stop();}}},null,null,null,Promise);}function writeAsStringAsync(fileUri,contents){var options,_args4=arguments;return _regeneratorRuntime.async(function(_context4){while(1){switch(_context4.prev=_context4.next){case 0:options=_args4.length>2&&_args4[2]!==undefined?_args4[2]:{};if(ExponentFileSystem.writeAsStringAsync){_context4.next=3;break;}throw new UnavailabilityError('expo-file-system','writeAsStringAsync');case 3:_context4.next=5;return _regeneratorRuntime.awrap(ExponentFileSystem.writeAsStringAsync(fileUri,contents,options));case 5:return _context4.abrupt(\\"return\\",_context4.sent);case 6:case\\"end\\":return _context4.stop();}}},null,null,null,Promise);}function deleteAsync(fileUri){var options,_args5=arguments;return _regeneratorRuntime.async(function(_context5){while(1){switch(_context5.prev=_context5.next){case 0:options=_args5.length>1&&_args5[1]!==undefined?_args5[1]:{};if(ExponentFileSystem.deleteAsync){_context5.next=3;break;}throw new UnavailabilityError('expo-file-system','deleteAsync');case 3:_context5.next=5;return _regeneratorRuntime.awrap(ExponentFileSystem.deleteAsync(fileUri,options));case 5:return _context5.abrupt(\\"return\\",_context5.sent);case 6:case\\"end\\":return _context5.stop();}}},null,null,null,Promise);}function deleteLegacyDocumentDirectoryAndroid(){var legacyDocumentDirectory;return _regeneratorRuntime.async(function(_context6){while(1){switch(_context6.prev=_context6.next){case 0:if(!(Platform$1.OS!=='android'||documentDirectory==null)){_context6.next=2;break;}return _context6.abrupt(\\"return\\");case 2:legacyDocumentDirectory=documentDirectory+\\"ExperienceData/\\";_context6.next=5;return _regeneratorRuntime.awrap(deleteAsync(legacyDocumentDirectory,{idempotent:true}));case 5:return _context6.abrupt(\\"return\\",_context6.sent);case 6:case\\"end\\":return _context6.stop();}}},null,null,null,Promise);}function moveAsync(options){return _regeneratorRuntime.async(function(_context7){while(1){switch(_context7.prev=_context7.next){case 0:if(ExponentFileSystem.moveAsync){_context7.next=2;break;}throw new UnavailabilityError('expo-file-system','moveAsync');case 2:_context7.next=4;return _regeneratorRuntime.awrap(ExponentFileSystem.moveAsync(options));case 4:return _context7.abrupt(\\"return\\",_context7.sent);case 5:case\\"end\\":return _context7.stop();}}},null,null,null,Promise);}function copyAsync(options){return _regeneratorRuntime.async(function(_context8){while(1){switch(_context8.prev=_context8.next){case 0:if(ExponentFileSystem.copyAsync){_context8.next=2;break;}throw new UnavailabilityError('expo-file-system','copyAsync');case 2:_context8.next=4;return _regeneratorRuntime.awrap(ExponentFileSystem.copyAsync(options));case 4:return _context8.abrupt(\\"return\\",_context8.sent);case 5:case\\"end\\":return _context8.stop();}}},null,null,null,Promise);}function makeDirectoryAsync(fileUri){var options,_args9=arguments;return _regeneratorRuntime.async(function(_context9){while(1){switch(_context9.prev=_context9.next){case 0:options=_args9.length>1&&_args9[1]!==undefined?_args9[1]:{};if(ExponentFileSystem.makeDirectoryAsync){_context9.next=3;break;}throw new UnavailabilityError('expo-file-system','makeDirectoryAsync');case 3:_context9.next=5;return _regeneratorRuntime.awrap(ExponentFileSystem.makeDirectoryAsync(fileUri,options));case 5:return _context9.abrupt(\\"return\\",_context9.sent);case 6:case\\"end\\":return _context9.stop();}}},null,null,null,Promise);}function readDirectoryAsync(fileUri){return _regeneratorRuntime.async(function(_context10){while(1){switch(_context10.prev=_context10.next){case 0:if(ExponentFileSystem.readDirectoryAsync){_context10.next=2;break;}throw new UnavailabilityError('expo-file-system','readDirectoryAsync');case 2:_context10.next=4;return _regeneratorRuntime.awrap(ExponentFileSystem.readDirectoryAsync(fileUri,{}));case 4:return _context10.abrupt(\\"return\\",_context10.sent);case 5:case\\"end\\":return _context10.stop();}}},null,null,null,Promise);}function getFreeDiskStorageAsync(){return _regeneratorRuntime.async(function(_context11){while(1){switch(_context11.prev=_context11.next){case 0:if(ExponentFileSystem.getFreeDiskStorageAsync){_context11.next=2;break;}throw new UnavailabilityError('expo-file-system','getFreeDiskStorageAsync');case 2:_context11.next=4;return _regeneratorRuntime.awrap(ExponentFileSystem.getFreeDiskStorageAsync());case 4:return _context11.abrupt(\\"return\\",_context11.sent);case 5:case\\"end\\":return _context11.stop();}}},null,null,null,Promise);}function getTotalDiskCapacityAsync(){return _regeneratorRuntime.async(function(_context12){while(1){switch(_context12.prev=_context12.next){case 0:if(ExponentFileSystem.getTotalDiskCapacityAsync){_context12.next=2;break;}throw new UnavailabilityError('expo-file-system','getTotalDiskCapacityAsync');case 2:_context12.next=4;return _regeneratorRuntime.awrap(ExponentFileSystem.getTotalDiskCapacityAsync());case 4:return _context12.abrupt(\\"return\\",_context12.sent);case 5:case\\"end\\":return _context12.stop();}}},null,null,null,Promise);}function downloadAsync(uri,fileUri){var options,_args13=arguments;return _regeneratorRuntime.async(function(_context13){while(1){switch(_context13.prev=_context13.next){case 0:options=_args13.length>2&&_args13[2]!==undefined?_args13[2]:{};if(ExponentFileSystem.downloadAsync){_context13.next=3;break;}throw new UnavailabilityError('expo-file-system','downloadAsync');case 3:_context13.next=5;return _regeneratorRuntime.awrap(ExponentFileSystem.downloadAsync(uri,fileUri,_extends({sessionType:FileSystemSessionType.BACKGROUND},options)));case 5:return _context13.abrupt(\\"return\\",_context13.sent);case 6:case\\"end\\":return _context13.stop();}}},null,null,null,Promise);}function uploadAsync(url,fileUri){var options,_args14=arguments;return _regeneratorRuntime.async(function(_context14){while(1){switch(_context14.prev=_context14.next){case 0:options=_args14.length>2&&_args14[2]!==undefined?_args14[2]:{};if(ExponentFileSystem.uploadAsync){_context14.next=3;break;}throw new UnavailabilityError('expo-file-system','uploadAsync');case 3:_context14.next=5;return _regeneratorRuntime.awrap(ExponentFileSystem.uploadAsync(url,fileUri,_extends({sessionType:FileSystemSessionType.BACKGROUND,uploadType:FileSystemUploadType.BINARY_CONTENT},options,{httpMethod:(options.httpMethod||'POST').toUpperCase()})));case 5:return _context14.abrupt(\\"return\\",_context14.sent);case 6:case\\"end\\":return _context14.stop();}}},null,null,null,Promise);}function createDownloadResumable(uri,fileUri,options,callback,resumeData){return new DownloadResumable(uri,fileUri,options,callback,resumeData);}function createUploadTask(url,fileUri,options,callback){return new UploadTask(url,fileUri,options,callback);}var FileSystemCancellableNetworkTask=function(){function FileSystemCancellableNetworkTask(){_classCallCheck(this,FileSystemCancellableNetworkTask);this._uuid=uuid_1.v4();this.taskWasCanceled=false;this.emitter=new EventEmitter(ExponentFileSystem);}_createClass(FileSystemCancellableNetworkTask,[{key:\\"cancelAsync\\",value:function cancelAsync(){return _regeneratorRuntime.async(function(_context15){while(1){switch(_context15.prev=_context15.next){case 0:if(ExponentFileSystem.networkTaskCancelAsync){_context15.next=2;break;}throw new UnavailabilityError('expo-file-system','networkTaskCancelAsync');case 2:this.removeSubscription();this.taskWasCanceled=true;_context15.next=6;return _regeneratorRuntime.awrap(ExponentFileSystem.networkTaskCancelAsync(this.uuid));case 6:return _context15.abrupt(\\"return\\",_context15.sent);case 7:case\\"end\\":return _context15.stop();}}},null,this,null,Promise);}},{key:\\"isTaskCancelled\\",value:function isTaskCancelled(){if(this.taskWasCanceled){console.warn('This task was already canceled.');return true;}return false;}},{key:\\"uuid\\",get:function get(){return this._uuid;}},{key:\\"addSubscription\\",value:function addSubscription(){var _this=this;if(this.subscription){return;}this.subscription=this.emitter.addListener(this.getEventName(),function(event){if(event.uuid===_this.uuid){var callback=_this.getCallback();if(callback){callback(event.data);}}});}},{key:\\"removeSubscription\\",value:function removeSubscription(){if(!this.subscription){return;}this.emitter.removeSubscription(this.subscription);this.subscription=null;}}]);return FileSystemCancellableNetworkTask;}();var UploadTask=function(_FileSystemCancellabl){_inherits(UploadTask,_FileSystemCancellabl);var _super=_createSuper(UploadTask);function UploadTask(url,fileUri,options,callback){var _options$httpMethod;var _this2;_classCallCheck(this,UploadTask);_this2=_super.call(this);_this2.url=url;_this2.fileUri=fileUri;_this2.callback=callback;var httpMethod=(options==null?void 0:(_options$httpMethod=options.httpMethod)==null?void 0:_options$httpMethod.toUpperCase())||'POST';_this2.options=_extends({sessionType:FileSystemSessionType.BACKGROUND,uploadType:FileSystemUploadType.BINARY_CONTENT},options,{httpMethod:httpMethod});return _this2;}_createClass(UploadTask,[{key:\\"getEventName\\",value:function getEventName(){return 'expo-file-system.uploadProgress';}},{key:\\"getCallback\\",value:function getCallback(){return this.callback;}},{key:\\"uploadAsync\\",value:function(){var result;return _regeneratorRuntime.async(function(_context16){while(1){switch(_context16.prev=_context16.next){case 0:if(ExponentFileSystem.uploadTaskStartAsync){_context16.next=2;break;}throw new UnavailabilityError('expo-file-system','uploadTaskStartAsync');case 2:if(!this.isTaskCancelled()){_context16.next=4;break;}return _context16.abrupt(\\"return\\");case 4:this.addSubscription();_context16.next=7;return _regeneratorRuntime.awrap(ExponentFileSystem.uploadTaskStartAsync(this.url,this.fileUri,this.uuid,this.options));case 7:result=_context16.sent;this.removeSubscription();return _context16.abrupt(\\"return\\",result);case 10:case\\"end\\":return _context16.stop();}}},null,this,null,Promise);}}]);return UploadTask;}(FileSystemCancellableNetworkTask);var DownloadResumable=function(_FileSystemCancellabl2){_inherits(DownloadResumable,_FileSystemCancellabl2);var _super2=_createSuper(DownloadResumable);function DownloadResumable(url,_fileUri){var _this3;var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var callback=arguments.length>3?arguments[3]:undefined;var resumeData=arguments.length>4?arguments[4]:undefined;_classCallCheck(this,DownloadResumable);_this3=_super2.call(this);_this3.url=url;_this3._fileUri=_fileUri;_this3.options=options;_this3.callback=callback;_this3.resumeData=resumeData;return _this3;}_createClass(DownloadResumable,[{key:\\"fileUri\\",get:function get(){return this._fileUri;}},{key:\\"getEventName\\",value:function getEventName(){return 'expo-file-system.downloadProgress';}},{key:\\"getCallback\\",value:function getCallback(){return this.callback;}},{key:\\"downloadAsync\\",value:function(){return _regeneratorRuntime.async(function(_context17){while(1){switch(_context17.prev=_context17.next){case 0:if(ExponentFileSystem.downloadResumableStartAsync){_context17.next=2;break;}throw new UnavailabilityError('expo-file-system','downloadResumableStartAsync');case 2:if(!this.isTaskCancelled()){_context17.next=4;break;}return _context17.abrupt(\\"return\\");case 4:this.addSubscription();_context17.next=7;return _regeneratorRuntime.awrap(ExponentFileSystem.downloadResumableStartAsync(this.url,this._fileUri,this.uuid,this.options,this.resumeData));case 7:return _context17.abrupt(\\"return\\",_context17.sent);case 8:case\\"end\\":return _context17.stop();}}},null,this,null,Promise);}},{key:\\"pauseAsync\\",value:function pauseAsync(){var pauseResult;return _regeneratorRuntime.async(function(_context18){while(1){switch(_context18.prev=_context18.next){case 0:if(ExponentFileSystem.downloadResumablePauseAsync){_context18.next=2;break;}throw new UnavailabilityError('expo-file-system','downloadResumablePauseAsync');case 2:if(!this.isTaskCancelled()){_context18.next=4;break;}return _context18.abrupt(\\"return\\",{fileUri:this._fileUri,options:this.options,url:this.url});case 4:_context18.next=6;return _regeneratorRuntime.awrap(ExponentFileSystem.downloadResumablePauseAsync(this.uuid));case 6:pauseResult=_context18.sent;this.removeSubscription();if(!pauseResult){_context18.next=13;break;}this.resumeData=pauseResult.resumeData;return _context18.abrupt(\\"return\\",this.savable());case 13:throw new Error('Unable to generate a savable pause state');case 14:case\\"end\\":return _context18.stop();}}},null,this,null,Promise);}},{key:\\"resumeAsync\\",value:function resumeAsync(){return _regeneratorRuntime.async(function(_context19){while(1){switch(_context19.prev=_context19.next){case 0:if(ExponentFileSystem.downloadResumableStartAsync){_context19.next=2;break;}throw new UnavailabilityError('expo-file-system','downloadResumableStartAsync');case 2:if(!this.isTaskCancelled()){_context19.next=4;break;}return _context19.abrupt(\\"return\\");case 4:this.addSubscription();_context19.next=7;return _regeneratorRuntime.awrap(ExponentFileSystem.downloadResumableStartAsync(this.url,this.fileUri,this.uuid,this.options,this.resumeData));case 7:return _context19.abrupt(\\"return\\",_context19.sent);case 8:case\\"end\\":return _context19.stop();}}},null,this,null,Promise);}},{key:\\"savable\\",value:function savable(){return {url:this.url,fileUri:this.fileUri,options:this.options,resumeData:this.resumeData};}}]);return DownloadResumable;}(FileSystemCancellableNetworkTask);var baseReadAsStringAsync=readAsStringAsync;var baseWriteAsStringAsync=writeAsStringAsync;var baseDeleteAsync=deleteAsync;var baseMoveAsync=moveAsync;var baseCopyAsync=copyAsync;var StorageAccessFramework;(function(StorageAccessFramework){StorageAccessFramework.getUriForDirectoryInRoot=function(folderName){return \\"content://com.android.externalstorage.documents/tree/primary:\\"+folderName+\\"/document/primary:\\"+folderName;};StorageAccessFramework.requestDirectoryPermissionsAsync=function(){var initialFileUrl,_args20=arguments;return _regeneratorRuntime.async(function(_context20){while(1){switch(_context20.prev=_context20.next){case 0:initialFileUrl=_args20.length>0&&_args20[0]!==undefined?_args20[0]:null;if(ExponentFileSystem.requestDirectoryPermissionsAsync){_context20.next=3;break;}throw new UnavailabilityError('expo-file-system','StorageAccessFramework.requestDirectoryPermissionsAsync');case 3:_context20.next=5;return _regeneratorRuntime.awrap(ExponentFileSystem.requestDirectoryPermissionsAsync(initialFileUrl));case 5:return _context20.abrupt(\\"return\\",_context20.sent);case 6:case\\"end\\":return _context20.stop();}}},null,null,null,Promise);};StorageAccessFramework.readDirectoryAsync=function(dirUri){return _regeneratorRuntime.async(function(_context21){while(1){switch(_context21.prev=_context21.next){case 0:if(ExponentFileSystem.readSAFDirectoryAsync){_context21.next=2;break;}throw new UnavailabilityError('expo-file-system','StorageAccessFramework.readDirectoryAsync');case 2:_context21.next=4;return _regeneratorRuntime.awrap(ExponentFileSystem.readSAFDirectoryAsync(dirUri,{}));case 4:return _context21.abrupt(\\"return\\",_context21.sent);case 5:case\\"end\\":return _context21.stop();}}},null,null,null,Promise);};StorageAccessFramework.makeDirectoryAsync=function(parentUri,dirName){return _regeneratorRuntime.async(function(_context22){while(1){switch(_context22.prev=_context22.next){case 0:if(ExponentFileSystem.makeSAFDirectoryAsync){_context22.next=2;break;}throw new UnavailabilityError('expo-file-system','StorageAccessFramework.makeDirectoryAsync');case 2:_context22.next=4;return _regeneratorRuntime.awrap(ExponentFileSystem.makeSAFDirectoryAsync(parentUri,dirName));case 4:return _context22.abrupt(\\"return\\",_context22.sent);case 5:case\\"end\\":return _context22.stop();}}},null,null,null,Promise);};StorageAccessFramework.createFileAsync=function(parentUri,fileName,mimeType){return _regeneratorRuntime.async(function(_context23){while(1){switch(_context23.prev=_context23.next){case 0:if(ExponentFileSystem.createSAFFileAsync){_context23.next=2;break;}throw new UnavailabilityError('expo-file-system','StorageAccessFramework.createFileAsync');case 2:_context23.next=4;return _regeneratorRuntime.awrap(ExponentFileSystem.createSAFFileAsync(parentUri,fileName,mimeType));case 4:return _context23.abrupt(\\"return\\",_context23.sent);case 5:case\\"end\\":return _context23.stop();}}},null,null,null,Promise);};StorageAccessFramework.writeAsStringAsync=baseWriteAsStringAsync;StorageAccessFramework.readAsStringAsync=baseReadAsStringAsync;StorageAccessFramework.deleteAsync=baseDeleteAsync;StorageAccessFramework.moveAsync=baseMoveAsync;StorageAccessFramework.copyAsync=baseCopyAsync;})(StorageAccessFramework||(StorageAccessFramework={}));
330
+
331
+ var fileBuild = /*#__PURE__*/Object.freeze({
332
+ __proto__: null,
333
+ get EncodingType () { return EncodingType; },
334
+ get FileSystemSessionType () { return FileSystemSessionType; },
335
+ get FileSystemUploadType () { return FileSystemUploadType; },
336
+ documentDirectory: documentDirectory,
337
+ cacheDirectory: cacheDirectory,
338
+ bundledAssets: bundledAssets,
339
+ bundleDirectory: bundleDirectory,
340
+ getInfoAsync: getInfoAsync,
341
+ readAsStringAsync: readAsStringAsync,
342
+ getContentUriAsync: getContentUriAsync,
343
+ writeAsStringAsync: writeAsStringAsync,
344
+ deleteAsync: deleteAsync,
345
+ deleteLegacyDocumentDirectoryAndroid: deleteLegacyDocumentDirectoryAndroid,
346
+ moveAsync: moveAsync,
347
+ copyAsync: copyAsync,
348
+ makeDirectoryAsync: makeDirectoryAsync,
349
+ readDirectoryAsync: readDirectoryAsync,
350
+ getFreeDiskStorageAsync: getFreeDiskStorageAsync,
351
+ getTotalDiskCapacityAsync: getTotalDiskCapacityAsync,
352
+ downloadAsync: downloadAsync,
353
+ uploadAsync: uploadAsync,
354
+ createDownloadResumable: createDownloadResumable,
355
+ createUploadTask: createUploadTask,
356
+ FileSystemCancellableNetworkTask: FileSystemCancellableNetworkTask,
357
+ UploadTask: UploadTask,
358
+ DownloadResumable: DownloadResumable,
359
+ get StorageAccessFramework () { return StorageAccessFramework; }
360
+ });
361
+
362
+ console.log({fileBuild:fileBuild});
363
+ ",
364
+ ]
365
+ `;
366
+
367
+ exports[`build_components nativeComponents  not set 1`] = `
368
+ Array [
369
+ "import _extends from '@babel/runtime/helpers/extends';
370
+ import 'react';
371
+ import View from '@tarojs/components-rn/dist/components/View';
372
+ import Text from '@tarojs/components-rn/dist/components/Text';
373
+ import taro from '@tarojs/taro-rn';
374
+ import { Dimensions, StyleSheet } from 'react-native';
375
+ import { jsx, jsxs } from 'react/jsx-runtime';
376
+
377
+ // 一般app 只有竖屏模式,所以可以只获取一次 width
378
+ const deviceWidthDp = Dimensions.get('window').width;
379
+ const uiWidthPx = 375;
380
+
381
+ function scalePx2dp (uiElementPx) {
382
+ return uiElementPx * deviceWidthDp / uiWidthPx
383
+ }
384
+
385
+ var indexScssStyleSheet = StyleSheet.create({
386
+ \\"cellGroup\\": {
387
+ \\"backgroundColor\\": \\"white\\",
388
+ \\"borderRadius\\": scalePx2dp(10)
389
+ },
390
+ \\"cellItem\\": {
391
+ \\"display\\": \\"flex\\",
392
+ \\"flexDirection\\": \\"row\\",
393
+ \\"justifyContent\\": \\"space-between\\",
394
+ \\"paddingLeft\\": scalePx2dp(15),
395
+ \\"paddingRight\\": scalePx2dp(15),
396
+ \\"height\\": scalePx2dp(49)
397
+ },
398
+ \\"cellItem--care\\": {
399
+ \\"height\\": scalePx2dp(64)
400
+ },
401
+ \\"cellItem__title\\": {
402
+ \\"color\\": \\"#333\\",
403
+ \\"fontWeight\\": \\"bold\\"
404
+ },
405
+ \\"cellItem__line\\": {
406
+ \\"height\\": scalePx2dp(0.5),
407
+ \\"backgroundColor\\": \\"#f4f4f4\\"
408
+ }
409
+ });
410
+
411
+ function _mergeEleStyles(){return [].concat.apply([],arguments).reduce((pre,cur)=>Object.assign(pre,cur),{});}var _styleSheet=indexScssStyleSheet;console.log({taro:taro});function Cell(_ref){var children=_ref.children,style=_ref.style;var childs=Array.isArray(children)?children:[children];return jsx(View,{style:_mergeEleStyles(_styleSheet[\\"cellGroup\\"],_extends({},style)),children:childs.map(function(it,i){return [it].concat(i===children.length-1?[]:jsx(View,{style:_styleSheet[\\"cellItem__line\\"]},\\"line-\\"+i));})});}function Item(_ref2){var title=_ref2.title,children=_ref2.children,style=_ref2.style;return jsxs(View,{style:_mergeEleStyles(_styleSheet[\\"cellItem\\"],_extends({},style)),children:[jsx(Text,{style:_styleSheet[\\"cellItem__title\\"],children:title}),jsx(View,{style:_styleSheet[\\"cellItem__content\\"],children:children})]});}Cell.Item=Item;
412
+
413
+ export { Cell as default };
414
+ ",
415
+ ]
416
+ `;
417
+
418
+ exports[`build_components require react-native component 1`] = `
419
+ Array [
420
+ "import { Children, Component } from 'react';
421
+ import { AppRegistry } from 'react-native';
422
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
423
+
424
+ function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\\"Cannot call a class as a function\\");}}
425
+
426
+ function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if(\\"value\\"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,\\"prototype\\",{writable:false});return Constructor;}
427
+
428
+ function ChildrenWrapper(props){return jsx(Fragment,{children:props.children});}
429
+
430
+ function _extends(){_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}
431
+
432
+ var RootControllerChanges;(function(RootControllerChanges){RootControllerChanges[RootControllerChanges[\\"Insert\\"]=0]=\\"Insert\\";RootControllerChanges[RootControllerChanges[\\"Update\\"]=1]=\\"Update\\";RootControllerChanges[RootControllerChanges[\\"Remove\\"]=2]=\\"Remove\\";})(RootControllerChanges||(RootControllerChanges={}));var RootController=function(){function RootController(){_classCallCheck(this,RootController);this.siblings=new Set();this.pendingActions=[];this.callback=null;}_createClass(RootController,[{key:\\"update\\",value:function update(id,element,callback){if(!this.siblings.has(id)){this.emit(id,{change:RootControllerChanges.Insert,element:element,updateCallback:callback});this.siblings.add(id);}else {this.emit(id,{change:RootControllerChanges.Update,element:element,updateCallback:callback});}}},{key:\\"destroy\\",value:function destroy(id,callback){if(this.siblings.has(id)){this.emit(id,{change:RootControllerChanges.Remove,element:null,updateCallback:callback});this.siblings.delete(id);}else if(callback){callback();}}},{key:\\"setCallback\\",value:function setCallback(callback){this.callback=callback;this.pendingActions.forEach(function(_ref){var id=_ref.id,action=_ref.action;callback(id,action);});}},{key:\\"emit\\",value:function emit(id,action){if(this.callback){this.callback(id,action);}else {this.pendingActions.push({action:action,id:id});}}}]);return RootController;}();
433
+
434
+ function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}
435
+
436
+ function _inherits(subClass,superClass){if(typeof superClass!==\\"function\\"&&superClass!==null){throw new TypeError(\\"Super expression must either be null or a function\\");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,\\"prototype\\",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}
437
+
438
+ function _typeof(obj){\\"@babel/helpers - typeof\\";return _typeof=\\"function\\"==typeof Symbol&&\\"symbol\\"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&\\"function\\"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?\\"symbol\\":typeof obj;},_typeof(obj);}
439
+
440
+ function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError(\\"this hasn't been initialised - super() hasn't been called\\");}return self;}
441
+
442
+ function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)===\\"object\\"||typeof call===\\"function\\")){return call;}else if(call!==void 0){throw new TypeError(\\"Derived constructors may only return object or undefined\\");}return _assertThisInitialized(self);}
443
+
444
+ function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}
445
+
446
+ function _createSuper$1(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$1();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct$1(){if(typeof Reflect===\\"undefined\\"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy===\\"function\\")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var _default$1=function(_Component){_inherits(_default,_Component);var _super=_createSuper$1(_default);function _default(){_classCallCheck(this,_default);return _super.apply(this,arguments);}_createClass(_default,[{key:\\"shouldComponentUpdate\\",value:function shouldComponentUpdate(nextProps){return nextProps.shouldUpdate;}},{key:\\"render\\",value:function render(){var child=this.props.children;return child===null||child===false?null:Children.only(child);}}]);return _default;}(Component);
447
+
448
+ function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else {result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect===\\"undefined\\"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy===\\"function\\")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var _default=function(_Component){_inherits(_default,_Component);var _super=_createSuper(_default);function _default(props){var _this;_classCallCheck(this,_default);_this=_super.call(this,props);_this.siblingsPool=[];_this.updatedSiblings=new Set();_this.unmounted=false;_this.state={siblings:[]};return _this;}_createClass(_default,[{key:\\"componentDidMount\\",value:function componentDidMount(){var _this2=this;this.props.controller.setCallback(function(id,change){setImmediate(function(){return _this2.commitChange(id,change);});});}},{key:\\"componentDidUpdate\\",value:function componentDidUpdate(){this.updatedSiblings.clear();}},{key:\\"componentWillUnmount\\",value:function componentWillUnmount(){this.unmounted=true;}},{key:\\"commitChange\\",value:function commitChange(id,_ref){var _this3=this;var change=_ref.change,element=_ref.element,updateCallback=_ref.updateCallback;if(this.unmounted){return;}var siblings=Array.from(this.siblingsPool);var index=siblings.findIndex(function(sibling){return sibling.id===id;});if(change===RootControllerChanges.Remove){if(index>-1){siblings.splice(index,1);}else {this.invokeCallback(updateCallback);return;}}else if(change===RootControllerChanges.Update){if(index>-1){siblings.splice(index,1,{element:element,id:id});this.updatedSiblings.add(id);}else {this.invokeCallback(updateCallback);return;}}else {if(index>-1){siblings.splice(index,1);}siblings.push({element:element,id:id});this.updatedSiblings.add(id);}this.siblingsPool=siblings;this.setState({siblings:siblings},function(){return _this3.invokeCallback(updateCallback);});}},{key:\\"invokeCallback\\",value:function invokeCallback(callback){if(callback){callback();}}},{key:\\"renderSiblings\\",value:function renderSiblings(){var _this4=this;return this.state.siblings.map(function(_ref2){var id=_ref2.id,element=_ref2.element;return jsx(_default$1,{shouldUpdate:_this4.updatedSiblings.has(id),children:_this4.wrapSibling(element)},\\"root-sibling-\\"+id);});}},{key:\\"wrapSibling\\",value:function wrapSibling(element){var renderSibling=this.props.renderSibling;if(renderSibling){return renderSibling(element);}else {return element;}}},{key:\\"render\\",value:function render(){return jsxs(Fragment,{children:[this.props.children,this.renderSiblings()]});}}]);return _default;}(Component);
449
+
450
+ function wrapRootComponent(_Root,renderSibling){var controller=new RootController();return {Root:function Root(props){return jsx(_default,{controller:controller,renderSibling:renderSibling,children:jsx(_Root,_extends({},props))});},manager:{update:function update(id,element,callback){controller.update(id,element,callback);},destroy:function destroy(id,callback){controller.destroy(id,callback);}}};}
451
+
452
+ var siblingWrapper=function(sibling){return sibling;};function renderSibling(sibling){return siblingWrapper(sibling);}if(!global.__rootSiblingsInjected&&!global.__rootSiblingsDisabled){AppRegistry.setWrapperComponentProvider(function(){return Root;});global.__rootSiblingsInjected=true;}var _wrapRootComponent=wrapRootComponent(ChildrenWrapper,renderSibling),Root=_wrapRootComponent.Root,defaultManager=_wrapRootComponent.manager;var uuid=0;var managerStack=[defaultManager];var inactiveManagers=new Set();function getActiveManager(){for(var i=managerStack.length-1;i>=0;i--){var manager=managerStack[i];if(!inactiveManagers.has(manager)){return manager;}}return defaultManager;}var RootSiblingsManager=function(){function RootSiblingsManager(element,callback){_classCallCheck(this,RootSiblingsManager);this.id=\\"root-sibling-\\"+(uuid+1);this.manager=getActiveManager();this.manager.update(this.id,element,callback);uuid++;}_createClass(RootSiblingsManager,[{key:\\"update\\",value:function update(element,callback){this.manager.update(this.id,element,callback);}},{key:\\"destroy\\",value:function destroy(callback){this.manager.destroy(this.id,callback);}}]);return RootSiblingsManager;}();
453
+
454
+ console.log({silblings:RootSiblingsManager});
455
+ ",
456
+ ]
457
+ `;
458
+
459
+ exports[`build_components single component 1`] = `
460
+ Array [
461
+ "import _extends from '@babel/runtime/helpers/extends';
462
+ import 'react';
463
+ import View from '@tarojs/components-rn/dist/components/View';
464
+ import Text from '@tarojs/components-rn/dist/components/Text';
465
+ import taro from '@tarojs/taro-rn';
466
+ import { Dimensions, StyleSheet } from 'react-native';
467
+ import { jsx, jsxs } from 'react/jsx-runtime';
468
+
469
+ // 一般app 只有竖屏模式,所以可以只获取一次 width
470
+ const deviceWidthDp = Dimensions.get('window').width;
471
+ const uiWidthPx = 375;
472
+
473
+ function scalePx2dp (uiElementPx) {
474
+ return uiElementPx * deviceWidthDp / uiWidthPx
475
+ }
476
+
477
+ var indexScssStyleSheet = StyleSheet.create({
478
+ \\"cellGroup\\": {
479
+ \\"backgroundColor\\": \\"white\\",
480
+ \\"borderRadius\\": scalePx2dp(10)
481
+ },
482
+ \\"cellItem\\": {
483
+ \\"display\\": \\"flex\\",
484
+ \\"flexDirection\\": \\"row\\",
485
+ \\"justifyContent\\": \\"space-between\\",
486
+ \\"paddingLeft\\": scalePx2dp(15),
487
+ \\"paddingRight\\": scalePx2dp(15),
488
+ \\"height\\": scalePx2dp(49)
489
+ },
490
+ \\"cellItem--care\\": {
491
+ \\"height\\": scalePx2dp(64)
492
+ },
493
+ \\"cellItem__title\\": {
494
+ \\"color\\": \\"#333\\",
495
+ \\"fontWeight\\": \\"bold\\"
496
+ },
497
+ \\"cellItem__line\\": {
498
+ \\"height\\": scalePx2dp(0.5),
499
+ \\"backgroundColor\\": \\"#f4f4f4\\"
500
+ }
501
+ });
502
+
503
+ function _mergeEleStyles(){return [].concat.apply([],arguments).reduce((pre,cur)=>Object.assign(pre,cur),{});}var _styleSheet=indexScssStyleSheet;console.log({taro:taro});function Cell(_ref){var children=_ref.children,style=_ref.style;var childs=Array.isArray(children)?children:[children];return jsx(View,{style:_mergeEleStyles(_styleSheet[\\"cellGroup\\"],_extends({},style)),children:childs.map(function(it,i){return [it].concat(i===children.length-1?[]:jsx(View,{style:_styleSheet[\\"cellItem__line\\"]},\\"line-\\"+i));})});}function Item(_ref2){var title=_ref2.title,children=_ref2.children,style=_ref2.style;return jsxs(View,{style:_mergeEleStyles(_styleSheet[\\"cellItem\\"],_extends({},style)),children:[jsx(Text,{style:_styleSheet[\\"cellItem__title\\"],children:title}),jsx(View,{style:_styleSheet[\\"cellItem__content\\"],children:children})]});}Cell.Item=Item;
504
+
505
+ export { Cell as default };
506
+ ",
507
+ ]
508
+ `;
509
+
510
+ exports[`build_components svg transform 1`] = `
511
+ Array [
512
+ "import 'react';
513
+ import { jsx } from 'react/jsx-runtime';
514
+
515
+ var Logo = require('./assets/rollup-logo-a3c30bf4.svg');
516
+
517
+ function index(){return jsx(Logo,{className:\\"logo\\",width:120,height:40});}
518
+
519
+ export { index as default };
520
+ ",
521
+ undefined,
522
+ ]
523
+ `;