@camstack/addon-pipeline-orchestrator 1.2.614 → 1.2.615
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.
- package/assets/viewer/.viewer-current-files.json +28 -28
- package/assets/viewer/.viewer-version +1 -1
- package/assets/viewer/_expo/static/js/web/Clipboard-fcc57cd9810347b2756478737a5e01d8.js +8 -0
- package/assets/viewer/_expo/static/js/web/Haptics-f0d908c71019d9a81718b204f25d6e5e.js +3 -0
- package/assets/viewer/_expo/static/js/web/[frameId]-d7db777f83b7a563e453c74d7a26c181.js +21 -0
- package/assets/viewer/_expo/static/js/web/[id]-15f8c330d4880acaa4282ade16877f38.js +7 -0
- package/assets/viewer/_expo/static/js/web/[id]-453e47e2b7b5b838bbba33b9353b266d.js +57 -0
- package/assets/viewer/_expo/static/js/web/[id]-78207e1e873f6bb7b4af68223e73a2e9.js +5 -0
- package/assets/viewer/_expo/static/js/web/[section]-82e1a342a60f16a6529b4845a55d464a.js +31 -0
- package/assets/viewer/_expo/static/js/web/{__common-4bcad671841ebb367cd3d76dbec373b1.js → __common-2d0e235081f3f935f8440f1e54136c78.js} +1806 -1806
- package/assets/viewer/_expo/static/js/web/_layout-b3e230daedf17f42989e0873275be31a.js +22 -0
- package/assets/viewer/_expo/static/js/web/add-server-7692ab5ce8361ece54ed8c3d9c5a6a85.js +2 -0
- package/assets/viewer/_expo/static/js/web/adhoc-492167e328b1482dc886717e41b48ff8.js +1 -0
- package/assets/viewer/_expo/static/js/web/alarm-6c877b40b2d0c2b023590326993b7914.js +6 -0
- package/assets/viewer/_expo/static/js/web/cameras-662b9f3b0d46020196b7dd78fe6fd04b.js +27 -0
- package/assets/viewer/_expo/static/js/web/connect-1e4d9395e5bcf7ba2c3451c3be1a4d34.js +2 -0
- package/assets/viewer/_expo/static/js/web/enroll-3624f0a34b5f2f9cfd5db3c6d4ef7bb6.js +19 -0
- package/assets/viewer/_expo/static/js/web/history-bf2cbd46d0836dc03ecebec9da7a110f.js +3 -0
- package/assets/viewer/_expo/static/js/web/index-2e1e1c4a7ede958043b7f655c450e0bc.js +1 -0
- package/assets/viewer/_expo/static/js/web/index-875f53846ebf0d145723d6f54f0d70c0.js +2 -0
- package/assets/viewer/_expo/static/js/web/index-8e9962aec93e5db2b41e75295bcf6e1c.js +1 -0
- package/assets/viewer/_expo/static/js/web/index-a5c2f4e7123966219452b78717df6d55.js +4 -0
- package/assets/viewer/_expo/static/js/web/{index-f1794cc1ef6aa42a9ccd00b13b144132.js → index-b91998f2bed17b6b4966a74c7d420923.js} +2 -2
- package/assets/viewer/_expo/static/js/web/new-404a1d47e83e62a5b700b6de49417a92.js +2 -0
- package/assets/viewer/_expo/static/js/web/sign-in-ffe70c7d9c4f166b300fbdc0456005ef.js +38 -0
- package/assets/viewer/embed/assets/{MaskShapeCanvas-DI4BY7W2-B2j_PGnc.js → MaskShapeCanvas-DI4BY7W2-D4utSYZf.js} +1 -1
- package/assets/viewer/embed/assets/{MotionZonesSettings-CiYjd-yl-BLsnvSS_.js → MotionZonesSettings-CiYjd-yl-CoZihFBB.js} +1 -1
- package/assets/viewer/embed/assets/{PrivacyMaskSettings-BmRdUrPp-DL4Vt8hF.js → PrivacyMaskSettings-BmRdUrPp-Z0gaYiUK.js} +1 -1
- package/assets/viewer/embed/assets/{SceneMonitorEditor-J4Ix_0tu-I1B6MNvG.js → SceneMonitorEditor-J4Ix_0tu-CLQMzZ0y.js} +1 -1
- package/assets/viewer/embed/assets/index-MQQHp0MZ.js +117 -0
- package/assets/viewer/embed/index.html +1 -1
- package/assets/viewer/index.html +1 -1
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-B0FfX8d-.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-DdMlROi7.mjs} +3 -3
- package/dist/{hostInit-CDXbJX9V.mjs → hostInit-BDydGCVJ.mjs} +3 -3
- package/dist/index.js +17 -17
- package/dist/index.mjs +17 -17
- package/dist/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/assets/viewer/_expo/static/js/web/events-a245172c172890487b234a99b5d7d70c.js +0 -64
- package/assets/viewer/embed/assets/index-BMuAiKnU.js +0 -117
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BarcodeDetector",{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(e,"ZXING_CPP_COMMIT",{enumerable:!0,get:function(){return t.s}}),Object.defineProperty(e,"ZXING_WASM_SHA256",{enumerable:!0,get:function(){return t.r}}),Object.defineProperty(e,"ZXING_WASM_VERSION",{enumerable:!0,get:function(){return t.o}}),Object.defineProperty(e,"prepareZXingModule",{enumerable:!0,get:function(){return t.n}}),Object.defineProperty(e,"purgeZXingModule",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(e,"setZXingModuleOverrides",{enumerable:!0,get:function(){return t.a}});var t=r(d[0]);r(d[1]),r(d[2])},1500,[1501,1502,1503]);
|
|
2
|
+
__d(function(_g,_r2,_i,_a,_m,_e2,_d){"use strict";Object.defineProperty(_e2,'__esModule',{value:!0}),Object.defineProperty(_e2,"a",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e2,"i",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e2,"n",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e2,"o",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e2,"r",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e2,"s",{enumerable:!0,get:function(){return g}}),Object.defineProperty(_e2,"t",{enumerable:!0,get:function(){return dt}});var t=[["All","*","*"," ",0,"All"],["AllReadable","*","r"," ",0,"All Readable"],["AllCreatable","*","w"," ",0,"All Creatable"],["AllLinear","*","l"," ",0,"All Linear"],["AllMatrix","*","m"," ",0,"All Matrix"],["AllGS1","*","G"," ",0,"All GS1"],["AllRetail","*","R"," ",0,"All Retail"],["AllIndustrial","*","I"," ",0,"All Industrial"],["Codabar","F"," ","lrw ",18,"Codabar"],["Code39","A"," ","lrw I",8,"Code 39"],["Code39Std","A","s","lrw I",8,"Code 39 Standard"],["Code39Ext","A","e","lr I",9,"Code 39 Extended"],["Code32","A","2","lr I",129,"Code 32"],["PZN","A","p","lr I",52,"Pharmazentralnummer"],["Code93","G"," ","lrw I",25,"Code 93"],["Code128","C"," ","lrwGI",20,"Code 128"],["ITF","I"," ","lrw I",3,"ITF"],["ITF14","I","4","lr I",89,"ITF-14"],["DataBar","e"," ","lr GR",29,"DataBar"],["DataBarOmni","e","o","lr GR",29,"DataBar Omni"],["DataBarStk","e","s","lr GR",79,"DataBar Stacked"],["DataBarStkOmni","e","O","lr GR",80,"DataBar Stacked Omni"],["DataBarLtd","e","l","lr GR",30,"DataBar Limited"],["DataBarExp","e","e","lr GR",31,"DataBar Expanded"],["DataBarExpStk","e","E","lr GR",81,"DataBar Expanded Stacked"],["EANUPC","E"," ","lr R",15,"EAN/UPC"],["EAN13","E","1","lrw R",15,"EAN-13"],["EAN8","E","8","lrw R",10,"EAN-8"],["EAN5","E","5","l R",12,"EAN-5"],["EAN2","E","2","l R",11,"EAN-2"],["ISBN","E","i","lr R",69,"ISBN"],["UPCA","E","a","lrw R",34,"UPC-A"],["UPCE","E","e","lrw R",37,"UPC-E"],["Telepen","B"," ","lr I",32,"Telepen"],["TelepenAlpha","B","0","lr I",32,"Telepen Alpha"],["TelepenNumeric","B","1","lr I",87,"Telepen Numeric"],["OtherBarcode","X"," "," r ",0,"Other barcode"],["DXFilmEdge","X","x","lr ",147,"DX Film Edge"],["PDF417","L"," ","mrw ",55,"PDF417"],["CompactPDF417","L","c","mr ",56,"Compact PDF417"],["MicroPDF417","L","m","mr ",84,"MicroPDF417"],["Aztec","z"," ","mr G ",92,"Aztec"],["AztecCode","z","c","mrwG ",92,"Aztec Code"],["AztecRune","z","r","mr ",128,"Aztec Rune"],["QRCode","Q"," ","mrwG ",58,"QR Code"],["QRCodeModel1","Q","1","mr ",0,"QR Code Model 1"],["QRCodeModel2","Q","2","mr ",58,"QR Code Model 2"],["MicroQRCode","Q","m","mr ",97,"Micro QR Code"],["RMQRCode","Q","r","mr G ",145,"rMQR Code"],["DataMatrix","d"," ","mrwG ",71,"Data Matrix"],["MaxiCode","U"," ","mr ",57,"MaxiCode"]],e={DataBarExpanded:"DataBarExp",DataBarLimited:"DataBarLtd","Linear-Codes":"AllLinear","Matrix-Codes":"AllMatrix",Any:"All",rMQRCode:"RMQRCode"};function r(t){var r;return null==(r=e[t])?t:r}function n(t){return t.map(r).join(",")}t.map(t=>t[5]),t.filter(t=>"*"===t[1]).map(t=>t[0]),t.filter(t=>"*"!==t[1]).map(t=>t[0]),t.filter(t=>" "===t[2]).map(t=>t[0]),t.filter(t=>"l"===t[3][0]).map(t=>t[0]),t.filter(t=>"m"===t[3][0]).map(t=>t[0]),t.filter(t=>"r"===t[3][1]).map(t=>t[0]),t.filter(t=>"w"===t[3][2]||0!==t[4]).map(t=>t[0]),t.filter(t=>"G"===t[3][3]).map(t=>t[0]),t.filter(t=>"R"===t[3][4]).map(t=>t[0]),t.filter(t=>"I"===t[3][4]).map(t=>t[0]);var a=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function o(t){return a.indexOf(t)}var i="Unknown.ASCII.ISO8859_1.ISO8859_2.ISO8859_3.ISO8859_4.ISO8859_5.ISO8859_6.ISO8859_7.ISO8859_8.ISO8859_9.ISO8859_10.ISO8859_11.ISO8859_13.ISO8859_14.ISO8859_15.ISO8859_16.Cp437.Cp1250.Cp1251.Cp1252.Cp1256.Shift_JIS.Big5.GB2312.GB18030.EUC_JP.EUC_KR.UTF16BE.UTF8.UTF16LE.UTF32BE.UTF32LE.BINARY".split(".");function s(t){return"UnicodeBig"===t?i.indexOf("UTF16BE"):i.indexOf(t)}var l=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function u(t){return l[t]}var c=["Ignore","Read","Require"];function d(t){return c.indexOf(t)}var f=["Plain","ECI","HRI","Escaped","Hex","HexECI"];function h(t){return f.indexOf(t)}var p={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,tryDenoise:!1,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,validateOptionalChecksum:!1,returnErrors:!1,eanAddOnSymbol:"Ignore",textMode:"HRI",characterSet:"Unknown",tryCode39ExtendedMode:!0};function y(t){var e;return{...t,formats:n(t.formats),binarizer:o(t.binarizer),eanAddOnSymbol:d(t.eanAddOnSymbol),textMode:h(t.textMode),characterSet:s(t.characterSet),tryCode39ExtendedMode:null==(e=t.tryCode39ExtendedMode)||e}}function m(t){return{...t,format:t.format,symbology:t.symbology,contentType:u(t.contentType)}}var v="3.1.3",g="a17fd9dc65d6aa0dd2f660fdfca7a6a6613d938f",w={locateFile:(t,e)=>{let r=t.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@3.1.3/dist/${r[1]}/${t}`:e+t}},b=new WeakMap;function $(t,e){return Object.is(t,e)||Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>Object.hasOwn(e,r)&&t[r]===e[r])}function C(t,{overrides:e,equalityFn:r=$,fireImmediately:n=!1}={}){var a,o;let i,[s,l]=null==(a=b.get(t))?[w]:a,u=null==e?s:e;if(n){if(l&&(i=r(s,u)))return l;let e=t({...u});return b.set(t,[u,e]),e}(null==(o=i)?r(s,u):o)||b.set(t,[u])}function T(t){b.delete(t)}function E(t){let e=t.byteLength>>2,r=new Uint8Array(e);for(let n=0;n<e;n++){let e=n<<2;r[n]=306*t[e]+601*t[e+1]+117*t[e+2]+512>>10}return r}async function P(t,e,r=p){let n,a,o={...p,...r},i=await C(t,{fireImmediately:!0});if("width"in e&&"height"in e&&"data"in e){let{data:t,width:r,height:s}=e,l=E(t),u=l.byteLength;if(a=i._malloc(u),!a)throw Error(`Failed to allocate ${u} bytes in WASM memory`);try{i.HEAPU8.set(l,a),n=i.readBarcodesFromPixmap(a,r,s,y(o))}finally{i._free(a)}}else{let t,r;if("buffer"in e)[t,r]=[e.byteLength,e];else if("byteLength"in e)[t,r]=[e.byteLength,new Uint8Array(e)];else{if(!("size"in e))throw TypeError("Invalid input type");[t,r]=[e.size,new Uint8Array(await e.arrayBuffer())]}if(a=i._malloc(t),!a)throw Error(`Failed to allocate ${t} bytes in WASM memory`);try{i.HEAPU8.set(r,a),n=i.readBarcodesFromImage(a,t,y(o))}finally{i._free(a)}}let s=[];for(let t=0;t<n.size();++t)s.push(m(n.get(t)));return s}async function _(t={}){var e,r,n,a=t,o=!!globalThis.window,i=typeof Bun<"u",s=!!globalThis.WorkerGlobalScope;null!=(r=globalThis.process)&&null!=(r=r.versions)&&r.node&&(null==(n=globalThis.process)||n.type);var l,u,c="./this.program",d="";function f(t){return a.locateFile?a.locateFile(t,d):d+t}if(o||s||i){try{d=new URL(".",void 0).href}catch{}s&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),l=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)}}console.log.bind(console);var h,p,y,m,v=console.error.bind(console),g=!1,w=!1;function b(){var t=ce.buffer;x=new Int8Array(t),O=new Int16Array(t),a.HEAPU8=M=new Uint8Array(t),D=new Uint16Array(t),S=new Int32Array(t),F=new Uint32Array(t),I=new Float32Array(t),R=new Float64Array(t)}function $(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)W(a.preRun.shift());j(U)}function C(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());j(B)}function T(t){var e,r;null==(e=a.onAbort)||e.call(a,t),v(t="Aborted("+t+")"),g=!0,t+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(t);throw null==(r=y)||r(n),n}function E(t){if(t==m&&h)return new Uint8Array(h);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}async function P(t){if(!h)try{var e=await l(t);return new Uint8Array(e)}catch{}return E(t)}async function _(t,e){try{var r=await P(t);return await WebAssembly.instantiate(r,e)}catch(t){v(`failed to asynchronously prepare wasm: ${t}`),T(t)}}async function A(t,e,r){if(!t&&WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,r)}catch(t){v(`wasm streaming compile failed: ${t}`),v("falling back to ArrayBuffer instantiation")}return _(e,r)}var O,S,x,I,R,D,F,M,j=t=>{for(;t.length>0;)t.shift()(a)},B=[],k=t=>B.push(t),U=[],W=t=>U.push(t),L=t=>re(t),V=()=>ne(),z=[],G=0,N=0;class H{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){F[this.ptr+4>>2]=t}get_type(){return F[this.ptr+4>>2]}set_destructor(t){F[this.ptr+8>>2]=t}get_destructor(){return F[this.ptr+8>>2]}set_caught(t){t=+!!t,x[this.ptr+12]=t}get_caught(){return 0!=x[this.ptr+12]}set_rethrown(t){t=+!!t,x[this.ptr+13]=t}get_rethrown(){return 0!=x[this.ptr+13]}init(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)}set_adjusted_ptr(t){F[this.ptr+16>>2]=t}get_adjusted_ptr(){return F[this.ptr+16>>2]}}var Q=t=>ee(t),q=t=>{var e=N;if(!e)return Q(0),0;var r=new H(e);r.set_adjusted_ptr(e);var n=r.get_type();if(!n)return Q(0),e;for(var a of t){if(0===a||a===n)break;var o=r.ptr+16;if(ie(a,n,o))return Q(a),e}return Q(n),e},X={},J=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Y(t){return this.fromWireType(F[t>>2])}var Z={},K={},tt={},et=class extends Error{constructor(t){super(t),this.name="InternalError"}},rt=t=>{throw new et(t)},nt=(t,e,r)=>{function n(e){var n=r(e);n.length!==t.length&&rt("Mismatched type converter count");for(var a=0;a<t.length;++a)lt(t[a],n[a])}t.forEach(t=>tt[t]=e);var a=Array(e.length),o=[],i=0;{let t=e;for(let e=0;e<t.length;++e){let r=t[e];K.hasOwnProperty(r)?a[e]=K[r]:(o.push(r),Z.hasOwnProperty(r)||(Z[r]=[]),Z[r].push(()=>{a[e]=K[r],++i===o.length&&n(a)}))}}0===o.length&&n(a)},at=t=>{for(var e="";;){var r=M[t++];if(!r)return e;e+=String.fromCharCode(r)}},ot=class extends Error{constructor(t){super(t),this.name="BindingError"}},it=t=>{throw new ot(t)};function st(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=e.name;if(t||it(`type "${n}" must have a positive integer typeid pointer`),K.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;it(`Cannot register type '${n}' twice`)}if(K[t]=e,delete tt[t],Z.hasOwnProperty(t)){var a=Z[t];delete Z[t],a.forEach(t=>t())}}function lt(t,e){return st(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}var ut=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),ct=t=>{it((function(t){return t.$$.ptrType.registeredClass.name})(t)+" instance already deleted")},dt=!1,ft=t=>{},ht=t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},pt=t=>{--t.count.value,0===t.count.value&&ht(t)},yt=t=>globalThis.FinalizationRegistry?(dt=new FinalizationRegistry(t=>{pt(t.$$)}),yt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};dt.register(t,r,t)}return t},ft=t=>dt.unregister(t),yt(t)):(yt=t=>t,t),mt=[];function vt(){}var gt=(t,e)=>Object.defineProperty(e,"name",{value:t}),wt={},bt=(t,e,r)=>{if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){var n=[...arguments];return t[e].overloadTable.hasOwnProperty(n.length)||it(`Function '${r}' called with an invalid number of arguments (${n.length}) - expects one of (${t[e].overloadTable})!`),t[e].overloadTable[n.length].apply(this,n)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}},$t=(t,e,r)=>{a.hasOwnProperty(t)?((void 0===r||void 0!==a[t].overloadTable&&void 0!==a[t].overloadTable[r])&&it(`Cannot register public name '${t}' twice`),bt(a,t,t),a[t].overloadTable.hasOwnProperty(r)&&it(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),a[t].overloadTable[r]=e):(a[t]=e,a[t].argCount=r)},Ct=t=>{var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?`_${t}`:t};function Tt(t,e,r,n,a,o,i,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=a,this.getActualType=o,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Et=(t,e,r)=>{for(;e!==r;)e.upcast||it(`Expected null or instance of ${r.name}, got an instance of ${e.name}`),t=e.upcast(t),e=e.baseClass;return t},Pt=t=>{if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t};function _t(t,e){if(null===e)return this.isReference&&it(`null is not a valid ${this.name}`),0;e.$$||it(`Cannot pass "${Pt(e)}" as a ${this.name}`),e.$$.ptr||it(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=e.$$.ptrType.registeredClass;return Et(e.$$.ptr,r,this.registeredClass)}function At(t,e){var r;if(null===e)return this.isReference&&it(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;(!e||!e.$$)&&it(`Cannot pass "${Pt(e)}" as a ${this.name}`),e.$$.ptr||it(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&it(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(r=Et(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&it("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:it(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var a=e.clone();r=this.rawShare(r,me.toHandle(()=>a.delete())),null!==t&&t.push(this.rawDestructor,r)}break;default:it("Unsupported sharing policy")}return r}function Ot(t,e){if(null===e)return this.isReference&&it(`null is not a valid ${this.name}`),0;e.$$||it(`Cannot pass "${Pt(e)}" as a ${this.name}`),e.$$.ptr||it(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&it(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var r=e.$$.ptrType.registeredClass;return Et(e.$$.ptr,r,this.registeredClass)}var St=(t,e,r)=>{if(e===r)return t;if(void 0===r.baseClass)return null;var n=St(t,e,r.baseClass);return null===n?null:r.downcast(n)},xt={},It=(t,e)=>{for(void 0===e&&it("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e},Rt=(t,e)=>(e=It(t,e),xt[e]),Dt=(t,e)=>((!e.ptrType||!e.ptr)&&rt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&rt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},yt(Object.create(t,{$$:{value:e,writable:!0}})));function Ft(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Rt(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function a(){return this.isSmartPointer?Dt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Dt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=wt[this.registeredClass.getActualType(e)];if(!o)return a.call(this);var i=this.isConst?o.constPointerType:o.pointerType,s=St(e,this.registeredClass,i.registeredClass);return null===s?a.call(this):this.isSmartPointer?Dt(i.registeredClass.instancePrototype,{ptrType:i,ptr:s,smartPtrType:this,smartPtr:t}):Dt(i.registeredClass.instancePrototype,{ptrType:i,ptr:s})}function Mt(t,e,r,n,a,o,i,s,l,u,c){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=u,this.rawDestructor=c,a||void 0!==e.baseClass?this.toWireType=At:n?(this.toWireType=_t,this.destructorFunction=null):(this.toWireType=Ot,this.destructorFunction=null)}var jt=(t,e,r)=>{a.hasOwnProperty(t)||rt("Replacing nonexistent public symbol"),void 0!==a[t].overloadTable&&void 0!==r?a[t].overloadTable[r]=e:(a[t]=e,a[t].argCount=r)},Bt={},kt=(t,e,r)=>(t=t.replace(/p/g,"i"),(0,Bt[t])(e,...r)),Ut=[],Wt=t=>{var e=Ut[t];return e||(Ut[t]=e=de.get(t)),e},Lt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.includes("j"))return kt(t,e,r);return Wt(e)(...r)},Vt=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){return Lt(t,e,[...arguments],r)}},zt=function(t,e){var r=(t=at(t)).includes("j")?Vt(t,e):Wt(e);return"function"!=typeof r&&it(`unknown function pointer with signature ${t}: ${e}`),r};class Gt extends Error{}var Nt=t=>{var e=Jt(t),r=at(e);return Yt(e),r},Ht=(t,e)=>{var r=[],n={};throw e.forEach(function t(e){if(!n[e]&&!K[e]){if(tt[e])return void tt[e].forEach(t);r.push(e),n[e]=!0}}),new Gt(`${t}: `+r.map(Nt).join([", "]))},Qt=(t,e)=>{for(var r=[],n=0;n<t;n++)r.push(F[e+4*n>>2]);return r};function qt(t){for(var e=1;e<t.length;++e)if(null!==t[e]&&void 0===t[e].destructorFunction)return!0;return!1}function Xt(t,e,r,n,a,o){var i=e.length;i<2&&it("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==e[1]&&null!==r,l=qt(e),u=!e[0].isVoid,c=i-2,d=Array(c),f=[],h=[];return gt(t,function(){var t;h.length=0,f.length=s?2:1,f[0]=a,s&&(t=e[1].toWireType(h,this),f[1]=t);for(var r=0;r<c;++r)d[r]=e[r+2].toWireType(h,r<0||arguments.length<=r?void 0:arguments[r]),f.push(d[r]);return(function(r){if(l)J(h);else for(var n=s?1:2;n<e.length;n++){var a=1===n?t:d[n-2];null!==e[n].destructorFunction&&e[n].destructorFunction(a)}if(u)return e[0].fromWireType(r)})(n(...f))})}var Jt,Yt,Zt,Kt,te,ee,re,ne,ae,oe,ie,se,le,ue,ce,de,fe=t=>{let e=(t=t.trim()).indexOf("(");return-1===e?t:t.slice(0,e)},he=[],pe=[0,1,,1,null,1,!0,1,!1,1],ye=t=>{t>9&&0===--pe[t+1]&&(pe[t]=void 0,he.push(t))},me={toValue:t=>(t||it(`Cannot use deleted val. handle = ${t}`),pe[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let e=he.pop()||pe.length;return pe[e]=t,pe[e+1]=1,e}}}},ve={name:"emscripten::val",fromWireType:t=>{var e=me.toValue(t);return ye(t),e},toWireType:(t,e)=>me.toHandle(e),readValueFromPointer:Y,destructorFunction:null},ge=(t,e)=>{switch(e){case 4:return function(t){return this.fromWireType(I[t>>2])};case 8:return function(t){return this.fromWireType(R[t>>3])};default:throw TypeError(`invalid float width (${e}): ${t}`)}},we=(t,e,r)=>{switch(e){case 1:return r?t=>x[t]:t=>M[t];case 2:return r?t=>O[t>>1]:t=>D[t>>1];case 4:return r?t=>S[t>>2]:t=>F[t>>2];default:throw TypeError(`invalid integer width (${e}): ${t}`)}},be=(t,e,r)=>{let n=(t,e)=>{let r=0;return{next(){if(r>=t)return{done:!0};let n=r;return r++,{value:e(n),done:!1}},[Symbol.iterator](){return this}}};t[Symbol.iterator]||(t[Symbol.iterator]=function(){let t=this[e]();return n(t,t=>this[r](t))})},$e=Object.assign({optional:!0},ve),Ce=(t,e,r,n)=>{if(!(n>0))return 0;for(var a=r,o=r+n-1,i=0;i<t.length;++i){var s=t.codePointAt(i);if(s<=127){if(r>=o)break;e[r++]=s}else if(s<=2047){if(r+1>=o)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=o)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s,i++}}return e[r]=0,r-a},Te=(t,e,r)=>Ce(t,M,e,r),Ee=t=>{for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e},Pe=globalThis.TextDecoder&&new TextDecoder,_e=(t,e,r,n)=>{var a=e+r;if(n)return a;for(;t[e]&&!(e>=a);)++e;return e},Ae=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var r=_e(t,e,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0);if(r-e>16&&t.buffer&&Pe)return Pe.decode(t.subarray(e,r));for(var n="";e<r;){var a=t[e++];if(128&a){var o=63&t[e++];if(192!=(224&a)){var i=63&t[e++];if((a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&t[e++])<65536)n+=String.fromCharCode(a);else{var s=a-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else n+=String.fromCharCode((31&a)<<6|o)}else n+=String.fromCharCode(a)}return n},Oe=(t,e,r)=>t?Ae(M,t,e,r):"",Se=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,xe=(t,e,r)=>{var n=t>>1,a=_e(D,n,e/2,r);if(a-n>16&&Se)return Se.decode(D.subarray(n,a));for(var o="",i=n;i<a;++i){var s=D[i];o+=String.fromCharCode(s)}return o},Ie=(t,e,r)=>{if(null!=r||(r=2147483647),r<2)return 0;for(var n=e,a=(r-=2)<2*t.length?r/2:t.length,o=0;o<a;++o){var i=t.charCodeAt(o);O[e>>1]=i,e+=2}return O[e>>1]=0,e-n},Re=t=>2*t.length,De=(t,e,r)=>{for(var n="",a=t>>2,o=0;!(o>=e/4);o++){var i=F[a+o];if(!i&&!r)break;n+=String.fromCodePoint(i)}return n},Fe=(t,e,r)=>{if(null!=r||(r=2147483647),r<4)return 0;for(var n=e,a=n+r-4,o=0;o<t.length;++o){var i=t.codePointAt(o);if(i>65535&&o++,S[e>>2]=i,(e+=4)+4>a)break}return S[e>>2]=0,e-n},Me=t=>{for(var e=0,r=0;r<t.length;++r)t.codePointAt(r)>65535&&r++,e+=4;return e},je=[],Be=t=>{var e=je.length;return je.push(t),e},ke=(t,e)=>{var r=K[t];return void 0===r&&it(`${e} has unknown type ${Nt(t)}`),r},Ue=(t,e)=>{for(var r=Array(t),n=0;n<t;++n)r[n]=ke(F[e+4*n>>2],`parameter ${n}`);return r},We=(t,e,r)=>{var n=[],a=t(n,r);return n.length&&(F[e>>2]=me.toHandle(n)),a},Le={},Ve=t=>{var e=Le[t];return void 0===e?at(t):e},ze=(t,e)=>Math.ceil(t/e)*e,Ge=t=>{var e=(t-ce.buffer.byteLength+65535)/65536|0;try{return ce.grow(e),b(),1}catch{}},Ne={},He=()=>{if(!He.strings){var t,e,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(null==(t=null==(e=globalThis.navigator)?void 0:e.language)?"C":t).replace("-","_")+".UTF-8",_:c||"./this.program"};for(var n in Ne)void 0===Ne[n]?delete r[n]:r[n]=Ne[n];var a=[];for(var n in r)a.push(`${n}=${r[n]}`);He.strings=a}return He.strings};if((()=>{let t=vt.prototype;Object.assign(t,{isAliasOf(t){if(!(this instanceof vt&&t instanceof vt))return!1;var e=this.$$.ptrType.registeredClass,r=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,a=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&r===a},clone(){if(this.$$.ptr||ct(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=yt(Object.create(Object.getPrototypeOf(this),{$$:{value:ut(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||ct(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&it("Object already scheduled for deletion"),ft(this),pt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||ct(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&it("Object already scheduled for deletion"),mt.push(this),mt.length,this.$$.deleteScheduled=!0,this}});let e=Symbol.dispose;e&&(t[e]=t.delete)})(),Object.assign(Mt.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var e;null==(e=this.rawDestructor)||e.call(this,t)},readValueFromPointer:Y,fromWireType:Ft}),a.noExitRuntime&&a.noExitRuntime,a.print&&a.print,a.printErr&&(v=a.printErr),a.wasmBinary&&(h=a.wasmBinary),a.arguments&&a.arguments,a.thisProgram&&(c=a.thisProgram),a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.shift()();function Qe(t){Jt=t.Aa,Yt=a._free=t.Ba,Zt=a._malloc=t.Da,Kt=t.Ea,te=t.Fa,ee=t.Ga,re=t.Ha,ne=t.Ia,ae=t.Ja,oe=t.Ka,ie=t.La,Bt.viijii=t.Ma,se=Bt.viijjijjjjjj=t.Na,le=Bt.iiijj=t.Oa,ue=Bt.jiiii=t.Pa,Bt.iiiiij=t.Qa,Bt.iiiiijj=t.Ra,Bt.iiiiiijj=t.Sa,ce=t.ya,de=t.Ca}var qe={q:t=>{var e=new H(t);return e.get_caught()||(e.set_caught(!0),G--),e.set_rethrown(!1),z.push(e),Kt(t)},x:()=>{te(0,0);var t=z.pop();ae(t.excPtr),N=0},a:()=>q([]),i:t=>q([t]),m:(t,e)=>q([t,e]),S:()=>{var t=z.pop();t||T("no exception to throw");var e=t.excPtr;throw t.get_rethrown()||(z.push(t),t.set_rethrown(!0),t.set_caught(!1),G++),oe(e),N=e},p:(t,e,r)=>{throw new H(t).init(e,r),oe(t),G++,N=t},fa:()=>G,d:t=>{throw N||(N=t),N},ba:()=>T(""),va:t=>{var e=X[t];delete X[t];var r=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(t=>t.getterReturnType).concat(a.map(t=>t.setterArgumentType));nt([t],o,t=>{var o={};{let e=a;for(let r=0;r<e.length;++r){let n=e[r],i=t[r],s=n.getter,l=n.getterContext,u=t[r+a.length],c=n.setter,d=n.setterContext;o[n.fieldName]={read:t=>i.fromWireType(s(l,t)),write:(t,e)=>{var r=[];c(d,t,u.toWireType(r,e)),J(r)},optional:i.optional}}}return[{name:e.name,fromWireType:t=>{var e={};for(var r in o)e[r]=o[r].read(t);return n(t),e},toWireType:(t,e)=>{for(var a in o)if(!(a in e)&&!o[a].optional)throw TypeError(`Missing field: "${a}"`);var i=r();for(a in o)o[a].write(i,e[a]);return null!==t&&t.push(n,i),i},readValueFromPointer:Y,destructorFunction:n}]})},aa:(t,e,r,n,a)=>{},pa:(t,e,r,n)=>{lt(t,{name:e=at(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:n},readValueFromPointer:function(t){return this.fromWireType(M[t])},destructorFunction:null})},ta:(t,e,r,n,a,o,i,s,l,u,c,d,f)=>{c=at(c),o=zt(a,o),s&&(s=zt(i,s)),u&&(u=zt(l,u)),f=zt(d,f);var h=Ct(c);$t(h,function(){Ht(`Cannot construct ${c} due to unbound types`,[n])}),nt([t,e,r],n?[n]:[],e=>{var r,a;e=e[0],n?a=(r=e.registeredClass).instancePrototype:a=vt.prototype;var i=gt(c,function(){if(Object.getPrototypeOf(this)!==l)throw new ot(`Use 'new' to construct ${c}`);if(void 0===p.constructor_body)throw new ot(`${c} has no accessible constructor`);var t=[...arguments],e=p.constructor_body[t.length];if(void 0===e)throw new ot(`Tried to invoke ctor of ${c} with invalid number of parameters (${t.length}) - expected (${Object.keys(p.constructor_body).toString()}) parameters instead!`);return e.apply(this,t)}),l=Object.create(a,{constructor:{value:i}});i.prototype=l;var d,p=new Tt(c,i,l,f,r,o,s,u);p.baseClass&&(null!=(d=p.baseClass).__derivedClasses||(d.__derivedClasses=[]),p.baseClass.__derivedClasses.push(p));var y=new Mt(c,p,!0,!1,!1),m=new Mt(c+"*",p,!1,!1,!1),v=new Mt(c+" const*",p,!1,!0,!1);return wt[t]={pointerType:m,constPointerType:v},jt(h,i),[y,m,v]})},sa:(t,e,r,n,a,o)=>{var i=Qt(e,r);a=zt(n,a),nt([],[t],t=>{var r=`constructor ${(t=t[0]).name}`;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new ot(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${t.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return t.registeredClass.constructor_body[e-1]=()=>{Ht(`Cannot construct ${t.name} due to unbound types`,i)},nt([],i,n=>(n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=Xt(r,n,null,a,o),[])),[]})},H:(t,e,r,n,a,o,i,s,l,u)=>{var c=Qt(r,n);e=at(e),e=fe(e),o=zt(a,o,l),nt([],[t],t=>{var n=`${(t=t[0]).name}.${e}`;function a(){Ht(`Cannot call ${n} due to unbound types`,c)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var l=t.registeredClass.instancePrototype,u=l[e];return void 0===u||void 0===u.overloadTable&&u.className!==t.name&&u.argCount===r-2?(a.argCount=r-2,a.className=t.name,l[e]=a):(bt(l,e,n),l[e].overloadTable[r-2]=a),nt([],c,a=>{var s=Xt(n,a,t,o,i);return void 0===l[e].overloadTable?(s.argCount=r-2,l[e]=s):l[e].overloadTable[r-2]=s,[]}),[]})},na:t=>lt(t,ve),X:(t,e,r)=>{lt(t,{name:e=at(e),fromWireType:t=>t,toWireType:(t,e)=>e,readValueFromPointer:ge(e,r),destructorFunction:null})},Y:(t,e,r,n,a,o,i,s)=>{var l=Qt(e,r);t=at(t),t=fe(t),a=zt(n,a,i),$t(t,function(){Ht(`Cannot call ${t} due to unbound types`,l)},e-1),nt([],l,r=>{var n=[r[0],null].concat(r.slice(1));return jt(t,Xt(t,n,null,a,o),e-1),[]})},A:(t,e,r,n,a)=>{e=at(e);let o=t=>t;if(0===n){var i=32-8*r;o=t=>t<<i>>>i,a=o(a)}lt(t,{name:e,fromWireType:o,toWireType:(t,e)=>e,readValueFromPointer:we(e,r,0!==n),destructorFunction:null})},ra:(t,e,r,n)=>{r=at(r),n=at(n),nt([],[t,e],t=>{let e=t[0];return be(e.registeredClass.instancePrototype,r,n),[]})},u:(t,e,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(t){var e=F[t>>2],r=F[t+4>>2];return new n(x.buffer,r,e)}lt(t,{name:r=at(r),fromWireType:a,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},ua:(t,e)=>{lt(t,$e)},oa:(t,e)=>{lt(t,{name:e=at(e),fromWireType(t){var e,r=F[t>>2];return e=Oe(t+4,r,!0),Yt(t),e},toWireType(t,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var r,n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||it("Cannot pass non-string to std::string"),r=n?Ee(e):e.length;var a=Zt(4+r+1),o=a+4;return F[a>>2]=r,n?Te(e,o,r+1):M.set(e,o),null!==t&&t.push(Yt,a),a},readValueFromPointer:Y,destructorFunction(t){Yt(t)}})},T:(t,e,r)=>{var n,a,o;r=at(r),2===e?(n=xe,a=Ie,o=Re):(n=De,a=Fe,o=Me),lt(t,{name:r,fromWireType:t=>{var r=F[t>>2],a=n(t+4,r*e,!0);return Yt(t),a},toWireType:(t,n)=>{"string"!=typeof n&&it(`Cannot pass non-string to C++ string type ${r}`);var i=o(n),s=Zt(4+i+e);return F[s>>2]=i/e,a(n,s+4,i+e),null!==t&&t.push(Yt,s),s},readValueFromPointer:Y,destructorFunction(t){Yt(t)}})},I:(t,e,r,n,a,o)=>{X[t]={name:at(e),rawConstructor:zt(r,n),rawDestructor:zt(a,o),fields:[]}},wa:(t,e,r,n,a,o,i,s,l,u)=>{X[t].fields.push({fieldName:at(e),getterReturnType:r,getter:zt(n,a),getterContext:o,setterArgumentType:i,setter:zt(s,l),setterContext:u})},qa:(t,e)=>{lt(t,{isVoid:!0,name:e=at(e),fromWireType:()=>{},toWireType:(t,e)=>{}})},O:(t,e,r)=>{var[n,...a]=Ue(t,e),o=n.toWireType.bind(n),i=a.map(t=>t.readValueFromPointer.bind(t));t--;var s=Array(t);return Be(gt(`methodCaller<(${a.map(t=>t.name)}) => ${n.name}>`,(e,n,a,l)=>{for(var u=0,c=0;c<t;++c)s[c]=i[c](l+u),u+=8;var d;switch(r){case 0:d=me.toValue(e).apply(null,s);break;case 2:d=Reflect.construct(me.toValue(e),s);break;case 3:d=s[0];break;case 1:d=me.toValue(e)[Ve(n)](...s)}return We(o,a,d)}))},xa:ye,F:t=>t?(t=Ve(t),me.toHandle(globalThis[t])):me.toHandle(globalThis),U:t=>{t>9&&(pe[t+1]+=1)},N:(t,e,r,n,a)=>je[t](e,r,n,a),ia:t=>{J(me.toValue(t)),ye(t)},ca:(t,e,r,n)=>{var a=(new Date).getFullYear(),o=new Date(a,0,1),i=new Date(a,6,1),s=o.getTimezoneOffset(),l=i.getTimezoneOffset(),u=Math.max(s,l);F[t>>2]=60*u,S[e>>2]=Number(s!=l);var c=t=>{var e=t>=0?"-":"+",r=Math.abs(t);return`UTC${e}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`},d=c(s),f=c(l);l<s?(Te(d,r,17),Te(f,n,17)):(Te(d,n,17),Te(f,r,17))},ga:t=>{var e=M.length,r=2147483648;if((t>>>=0)>r)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);if(a=Math.min(a,t+100663296),Ge(Math.min(r,ze(Math.max(t,a),65536))))return!0}return!1},da:(t,e)=>{var r=0,n=0;for(var a of He()){var o=e+r;F[t+n>>2]=o,r+=Te(a,o,1/0)+1,n+=4}return 0},ea:(t,e)=>{var r=He();F[t>>2]=r.length;var n=0;for(var a of r)n+=Ee(a)+1;return F[e>>2]=n,0},la:function(t,e,r){var n=V();try{return Wt(t)(e,r)}catch(t){if(L(n),t!==t+0)throw t;te(1,0)}},M:function(t,e,r,n){var a=V();try{return Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},B:function(t,e,r,n,a,o){var i=V();try{return Wt(t)(e,r,n,a,o)}catch(t){if(L(i),t!==t+0)throw t;te(1,0)}},P:function(t,e,r,n,a,o){var i=V();try{return Wt(t)(e,r,n,a,o)}catch(t){if(L(i),t!==t+0)throw t;te(1,0)}},V:function(t,e,r,n){var a=V();try{return Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},s:function(t){var e=V();try{return Wt(t)()}catch(t){if(L(e),t!==t+0)throw t;te(1,0)}},b:function(t,e){var r=V();try{return Wt(t)(e)}catch(t){if(L(r),t!==t+0)throw t;te(1,0)}},C:function(t,e,r,n){var a=V();try{return Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},ja:function(t,e,r){var n=V();try{return Wt(t)(e,r)}catch(t){if(L(n),t!==t+0)throw t;te(1,0)}},c:function(t,e,r){var n=V();try{return Wt(t)(e,r)}catch(t){if(L(n),t!==t+0)throw t;te(1,0)}},Q:function(t,e,r,n,a){var o=V();try{return Wt(t)(e,r,n,a)}catch(t){if(L(o),t!==t+0)throw t;te(1,0)}},h:function(t,e,r,n){var a=V();try{return Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},j:function(t,e,r,n,a){var o=V();try{return Wt(t)(e,r,n,a)}catch(t){if(L(o),t!==t+0)throw t;te(1,0)}},r:function(t,e,r,n,a,o){var i=V();try{return Wt(t)(e,r,n,a,o)}catch(t){if(L(i),t!==t+0)throw t;te(1,0)}},R:function(t,e,r,n,a,o,i){var s=V();try{return Wt(t)(e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},t:function(t,e,r,n,a,o,i){var s=V();try{return Wt(t)(e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},G:function(t,e,r,n,a,o,i,s){var l=V();try{return Wt(t)(e,r,n,a,o,i,s)}catch(t){if(L(l),t!==t+0)throw t;te(1,0)}},D:function(t,e,r,n,a,o,i,s,l){var u=V();try{return Wt(t)(e,r,n,a,o,i,s,l)}catch(t){if(L(u),t!==t+0)throw t;te(1,0)}},K:function(t,e,r,n,a,o,i,s,l,u,c,d){var f=V();try{return Wt(t)(e,r,n,a,o,i,s,l,u,c,d)}catch(t){if(L(f),t!==t+0)throw t;te(1,0)}},_:function(t,e,r,n,a,o,i){var s=V();try{return le(t,e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},Z:function(t,e,r,n,a){var o=V();try{return ue(t,e,r,n,a)}catch(t){if(L(o),t!==t+0)throw t;te(1,0)}},f:function(t){var e=V();try{Wt(t)()}catch(t){if(L(e),t!==t+0)throw t;te(1,0)}},l:function(t,e){var r=V();try{Wt(t)(e)}catch(t){if(L(r),t!==t+0)throw t;te(1,0)}},ha:function(t,e,r){var n=V();try{Wt(t)(e,r)}catch(t){if(L(n),t!==t+0)throw t;te(1,0)}},e:function(t,e,r){var n=V();try{Wt(t)(e,r)}catch(t){if(L(n),t!==t+0)throw t;te(1,0)}},W:function(t,e,r,n,a,o,i,s,l){var u=V();try{Wt(t)(e,r,n,a,o,i,s,l)}catch(t){if(L(u),t!==t+0)throw t;te(1,0)}},g:function(t,e,r,n){var a=V();try{Wt(t)(e,r,n)}catch(t){if(L(a),t!==t+0)throw t;te(1,0)}},L:function(t,e,r,n,a,o,i){var s=V();try{Wt(t)(e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},k:function(t,e,r,n,a){var o=V();try{Wt(t)(e,r,n,a)}catch(t){if(L(o),t!==t+0)throw t;te(1,0)}},ka:function(t,e,r,n,a,o,i,s){var l=V();try{Wt(t)(e,r,n,a,o,i,s)}catch(t){if(L(l),t!==t+0)throw t;te(1,0)}},o:function(t,e,r,n,a,o){var i=V();try{Wt(t)(e,r,n,a,o)}catch(t){if(L(i),t!==t+0)throw t;te(1,0)}},y:function(t,e,r,n,a,o,i){var s=V();try{Wt(t)(e,r,n,a,o,i)}catch(t){if(L(s),t!==t+0)throw t;te(1,0)}},v:function(t,e,r,n,a,o,i,s){var l=V();try{Wt(t)(e,r,n,a,o,i,s)}catch(t){if(L(l),t!==t+0)throw t;te(1,0)}},E:function(t,e,r,n,a,o,i,s,l){var u=V();try{Wt(t)(e,r,n,a,o,i,s,l)}catch(t){if(L(u),t!==t+0)throw t;te(1,0)}},w:function(t,e,r,n,a,o,i,s,l,u){var c=V();try{Wt(t)(e,r,n,a,o,i,s,l,u)}catch(t){if(L(c),t!==t+0)throw t;te(1,0)}},n:function(t,e,r,n,a,o,i,s,l,u,c){var d=V();try{Wt(t)(e,r,n,a,o,i,s,l,u,c)}catch(t){if(L(d),t!==t+0)throw t;te(1,0)}},J:function(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,y){var m=V();try{Wt(t)(e,r,n,a,o,i,s,l,u,c,d,f,h,p,y)}catch(t){if(L(m),t!==t+0)throw t;te(1,0)}},ma:function(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,y,m){var v=V();try{Wt(t)(e,r,n,a,o,i,s,l,u,c,d,f,h,p,y,m)}catch(t){if(L(v),t!==t+0)throw t;te(1,0)}},$:function(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,y,m,v,g,w){var b=V();try{se(t,e,r,n,a,o,i,s,l,u,c,d,f,h,p,y,m,v,g,w)}catch(t){if(L(b),t!==t+0)throw t;te(1,0)}},z:t=>t};var Xe=await(async function(){function t(t,e){return Qe(Xe=t.exports),b(),Xe}var e={a:qe};return a.instantiateWasm?new Promise((r,n)=>{a.instantiateWasm(e,(e,n)=>{r(t(e))})}):(null!=m||(m=f("zxing_reader.wasm")),(function(e){return t(e.instance)})(await A(h,m,e)))})();return(function(){function t(){var t,e;a.calledRun=!0,!g&&(w=!0,Xe.za(),null==(t=p)||t(a),null==(e=a.onRuntimeInitialized)||e.call(a),C())}$(),a.setStatus?(a.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>a.setStatus(""),1),t()},1)):t()})(),e=w?a:new Promise((t,e)=>{p=t,y=e}),e}function A(t){return C(_,t)}function O(){return T(_)}function S(t){A({overrides:t,equalityFn:Object.is,fireImmediately:!1})}async function x(t,e){return P(_,t,e)}var I="2ebda08a93eea3efcd8399cda6b276e6a0b1de4fec60b4d8988a047de4c6d1ba",R=[["aztec","Aztec"],["aztec_code","AztecCode"],["aztec_rune","AztecRune"],["code_128","Code128"],["code_39","Code39"],["code_39_standard","Code39Std"],["code_39_extended","Code39Ext"],["code_32","Code32"],["pzn","PZN"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_omni","DataBarOmni"],["databar_stacked","DataBarStk"],["databar_stacked_omni","DataBarStkOmni"],["databar_expanded","DataBarExp"],["databar_expanded_stacked","DataBarExpStk"],["databar_limited","DataBarLtd"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN13"],["ean_upc","EANUPC"],["isbn","ISBN"],["ean_8","EAN8"],["itf","ITF"],["itf_14","ITF14"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["compact_pdf417","CompactPDF417"],["micro_pdf417","MicroPDF417"],["qr_code","QRCode"],["qr_code_model_1","QRCodeModel1"],["qr_code_model_2","QRCodeModel2"],["rm_qr_code","RMQRCode"],["upc_a","UPCA"],["upc_e","UPCE"],["telepen","Telepen"],["telepen_alpha","TelepenAlpha"],["telepen_numeric","TelepenNumeric"],["other_barcode","OtherBarcode"],["linear_codes","AllLinear"],["matrix_codes","AllMatrix"],["gs1_codes","AllGS1"],["retail_codes","AllRetail"],["industrial_codes","AllIndustrial"],["any","All"]],D=[...R,["unknown"]].map(t=>t[0]),F=new Map(R);function M(t){for(let[e,r]of F)if(t===r)return e;return"unknown"}function j(t){if(B(t))return{width:t.naturalWidth,height:t.naturalHeight};if(k(t))return{width:t.width.baseVal.value,height:t.height.baseVal.value};if(U(t))return{width:t.videoWidth,height:t.videoHeight};if(L(t))return{width:t.width,height:t.height};if(z(t))return{width:t.displayWidth,height:t.displayHeight};if(W(t)||V(t))return{width:t.width,height:t.height};throw TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function B(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLImageElement)}catch{return!1}}function k(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.SVGImageElement)}catch{return!1}}function U(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLVideoElement)}catch{return!1}}function W(t){try{var e;return t instanceof(null==t||null==(e=t.ownerDocument)||null==(e=e.defaultView)?void 0:e.HTMLCanvasElement)}catch{return!1}}function L(t){try{return t instanceof ImageBitmap||"[object ImageBitmap]"===Object.prototype.toString.call(t)}catch{return!1}}function V(t){try{return t instanceof OffscreenCanvas||"[object OffscreenCanvas]"===Object.prototype.toString.call(t)}catch{return!1}}function z(t){try{return t instanceof VideoFrame||"[object VideoFrame]"===Object.prototype.toString.call(t)}catch{return!1}}function G(t){try{return t instanceof Blob||"[object Blob]"===Object.prototype.toString.call(t)}catch{return!1}}function N(t){try{return t instanceof ImageData||"[object ImageData]"===Object.prototype.toString.call(t)}catch{return!1}}function H(t,e){try{let r=new OffscreenCanvas(t,e);if(r.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return r;throw void 0}catch{let r=document.createElement("canvas");return r.width=t,r.height=e,r}}async function Q(t){if(B(t)&&!await Y(t))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(k(t)&&!await Z(t))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(z(t)&&K(t))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(U(t)&&(0===t.readyState||1===t.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(L(t)&&et(t))throw new DOMException("The image source is detached.","InvalidStateError");let{width:e,height:r}=j(t);if(0===e||0===r)return null;let n=H(e,r).getContext("2d");n.drawImage(t,0,0);try{return n.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function q(t){let e;try{e=await createImageBitmap(t)}catch{try{if(!globalThis.Image)return t;{e=new Image;let r="";try{r=URL.createObjectURL(t),e.src=r,await e.decode()}finally{URL.revokeObjectURL(r)}}}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}}return await Q(e)}function X(t){let{width:e,height:r}=t;if(0===e||0===r)return null;let n=t.getContext("2d");try{return n.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function J(t){if(G(t))return await q(t);if(N(t)){if(tt(t))throw new DOMException("The image data has been detached.","InvalidStateError");return t}return W(t)||V(t)?X(t):await Q(t)}async function Y(t){try{return await t.decode(),!0}catch{return!1}}async function Z(t){try{var e;return await(null==(e=t.decode)?void 0:e.call(t)),!0}catch{return!1}}function K(t){return null===t.format}function tt(t){return 0===t.data.buffer.byteLength}function et(t){return 0===t.width&&0===t.height}function rt(t,e){return nt(t)?new DOMException(`${e}: ${t.message}`,t.name):at(t)?new t.constructor(`${e}: ${t.message}`):Error(`${e}: ${t}`)}function nt(t){return t instanceof DOMException||"[object DOMException]"===Object.prototype.toString.call(t)}function at(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}function ot(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}function it(t,e,r){ot(t,e),e.set(t,r)}function st(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw TypeError("Private element is not present on this object")}function lt(t,e,r){return t.set(st(t,e),r),r}function ut(t,e){return t.get(st(t,e))}var ct=new WeakMap,dt=class{constructor(t={}){it(this,ct,void 0);try{var e;let r=null==t||null==(e=t.formats)?void 0:e.filter(t=>"unknown"!==t);if(0===(null==r?void 0:r.length))throw TypeError("Hint option provided, but is empty.");for(let t of null==r?[]:r)if(!F.has(t))throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${t}' is not a valid enum value of type BarcodeFormat.`);lt(ct,this,null==r?[]:r),A({fireImmediately:!0}).catch(()=>{})}catch(t){throw rt(t,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return D.filter(t=>"unknown"!==t)}async detect(t){try{let e=await J(t);if(null===e)return[];let r,n={textMode:"Plain",formats:ut(ct,this).map(t=>F.get(t))};try{r=await x(e,n)}catch(t){throw console.error(t),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return r.map(t=>{let{topLeft:{x:e,y:r},topRight:{x:n,y:a},bottomLeft:{x:o,y:i},bottomRight:{x:s,y:l}}=t.position,u=Math.min(e,n,o,s),c=Math.min(r,a,i,l),d=Math.max(e,n,o,s),f=Math.max(r,a,i,l);return{boundingBox:new DOMRectReadOnly(u,c,d-u,f-c),rawValue:t.text,format:M(t.format),cornerPoints:[{x:e,y:r},{x:n,y:a},{x:s,y:l},{x:o,y:i}]}})}catch(t){throw rt(t,"Failed to execute 'detect' on 'BarcodeDetector'")}}}},1501,[]);
|
|
3
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ZXING_CPP_COMMIT",{enumerable:!0,get:function(){return n.s}}),Object.defineProperty(e,"ZXING_WASM_SHA256",{enumerable:!0,get:function(){return n.r}}),Object.defineProperty(e,"ZXING_WASM_VERSION",{enumerable:!0,get:function(){return n.o}}),Object.defineProperty(e,"prepareZXingModule",{enumerable:!0,get:function(){return n.n}}),Object.defineProperty(e,"purgeZXingModule",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(e,"setZXingModuleOverrides",{enumerable:!0,get:function(){return n.a}});var t,n=r(d[0]);null!=(t=globalThis).BarcodeDetector||(t.BarcodeDetector=n.t)},1502,[1501]);
|
|
4
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"BarcodeDetector",{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(e,"ZXING_CPP_COMMIT",{enumerable:!0,get:function(){return t.s}}),Object.defineProperty(e,"ZXING_WASM_SHA256",{enumerable:!0,get:function(){return t.r}}),Object.defineProperty(e,"ZXING_WASM_VERSION",{enumerable:!0,get:function(){return t.o}}),Object.defineProperty(e,"prepareZXingModule",{enumerable:!0,get:function(){return t.n}}),Object.defineProperty(e,"purgeZXingModule",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(e,"setZXingModuleOverrides",{enumerable:!0,get:function(){return t.a}});var t=r(d[0])},1503,[1501]);
|
|
@@ -30,7 +30,7 @@ __d(function(g,r,i,a,m,e,d){
|
|
|
30
30
|
*/
|
|
31
31
|
"use strict";var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(t,o,f){var l=null;if(void 0!==f&&(l=""+f),void 0!==o.key&&(l=""+o.key),"key"in o)for(var y in f={},o)"key"!==y&&(f[y]=o[y]);else f=o;return o=f.ref,{$$typeof:n,type:t,key:l,ref:void 0!==o?o:null,props:f}}e.Fragment=t,e.jsx=o,e.jsxs=o},11,[]);
|
|
32
32
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ctx",{enumerable:!0,get:function(){return t}});const t=r(d[0])},12,[13]);
|
|
33
|
-
__d(function(g,r,i,a,m,e,d){const t=Object.defineProperties({},{"./(app)/(tabs)/_layout.tsx":{enumerable:!0,get:()=>r(d[1])(d[0],d.paths)},"./(app)/(tabs)/cameras.tsx":{enumerable:!0,get:()=>r(d[1])(d[2],d.paths)},"./(app)/(tabs)/events.tsx":{enumerable:!0,get:()=>r(d[1])(d[3],d.paths)},"./(app)/(tabs)/grids.tsx":{enumerable:!0,get:()=>r(d[1])(d[4],d.paths)},"./(app)/(tabs)/notifications.tsx":{enumerable:!0,get:()=>r(d[1])(d[5],d.paths)},"./(app)/(tabs)/settings.tsx":{enumerable:!0,get:()=>r(d[1])(d[6],d.paths)},"./(app)/_layout.tsx":{enumerable:!0,get:()=>r(d[1])(d[7],d.paths)},"./(app)/artifacts.tsx":{enumerable:!0,get:()=>r(d[1])(d[8],d.paths)},"./(app)/camera/[id].tsx":{enumerable:!0,get:()=>r(d[1])(d[9],d.paths)},"./(app)/exports.tsx":{enumerable:!0,get:()=>r(d[1])(d[10],d.paths)},"./(app)/grid/[id]/edit.tsx":{enumerable:!0,get:()=>r(d[1])(d[11],d.paths)},"./(app)/grid/[id]/index.tsx":{enumerable:!0,get:()=>r(d[1])(d[12],d.paths)},"./(app)/grid/adhoc.tsx":{enumerable:!0,get:()=>r(d[1])(d[13],d.paths)},"./(app)/notifications/rule/[id]/history.tsx":{enumerable:!0,get:()=>r(d[1])(d[14],d.paths)},"./(app)/retrain/[frameId].tsx":{enumerable:!0,get:()=>r(d[1])(d[15],d.paths)},"./(app)/rule/[id]/[section].tsx":{enumerable:!0,get:()=>r(d[1])(d[16],d.paths)},"./(app)/rule/[id]/index.tsx":{enumerable:!0,get:()=>r(d[1])(d[17],d.paths)},"./(app)/rule/new.tsx":{enumerable:!0,get:()=>r(d[1])(d[18],d.paths)},"./(app)/settings/alarm.tsx":{enumerable:!0,get:()=>r(d[1])(d[19],d.paths)},"./(app)/settings/cameras.tsx":{enumerable:!0,get:()=>r(d[1])(d[20],d.paths)},"./(app)/settings/notifications.tsx":{enumerable:!0,get:()=>r(d[1])(d[21],d.paths)},"./(app)/settings/sign-in.tsx":{enumerable:!0,get:()=>r(d[1])(d[22],d.paths)},"./(app)/summary-rule/[id].tsx":{enumerable:!0,get:()=>r(d[1])(d[23],d.paths)},"./(app)/timelapse-rule/[id].tsx":{enumerable:!0,get:()=>r(d[1])(d[24],d.paths)},"./_layout.tsx":{enumerable:!0,get:()=>r(d[1])(d[25],d.paths)},"./add-server.tsx":{enumerable:!0,get:()=>r(d[1])(d[26],d.paths)},"./connect.tsx":{enumerable:!0,get:()=>r(d[1])(d[27],d.paths)},"./enroll.tsx":{enumerable:!0,get:()=>r(d[1])(d[28],d.paths)},"./index.tsx":{enumerable:!0,get:()=>r(d[1])(d[29],d.paths)}});function s(s){return t[s]}s.keys=function(){return Object.keys(t)},s.resolve=function(t){throw new Error('Unimplemented Metro module context functionality')},m.exports=s},13,{"0":747,"1":14,"2":748,"3":749,"4":750,"5":751,"6":752,"7":753,"8":754,"9":755,"10":756,"11":757,"12":758,"13":759,"14":760,"15":761,"16":762,"17":763,"18":764,"19":765,"20":766,"21":767,"22":768,"23":769,"24":770,"25":771,"26":772,"27":773,"28":774,"29":775,"paths":{"747":"/viewer/camstack/_expo/static/js/web/_layout-f9cfa28458c3eb150073b3debd1152d9.js","748":"/viewer/camstack/_expo/static/js/web/cameras-6ac1e22d86a63b28c40313cb892d64bc.js","749":"/viewer/camstack/_expo/static/js/web/events-
|
|
33
|
+
__d(function(g,r,i,a,m,e,d){const t=Object.defineProperties({},{"./(app)/(tabs)/_layout.tsx":{enumerable:!0,get:()=>r(d[1])(d[0],d.paths)},"./(app)/(tabs)/cameras.tsx":{enumerable:!0,get:()=>r(d[1])(d[2],d.paths)},"./(app)/(tabs)/events.tsx":{enumerable:!0,get:()=>r(d[1])(d[3],d.paths)},"./(app)/(tabs)/grids.tsx":{enumerable:!0,get:()=>r(d[1])(d[4],d.paths)},"./(app)/(tabs)/notifications.tsx":{enumerable:!0,get:()=>r(d[1])(d[5],d.paths)},"./(app)/(tabs)/settings.tsx":{enumerable:!0,get:()=>r(d[1])(d[6],d.paths)},"./(app)/_layout.tsx":{enumerable:!0,get:()=>r(d[1])(d[7],d.paths)},"./(app)/artifacts.tsx":{enumerable:!0,get:()=>r(d[1])(d[8],d.paths)},"./(app)/camera/[id].tsx":{enumerable:!0,get:()=>r(d[1])(d[9],d.paths)},"./(app)/exports.tsx":{enumerable:!0,get:()=>r(d[1])(d[10],d.paths)},"./(app)/grid/[id]/edit.tsx":{enumerable:!0,get:()=>r(d[1])(d[11],d.paths)},"./(app)/grid/[id]/index.tsx":{enumerable:!0,get:()=>r(d[1])(d[12],d.paths)},"./(app)/grid/adhoc.tsx":{enumerable:!0,get:()=>r(d[1])(d[13],d.paths)},"./(app)/notifications/rule/[id]/history.tsx":{enumerable:!0,get:()=>r(d[1])(d[14],d.paths)},"./(app)/retrain/[frameId].tsx":{enumerable:!0,get:()=>r(d[1])(d[15],d.paths)},"./(app)/rule/[id]/[section].tsx":{enumerable:!0,get:()=>r(d[1])(d[16],d.paths)},"./(app)/rule/[id]/index.tsx":{enumerable:!0,get:()=>r(d[1])(d[17],d.paths)},"./(app)/rule/new.tsx":{enumerable:!0,get:()=>r(d[1])(d[18],d.paths)},"./(app)/settings/alarm.tsx":{enumerable:!0,get:()=>r(d[1])(d[19],d.paths)},"./(app)/settings/cameras.tsx":{enumerable:!0,get:()=>r(d[1])(d[20],d.paths)},"./(app)/settings/notifications.tsx":{enumerable:!0,get:()=>r(d[1])(d[21],d.paths)},"./(app)/settings/sign-in.tsx":{enumerable:!0,get:()=>r(d[1])(d[22],d.paths)},"./(app)/summary-rule/[id].tsx":{enumerable:!0,get:()=>r(d[1])(d[23],d.paths)},"./(app)/timelapse-rule/[id].tsx":{enumerable:!0,get:()=>r(d[1])(d[24],d.paths)},"./_layout.tsx":{enumerable:!0,get:()=>r(d[1])(d[25],d.paths)},"./add-server.tsx":{enumerable:!0,get:()=>r(d[1])(d[26],d.paths)},"./connect.tsx":{enumerable:!0,get:()=>r(d[1])(d[27],d.paths)},"./enroll.tsx":{enumerable:!0,get:()=>r(d[1])(d[28],d.paths)},"./index.tsx":{enumerable:!0,get:()=>r(d[1])(d[29],d.paths)}});function s(s){return t[s]}s.keys=function(){return Object.keys(t)},s.resolve=function(t){throw new Error('Unimplemented Metro module context functionality')},m.exports=s},13,{"0":747,"1":14,"2":748,"3":749,"4":750,"5":751,"6":752,"7":753,"8":754,"9":755,"10":756,"11":757,"12":758,"13":759,"14":760,"15":761,"16":762,"17":763,"18":764,"19":765,"20":766,"21":767,"22":768,"23":769,"24":770,"25":771,"26":772,"27":773,"28":774,"29":775,"paths":{"747":"/viewer/camstack/_expo/static/js/web/_layout-f9cfa28458c3eb150073b3debd1152d9.js","748":"/viewer/camstack/_expo/static/js/web/cameras-6ac1e22d86a63b28c40313cb892d64bc.js","749":"/viewer/camstack/_expo/static/js/web/events-70ac02a5c7289b2a7bd40af946d7885d.js","750":"/viewer/camstack/_expo/static/js/web/grids-3d66668a7891835ce27163a947fd88fa.js","751":"/viewer/camstack/_expo/static/js/web/notifications-5c490e497f16c075df4e50241f16ada1.js","752":"/viewer/camstack/_expo/static/js/web/settings-e4a34c438fbd3373330bb50086f7917a.js","753":"/viewer/camstack/_expo/static/js/web/_layout-9e4496f9d7fa521f793e71ed45303eda.js","754":"/viewer/camstack/_expo/static/js/web/artifacts-17fec6c83b86b5f833f643901b078159.js","755":"/viewer/camstack/_expo/static/js/web/[id]-453e47e2b7b5b838bbba33b9353b266d.js","756":"/viewer/camstack/_expo/static/js/web/exports-b02c4e927ac2a8ec5f3c46cc6e8f9787.js","757":"/viewer/camstack/_expo/static/js/web/edit-19fbe9e76a764a064d009a2bc981a039.js","758":"/viewer/camstack/_expo/static/js/web/index-8e9962aec93e5db2b41e75295bcf6e1c.js","759":"/viewer/camstack/_expo/static/js/web/adhoc-492167e328b1482dc886717e41b48ff8.js","760":"/viewer/camstack/_expo/static/js/web/history-bf2cbd46d0836dc03ecebec9da7a110f.js","761":"/viewer/camstack/_expo/static/js/web/[frameId]-d7db777f83b7a563e453c74d7a26c181.js","762":"/viewer/camstack/_expo/static/js/web/[section]-82e1a342a60f16a6529b4845a55d464a.js","763":"/viewer/camstack/_expo/static/js/web/index-2e1e1c4a7ede958043b7f655c450e0bc.js","764":"/viewer/camstack/_expo/static/js/web/new-404a1d47e83e62a5b700b6de49417a92.js","765":"/viewer/camstack/_expo/static/js/web/alarm-6c877b40b2d0c2b023590326993b7914.js","766":"/viewer/camstack/_expo/static/js/web/cameras-662b9f3b0d46020196b7dd78fe6fd04b.js","767":"/viewer/camstack/_expo/static/js/web/notifications-24264634f0acb5e51a0a347521f04ba4.js","768":"/viewer/camstack/_expo/static/js/web/sign-in-ffe70c7d9c4f166b300fbdc0456005ef.js","769":"/viewer/camstack/_expo/static/js/web/[id]-15f8c330d4880acaa4282ade16877f38.js","770":"/viewer/camstack/_expo/static/js/web/[id]-78207e1e873f6bb7b4af68223e73a2e9.js","771":"/viewer/camstack/_expo/static/js/web/_layout-b3e230daedf17f42989e0873275be31a.js","772":"/viewer/camstack/_expo/static/js/web/add-server-7692ab5ce8361ece54ed8c3d9c5a6a85.js","773":"/viewer/camstack/_expo/static/js/web/connect-1e4d9395e5bcf7ba2c3451c3be1a4d34.js","774":"/viewer/camstack/_expo/static/js/web/enroll-3624f0a34b5f2f9cfd5db3c6d4ef7bb6.js","775":"/viewer/camstack/_expo/static/js/web/index-875f53846ebf0d145723d6f54f0d70c0.js"}});
|
|
34
34
|
__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},14,[15]);
|
|
35
35
|
__d(function(g,r,i,a,m,e,d){function n(n,t){const o=globalThis[`${__METRO_GLOBAL_PREFIX__??''}__loadBundleAsync`];if(null!=o){const s=String(n);if(null!=t){const n=t[s];if(null!=n)return o(n)}}}function t(t,o,s){const u=()=>r.importAll(t,s);try{return u()}catch(s){const c=n(t,o);if(null!=c)return c.then(u);throw s}const c=n(t,o);return null!=c?c.then(u):u()}function o(n,o,s){const u=t(n,o,s),c=Promise.resolve(u);return c._result=u,c}o.unstable_importMaybeSync=function(n,o){return t(n,o)},o.prefetch=function(t,o,s){n(t,o)?.then(()=>{},()=>{})},o.unstable_resolve=function(n,t){if(!t)throw new Error('Bundle splitting is required for Web Worker imports');const o=t[n];if(!o)throw new Error('Worker import is missing from split bundle paths: '+o);return o},o.unstable_createWorker=function(n,t){if('undefined'==typeof crossOriginIsolated||!crossOriginIsolated)return new Worker(n,t);try{const s=(o=n,`\n const ASYNC_WORKER_BASE = ${JSON.stringify(o)};\n const IMPORT_SCRIPTS = importScripts;\n const FETCH = fetch;\n const fromBaseURL = (input) => new URL(input, ASYNC_WORKER_BASE).href;\n self.fetch = function(input, init) {\n return FETCH(typeof input === 'string' ? fromBaseURL(input) : input, init);\n };\n self.importScripts = function(...urls) {\n return IMPORT_SCRIPTS.apply(self, urls.map(fromBaseURL));\n };\n importScripts(ASYNC_WORKER_BASE);\n `);return n=URL.createObjectURL(new Blob([s],{type:'text/javascript'})),new Worker(n,t)}finally{URL.revokeObjectURL(n)}var o},m.exports=o},15,[]);
|
|
36
36
|
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},16,[17]);
|
|
@@ -592,7 +592,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{v
|
|
|
592
592
|
__d(function(g,r,i,a,m,e,d){"use strict";var o=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.useColorSchemeChangesIfNeeded=void 0,e.shouldAppendSitemap=s,e.shouldAppendNotFound=c,e.shouldReactToColorSchemeChanges=f,e.getRootStackRouteNames=function(){const o=[u.INTERNAL_SLOT_NAME];c()&&o.push(u.NOT_FOUND_ROUTE_NAME);s()&&o.push(u.SITEMAP_ROUTE_NAME);return o};const t=o(r(d[0])),n=r(d[1]),u=r(d[2]);function s(){const o=t.default.expoConfig?.extra?.router;return!1!==o?.sitemap}function c(){const o=t.default.expoConfig?.extra?.router;return!1!==o?.notFound}function f(){const o=t.default.expoConfig?.extra?.router;return!1!==o?.adaptiveColors}e.useColorSchemeChangesIfNeeded=f()?n.useColorScheme:function(){}},516,[517,19,279]);
|
|
593
593
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"AppOwnership",{enumerable:!0,get:function(){return u.AppOwnership}}),Object.defineProperty(_e,"ExecutionEnvironment",{enumerable:!0,get:function(){return u.ExecutionEnvironment}}),Object.defineProperty(_e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return u.UserInterfaceIdiom}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var n=r(d[0]);r(d[1]);var t=e(r(d[2])),u=r(d[3]),l=e(r(d[4]));l.default||console.warn("No native ExponentConstants module found, are you sure the expo-constants's module is linked properly?");const o=(0,n.requireOptionalNativeModule)('ExpoUpdates');let s=null;if(o){let e;o.manifest?e=o.manifest:o.manifestString&&(e=JSON.parse(o.manifestString)),e&&Object.keys(e).length>0&&(s=e)}let f=null;if(t.default.EXDevLauncher){let e;t.default.EXDevLauncher.manifestString&&(e=JSON.parse(t.default.EXDevLauncher.manifestString)),e&&Object.keys(e).length>0&&(f=e)}let c=null;if(l.default&&l.default.manifest){const e=l.default.manifest;c='string'==typeof e?JSON.parse(e):e}let p=s??f??c;const{name:E,appOwnership:b,...x}=l.default||{},v={...x,appOwnership:b??null};function O(e){return!_(e)}function _(e){return'metadata'in e}function S(e=!1){if(!p){const e=null===p?'null':'undefined';if(x.executionEnvironment,u.ExecutionEnvironment.Bare,x.executionEnvironment===u.ExecutionEnvironment.StoreClient||x.executionEnvironment===u.ExecutionEnvironment.Standalone)throw new n.CodedError('ERR_CONSTANTS_MANIFEST_UNAVAILABLE',`Constants.manifest is ${e}, must be an object.`)}return p}Object.defineProperties(v,{__unsafeNoWarnManifest:{get(){const e=S(!0);return e&&O(e)?e:null},enumerable:!1},__unsafeNoWarnManifest2:{get(){const e=S(!0);return e&&_(e)?e:null},enumerable:!1},manifest:{get(){const e=S();return e&&O(e)?e:null},enumerable:!0},manifest2:{get(){const e=S();return e&&_(e)?e:null},enumerable:!0},expoConfig:{get(){const e=S(!0);return e?o&&o.isEmbeddedLaunch?c:_(e)?e.extra?.expoClient??null:O(e)?e:null:null},enumerable:!0},expoGoConfig:{get(){const e=S(!0);return e?_(e)?e.extra?.expoGo??null:O(e)?e:null:null},enumerable:!0},easConfig:{get(){const e=S(!0);return e?_(e)?e.extra?.eas??null:O(e)?e:null:null},enumerable:!0},__rawManifest_TEST:{get:()=>p,set(e){p=e},enumerable:!1}});var h=v},517,[438,109,99,518,519]);
|
|
594
594
|
__d(function(g,r,i,a,m,e,d){"use strict";var t,n,o;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AppOwnership",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ExecutionEnvironment",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return o}}),(function(t){t.Expo="expo"})(t||(t={})),(function(t){t.Bare="bare",t.Standalone="standalone",t.StoreClient="storeClient"})(n||(n={})),(function(t){t.Handset="handset",t.Tablet="tablet",t.Desktop="desktop",t.TV="tv",t.Unsupported="unsupported"})(o||(o={}))},518,[]);
|
|
595
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"CamStack\",\"slug\":\"camstack\",\"version\":\"1.0.
|
|
595
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"CamStack\",\"slug\":\"camstack\",\"version\":\"1.0.647\",\"sdkVersion\":\"57.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"],\"runtimeVersion\":\"1.0.643\",\"orientation\":\"default\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"camstack\",\"userInterfaceStyle\":\"automatic\",\"web\":{\"name\":\"CamStack Viewer\",\"shortName\":\"CamStack\",\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"backgroundColor\":\"#e67e22\"},\"experiments\":{\"typedRoutes\":true,\"reactCompiler\":true,\"baseUrl\":\"/viewer/camstack\"},\"extra\":{\"router\":{\"root\":\"app\",\"asyncRoutes\":{\"web\":true,\"default\":false}},\"eas\":{\"projectId\":\"8fb06894-6375-41ff-959f-1a22a03dbd73\"}},\"updates\":{\"url\":\"https://u.expo.dev/8fb06894-6375-41ff-959f-1a22a03dbd73\"},\"owner\":\"zentik-notifier\"}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},519,[518]);
|
|
596
596
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useCurrentRouteInfo=function(){const n=(0,u.useStateForPath)();return(0,t.useMemo)(()=>n?(0,o.getCachedRouteInfo)(n):void 0,[n])};const t=r(d[0]),o=r(d[1]),u=r(d[2])},520,[16,412,297]);
|
|
597
597
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="lazy"},521,[]);
|
|
598
598
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.disableZoomTransition=function(){},e.isZoomTransitionEnabled=function(){return!1},e.ZoomTransitionEnabler=function(n){return null}},522,[]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var n=r(d[0]),t=r(d[1]),c=r(d[2]),u=r(d[3]),o=r(d[4]),s=r(d[5]);function l(){const l=(0,n.c)(4),{kind:f}=(0,t.useLocalSearchParams)();let j;l[0]!==f?(j=(0,c.parseKind)(f),l[0]=f,l[1]=j):j=l[1];const P=j;let S;return l[2]!==P?(S=void 0===P?(0,s.jsx)(u.KindPickerScreen,{}):(0,s.jsx)(o.RuleSummaryScreen,{id:"new",kind:P}),l[2]=P,l[3]=S):S=l[3],S}},764,[787,788,1346,1345,1344,10]);
|
|
2
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.KindPickerScreen=function(){const e=(0,o.c)(23),{t:P}=(0,u.useTranslation)(),{colors:v}=(0,f.useTheme)(),C=(0,s.useRouter)(),z=(0,S.useAdminVerdict)();let A,I,_,N,R,G,H;e[0]!==P?(A=P("v2.nc.rules.kindPicker.title"),e[0]=P,e[1]=A):A=e[1];e[2]!==C?(I=()=>C.back(),e[2]=C,e[3]=I):I=e[3];e[4]!==v.foregroundSubtle?(_={color:v.foregroundSubtle,fontSize:14,paddingHorizontal:b.SPACING.xs},e[4]=v.foregroundSubtle,e[5]=_):_=e[5];e[6]!==P?(N=P("v2.nc.rules.kindPicker.subtitle"),e[6]=P,e[7]=N):N=e[7];e[8]!==_||e[9]!==N?(R=(0,k.jsx)(t.default,{style:_,children:N}),e[8]=_,e[9]=N,e[10]=R):R=e[10];e[11]!==v.border||e[12]!==v.foreground||e[13]!==v.foregroundSubtle||e[14]!==C||e[15]!==P||e[16]!==z?(G="pending"===z?(0,k.jsx)(j.EditorNotice,{}):(0,k.jsx)(n.default,{style:{borderRadius:b.RADIUS.lg,borderWidth:1,borderColor:v.border,overflow:"hidden"},children:(0,h.creatableKinds)("admin"===z).map((e,o)=>{const u=P((0,x.kindBlurbKey)(e),{defaultValue:""});return(0,k.jsxs)(l.default,{accessibilityRole:"button",onPress:()=>C.replace((0,p.ruleHref)("new",e)),style:{flexDirection:"row",alignItems:"center",gap:b.SPACING.md,paddingHorizontal:b.SPACING.lg,paddingVertical:b.SPACING.md,borderTopWidth:0===o?0:1,borderTopColor:v.border},children:[(0,k.jsxs)(n.default,{style:{flex:1,gap:2},children:[(0,k.jsx)(t.default,{style:{color:v.foreground,fontSize:15,fontWeight:"600"},children:P((0,h.kindLabelKey)(e))}),u.length>0?(0,k.jsx)(t.default,{style:{color:v.foregroundSubtle,fontSize:12,lineHeight:17},children:u}):null]}),(0,k.jsx)(c.ChevronRight,{size:18,color:v.foregroundSubtle})]},e)})}),e[11]=v.border,e[12]=v.foreground,e[13]=v.foregroundSubtle,e[14]=C,e[15]=P,e[16]=z,e[17]=G):G=e[17];e[18]!==A||e[19]!==I||e[20]!==R||e[21]!==G?(H=(0,k.jsxs)(y.EditorScroll,{title:A,onBack:I,children:[R,G]}),e[18]=A,e[19]=I,e[20]=R,e[21]=G,e[22]=H):H=e[22];return H};var o=r(d[0]);r(d[1]);var l=e(r(d[2])),t=e(r(d[3])),n=e(r(d[4])),u=r(d[5]),s=r(d[6]),c=r(d[7]),f=r(d[8]),b=r(d[9]),S=r(d[10]),h=r(d[11]),x=r(d[12]),p=r(d[13]),j=r(d[14]),y=r(d[15]),k=r(d[16])},1345,[787,16,247,193,114,815,788,836,789,834,948,1346,1307,1310,1308,1309,10]);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.SignInMethodsScreen,{}),o[0]=u):u=o[0],u}},768,[787,1387,10]);
|
|
2
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.SignInMethodsScreen=function(){const n=(0,e.c)(11),{t:o}=(0,s.useTranslation)(),{colors:c}=(0,u.useTheme)();let v,A,C,I,G,T;n[0]!==c.background?(v={flex:1,backgroundColor:c.background},n[0]=c.background,n[1]=v):v=n[1];n[2]!==o?(A=o("v2.signIn.title"),n[2]=o,n[3]=A):A=n[3];n[4]!==A?(C=(0,P.jsx)(l.ScreenHeader,{title:A,onBack:p,bordered:!0}),n[4]=A,n[5]=C):C=n[5];n[6]===Symbol.for("react.memo_cache_sentinel")?(I={padding:S.SPACING.xl,paddingBottom:S.SPACING["3xl"],gap:S.SPACING["2xl"]},n[6]=I):I=n[6];n[7]===Symbol.for("react.memo_cache_sentinel")?(G=(0,P.jsx)(y.KeyboardAwareScrollView,{keyboardShouldPersistTaps:"handled",contentContainerStyle:I,children:(0,P.jsxs)(x.SettingsGrid,{children:[(0,P.jsx)(b.PasswordSection,{}),(0,P.jsx)(h.TotpSection,{}),(0,P.jsx)(j.PasskeysSection,{}),(0,P.jsx)(_.LinkedAccountsSection,{}),(0,P.jsx)(f.ActiveSessionsSection,{})]})}),n[7]=G):G=n[7];n[8]!==v||n[9]!==C?(T=(0,P.jsx)(k.ReauthProvider,{children:(0,P.jsxs)(t.default,{style:v,children:[C,G]})}),n[8]=v,n[9]=C,n[10]=T):T=n[10];return T};var e=r(d[0]);r(d[1]);var n,o=r(d[2]),t=(n=o)&&n.__esModule?n:{default:n},s=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),S=r(d[7]),x=r(d[8]),b=r(d[9]),h=r(d[10]),j=r(d[11]),_=r(d[12]),f=r(d[13]),k=r(d[14]),y=r(d[15]),P=r(d[16]);function p(){return c.router.back()}},1387,[787,16,114,815,788,820,789,834,1029,1388,1389,1419,1421,1030,1031,875,10]);
|
|
3
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PasswordSection=function(){const P=(0,s.c)(26),{t:b}=(0,t.useTranslation)(),S=(0,u.useNotice)(),h=(0,w.useChangePassword)(),[j,_]=(0,n.useState)(!1),[f,C]=(0,n.useState)(""),[T,D]=(0,n.useState)(""),[F,y]=(0,n.useState)(""),[N,k]=(0,n.useState)(null);let B;P[0]===Symbol.for("react.memo_cache_sentinel")?(B=()=>{_(!1),C(""),D(""),y(""),k(null)},P[0]=B):B=P[0];const E=B;let L;P[1]!==F||P[2]!==f||P[3]!==T?(L=(0,p.passwordFormProblem)({current:f,next:T,confirm:F}),P[1]=F,P[2]=f,P[3]=T,P[4]=L):L=P[4];const M=L;let O;P[5]!==h||P[6]!==f||P[7]!==T||P[8]!==S||P[9]!==M||P[10]!==b?(O=()=>{null===M?(k(null),h.mutate({currentPassword:f,newPassword:T},{onSuccess:()=>{E(),S({title:b("v2.signIn.password.changed")})},onError:s=>k(s.message)})):k(b(`v2.signIn.password.problem.${M}`,{count:p.MIN_PASSWORD_LENGTH}))},P[5]=h,P[6]=f,P[7]=T,P[8]=S,P[9]=M,P[10]=b,P[11]=O):O=P[11];const R=O;let A,G,H;P[12]!==b?(A=b("v2.signIn.password.title"),P[12]=b,P[13]=A):A=P[13];P[14]!==h||P[15]!==F||P[16]!==f||P[17]!==N||P[18]!==R||P[19]!==T||P[20]!==j||P[21]!==b?(G=j?(0,I.jsxs)(v.Panel,{children:[(0,I.jsx)(v.Field,{label:b("v2.signIn.password.current"),value:f,onChangeText:C,secure:!0,autoComplete:"current-password",testID:"password-current"}),(0,I.jsx)(v.Field,{label:b("v2.signIn.password.new"),value:T,onChangeText:D,secure:!0,autoComplete:"new-password",testID:"password-new"}),(0,I.jsx)(v.Field,{label:b("v2.signIn.password.confirm"),value:F,onChangeText:y,secure:!0,autoComplete:"new-password",testID:"password-confirm"}),null!==N?(0,I.jsx)(v.PanelText,{tone:"danger",children:N}):null,(0,I.jsx)(x.Button,{label:h.isPending?b("v2.signIn.saving"):b("v2.signIn.password.save"),onPress:R,disabled:h.isPending,testID:"password-save"}),(0,I.jsx)(x.Button,{label:b("v2.settings.cancel"),kind:"secondary",onPress:E})]}):(0,I.jsx)(c.Row,{icon:o.Lock,label:b("v2.signIn.password.change"),onPress:()=>_(!0),last:!0}),P[14]=h,P[15]=F,P[16]=f,P[17]=N,P[18]=R,P[19]=T,P[20]=j,P[21]=b,P[22]=G):G=P[22];P[23]!==A||P[24]!==G?(H=(0,I.jsx)(l.Section,{title:A,children:G}),P[23]=A,P[24]=G,P[25]=H):H=P[25];return H};var s=r(d[0]),n=r(d[1]),t=r(d[2]),o=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),w=r(d[7]),p=r(d[8]),v=r(d[9]),x=r(d[10]),I=r(d[11])},1388,[787,16,815,836,869,1033,976,1036,1424,967,971,10]);
|
|
4
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.TotpSection=function(){const e=(0,t.c)(36),{t:s}=(0,d.useTranslation)(),o=(0,b.useConfirm)(),l=(0,b.useNotice)(),c=(0,I.useDateLocale)(),u=(0,T.useTotpStatus)(),P=(0,T.useSetupTotp)(),v=(0,T.useDisableTotp)(),x=(0,D.useReauth)(),[S,j]=(0,n.useState)(null);let y;e[0]!==l||e[1]!==P||e[2]!==s?(y=()=>{P.mutate(void 0,{onSuccess:j,onError:e=>l({title:s("v2.signIn.totp.setupFailed"),message:e.message})})},e[0]=l,e[1]=P,e[2]=s,e[3]=y):y=e[3];const C=y;let w;e[4]!==o||e[5]!==v||e[6]!==l||e[7]!==x||e[8]!==s?(w=()=>{o({title:s("v2.signIn.totp.disableTitle"),message:s("v2.signIn.totp.disableBody"),confirmLabel:s("v2.signIn.totp.disable"),destructive:!0}).then(e=>e?x(s("v2.signIn.reauth.actionDisableTotp")):null).then(e=>{null!==e&&v.mutate(e.reauthToken,{onError:e=>l({title:s("v2.signIn.totp.disableFailed"),message:e.message})})})},e[4]=o,e[5]=v,e[6]=l,e[7]=x,e[8]=s,e[9]=w):w=e[9];const L=w,R=!0===u.data?.enabled,N=u.data?.confirmedAt??null;let k;e[10]!==N||e[11]!==R||e[12]!==c||e[13]!==u.isPending||e[14]!==s?(k=u.isPending?"\u2026":R?null!==N?s("v2.signIn.totp.onSince",{date:new Date(N).toLocaleDateString(c)}):s("v2.signIn.on"):s("v2.signIn.off"),e[10]=N,e[11]=R,e[12]=c,e[13]=u.isPending,e[14]=s,e[15]=k):k=e[15];const O=k;let U,A,G,F,M;e[16]!==s?(U=s("v2.signIn.totp.title"),e[16]=s,e[17]=U):U=e[17];e[18]!==s?(A=s("v2.signIn.totp.status"),e[18]=s,e[19]=A):A=e[19];e[20]!==u.isPending||e[21]!==O||e[22]!==A?(G=(0,_.jsx)(h.Row,{icon:p.ShieldCheck,label:A,value:O,last:u.isPending}),e[20]=u.isPending,e[21]=O,e[22]=A,e[23]=G):G=e[23];e[24]!==R||e[25]!==S||e[26]!==L||e[27]!==C||e[28]!==P.isPending||e[29]!==u.isPending||e[30]!==s?(F=u.isPending?null:null!==S?(0,_.jsx)(E,{enrollment:S,onDone:()=>j(null)}):R?(0,_.jsx)(h.Row,{label:s("v2.signIn.totp.disable"),danger:!0,onPress:L,last:!0}):(0,_.jsx)(h.Row,{label:P.isPending?s("v2.signIn.working"):s("v2.signIn.totp.setup"),onPress:C,last:!0}),e[24]=R,e[25]=S,e[26]=L,e[27]=C,e[28]=P.isPending,e[29]=u.isPending,e[30]=s,e[31]=F):F=e[31];e[32]!==U||e[33]!==G||e[34]!==F?(M=(0,_.jsxs)(f.Section,{title:U,children:[G,F]}),e[32]=U,e[33]=G,e[34]=F,e[35]=M):M=e[35];return M};var t=r(_d[0]),n=r(_d[1]);r(_d[2]),r(_d[3]);var s=e(r(_d[4])),o=e(r(_d[5])),l=e(r(_d[6])),d=r(_d[7]),c=r(_d[8]),u=e(c),p=r(_d[9]),f=r(_d[10]),h=r(_d[11]),b=r(_d[12]),P=r(_d[13]),I=r(_d[14]),v=r(_d[15]),x=r(_d[16]),T=r(_d[17]),S=r(_d[18]),j=r(_d[19]),y=r(_d[20]),D=r(_d[21]),C=r(_d[22]),_=r(_d[23]);const w=184;function E(e){const c=(0,t.c)(70),{enrollment:u,onDone:f}=e,{t:h}=(0,d.useTranslation)(),{colors:I}=(0,v.useTheme)(),y=(0,b.useNotice)(),D=(0,T.useConfirmTotp)(),[w,E]=(0,n.useState)(""),[R,N]=(0,n.useState)(null);let k;c[0]!==w||c[1]!==D||c[2]!==y||c[3]!==f||c[4]!==h?(k=()=>{w.length===S.TOTP_CODE_LENGTH?(N(null),D.mutate(w,{onSuccess:()=>{f(),y({title:h("v2.signIn.totp.enabled")})},onError:e=>N(e.message)})):N(h("v2.signIn.totp.codeLength",{count:S.TOTP_CODE_LENGTH}))},c[0]=w,c[1]=D,c[2]=y,c[3]=f,c[4]=h,c[5]=k):k=c[5];const O=k;let U;c[6]!==u.secret||c[7]!==y||c[8]!==h?(U=()=>{(0,P.copyText)(u.secret).then(e=>{y({title:h(e?"v2.signIn.totp.secretCopied":"v2.signIn.totp.copyFailed")})})},c[6]=u.secret,c[7]=y,c[8]=h,c[9]=U):U=c[9];const A=U;let G,F,M,z,B,H,q,$,W,J,K,Q,V,X,Y,Z,ee,te,ne,se,oe;return c[10]!==h?(G=h("v2.signIn.totp.stepScan"),c[10]=h,c[11]=G):G=c[11],c[12]!==G?(F=(0,_.jsx)(j.PanelText,{children:G}),c[12]=G,c[13]=F):F=c[13],c[14]!==u.otpauthUrl?(M=(0,_.jsx)(L,{url:u.otpauthUrl}),c[14]=u.otpauthUrl,c[15]=M):M=c[15],c[16]!==u.otpauthUrl||c[17]!==y||c[18]!==h?(z=null,c[16]=u.otpauthUrl,c[17]=y,c[18]=h,c[19]=z):z=c[19],c[20]!==I.border?(B={flexDirection:"row",alignItems:"center",gap:x.SPACING.md,padding:x.SPACING.md,borderRadius:x.RADIUS.md,borderWidth:1,borderColor:I.border},c[20]=I.border,c[21]=B):B=c[21],c[22]!==I.foreground?(H={flex:1,color:I.foreground,fontSize:15,fontFamily:"monospace"},c[22]=I.foreground,c[23]=H):H=c[23],c[24]!==u.secret?(q=(0,S.groupSecret)(u.secret),c[24]=u.secret,c[25]=q):q=c[25],c[26]!==H||c[27]!==q?($=(0,_.jsx)(o.default,{selectable:!0,testID:"totp-secret",style:H,children:q}),c[26]=H,c[27]=q,c[28]=$):$=c[28],c[29]!==h?(W=h("v2.signIn.totp.copySecret"),c[29]=h,c[30]=W):W=c[30],c[31]!==I.foregroundMuted?(J=(0,_.jsx)(p.Copy,{size:18,color:I.foregroundMuted}),c[31]=I.foregroundMuted,c[32]=J):J=c[32],c[33]!==A||c[34]!==W||c[35]!==J?(K=(0,_.jsx)(s.default,{accessibilityRole:"button",accessibilityLabel:W,hitSlop:8,onPress:A,testID:"totp-copy",children:J}),c[33]=A,c[34]=W,c[35]=J,c[36]=K):K=c[36],c[37]!==$||c[38]!==K||c[39]!==B?(Q=(0,_.jsxs)(l.default,{style:B,children:[$,K]}),c[37]=$,c[38]=K,c[39]=B,c[40]=Q):Q=c[40],c[41]!==h?(V=h("v2.signIn.totp.code"),c[41]=h,c[42]=V):V=c[42],c[43]===Symbol.for("react.memo_cache_sentinel")?(X=e=>E((0,S.normalizeTotpCode)(e)),c[43]=X):X=c[43],c[44]!==w||c[45]!==V?(Y=(0,_.jsx)(j.Field,{label:V,value:w,onChangeText:X,keyboardType:"number-pad",autoComplete:"one-time-code",maxLength:S.TOTP_CODE_LENGTH,testID:"totp-code"}),c[44]=w,c[45]=V,c[46]=Y):Y=c[46],c[47]!==R?(Z=null!==R?(0,_.jsx)(j.PanelText,{tone:"danger",children:R}):null,c[47]=R,c[48]=Z):Z=c[48],c[49]!==D.isPending||c[50]!==h?(ee=D.isPending?h("v2.signIn.working"):h("v2.signIn.totp.confirm"),c[49]=D.isPending,c[50]=h,c[51]=ee):ee=c[51],c[52]!==D.isPending||c[53]!==O||c[54]!==ee?(te=(0,_.jsx)(C.Button,{label:ee,onPress:O,disabled:D.isPending,testID:"totp-confirm"}),c[52]=D.isPending,c[53]=O,c[54]=ee,c[55]=te):te=c[55],c[56]!==h?(ne=h("v2.settings.cancel"),c[56]=h,c[57]=ne):ne=c[57],c[58]!==f||c[59]!==ne?(se=(0,_.jsx)(C.Button,{label:ne,kind:"secondary",onPress:f}),c[58]=f,c[59]=ne,c[60]=se):se=c[60],c[61]!==Q||c[62]!==Y||c[63]!==Z||c[64]!==te||c[65]!==se||c[66]!==F||c[67]!==M||c[68]!==z?(oe=(0,_.jsxs)(j.Panel,{children:[F,M,z,Q,Y,Z,te,se]}),c[61]=Q,c[62]=Y,c[63]=Z,c[64]=te,c[65]=se,c[66]=F,c[67]=M,c[68]=z,c[69]=oe):oe=c[69],oe}function L(e){const n=(0,t.c)(8),{url:s}=e;let o;n[0]!==s?(o=(0,y.qrPath)(s),n[0]=s,n[1]=o):o=n[1];const{size:d,d:p}=o;let f;n[2]===Symbol.for("react.memo_cache_sentinel")?(f={alignSelf:"center",backgroundColor:"#ffffff",padding:x.SPACING.md,borderRadius:x.RADIUS.md},n[2]=f):f=n[2];const h=`0 0 ${d} ${d}`;let b,P;return n[3]!==p?(b=(0,_.jsx)(c.Path,{d:p,fill:"#000000"}),n[3]=p,n[4]=b):b=n[4],n[5]!==h||n[6]!==b?(P=(0,_.jsx)(l.default,{testID:"totp-qr",style:f,children:(0,_.jsx)(u.default,{width:w,height:w,viewBox:h,children:b})}),n[5]=h,n[6]=b,n[7]=P):P=n[7],P}},1389,[787,16,225,109,247,193,114,815,1223,836,869,1033,976,1035,861,789,834,1036,1424,967,1390,1031,971,10]);
|
|
5
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.qrPath=function(o){const{modules:s}=(0,t.create)(o,{errorCorrectionLevel:'M'}),n=[];for(let t=0;t<s.size;t+=1)for(let o=0;o<s.size;o+=1)1===s.get(t,o)&&n.push(`M${o} ${t}h1v1h-1z`);return{size:s.size,d:n.join('')}};var t=r(d[0])},1390,[1391]);
|
|
6
|
+
__d(function(g,r,i,a,m,_e,d){const t=r(d[0]),n=r(d[1]),e=r(d[2]),o=r(d[3]);function c(e,o,c,l,u){const f=[].slice.call(arguments,1),s=f.length,v='function'==typeof f[s-1];if(!v&&!t())throw new Error('Callback required as last argument');if(!v){if(s<1)throw new Error('Too few arguments provided');return 1===s?(c=o,o=l=void 0):2!==s||o.getContext||(l=c,c=o,o=void 0),new Promise(function(t,u){try{const u=n.create(c,l);t(e(u,o,l))}catch(t){u(t)}})}if(s<2)throw new Error('Too few arguments provided');2===s?(u=c,c=o,o=l=void 0):3===s&&(o.getContext&&void 0===u?(u=l,l=void 0):(u=l,l=c,c=o,o=void 0));try{const t=n.create(c,l);u(null,e(t,o,l))}catch(t){u(t)}}_e.create=n.create,_e.toCanvas=c.bind(null,e.render),_e.toDataURL=c.bind(null,e.renderToDataURL),_e.toString=c.bind(null,function(t,n,e){return o.render(t,e)})},1391,[1392,1393,1416,1418]);
|
|
7
|
+
__d(function(g,r,i,a,m,e,d){m.exports=function(){return'function'==typeof Promise&&Promise.prototype&&Promise.prototype.then}},1392,[]);
|
|
8
|
+
__d(function(g,_r,_i,a,m,e,d){const t=_r(d[0]),o=_r(d[1]),n=_r(d[2]),r=_r(d[3]),s=_r(d[4]),i=_r(d[5]),f=_r(d[6]),c=_r(d[7]),l=_r(d[8]),u=_r(d[9]),h=_r(d[10]),w=_r(d[11]),C=_r(d[12]);function y(t,o){const n=t.size,r=i.getPositions(o);for(let o=0;o<r.length;o++){const s=r[o][0],i=r[o][1];for(let o=-1;o<=7;o++)if(!(s+o<=-1||n<=s+o))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(o>=0&&o<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===o||6===o)||o>=2&&o<=4&&r>=2&&r<=4?t.set(s+o,i+r,!0,!0):t.set(s+o,i+r,!1,!0))}}function S(t){const o=t.size;for(let n=8;n<o-8;n++){const o=n%2==0;t.set(n,6,o,!0),t.set(6,n,o,!0)}}function p(t,o){const n=s.getPositions(o);for(let o=0;o<n.length;o++){const r=n[o][0],s=n[o][1];for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)-2===o||2===o||-2===n||2===n||0===o&&0===n?t.set(r+o,s+n,!0,!0):t.set(r+o,s+n,!1,!0)}}function v(t,o){const n=t.size,r=u.getEncodedBits(o);let s,i,f;for(let o=0;o<18;o++)s=Math.floor(o/3),i=o%3+n-8-3,f=1==(r>>o&1),t.set(s,i,f,!0),t.set(i,s,f,!0)}function B(t,o,n){const r=t.size,s=h.getEncodedBits(o,n);let i,f;for(i=0;i<15;i++)f=1==(s>>i&1),i<6?t.set(i,8,f,!0):i<8?t.set(i+1,8,f,!0):t.set(r-15+i,8,f,!0),i<8?t.set(8,r-i-1,f,!0):i<9?t.set(8,15-i-1+1,f,!0):t.set(8,15-i-1,f,!0);t.set(r-8,8,1,!0)}function b(t,o){const n=t.size;let r=-1,s=n-1,i=7,f=0;for(let c=n-1;c>0;c-=2)for(6===c&&c--;;){for(let n=0;n<2;n++)if(!t.isReserved(s,c-n)){let r=!1;f<o.length&&(r=1==(o[f]>>>i&1)),t.set(s,c-n,r),i--,-1===i&&(f++,i=7)}if(s+=r,s<0||n<=s){s-=r,r=-r;break}}}function M(o,r,s){const i=new n;s.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),w.getCharCountIndicator(t.mode,o)),t.write(i)});const f=8*(t.getSymbolTotalCodewords(o)-c.getTotalCodewordsCount(o,r));for(i.getLengthInBits()+4<=f&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const l=(f-i.getLengthInBits())/8;for(let t=0;t<l;t++)i.put(t%2?17:236,8);return I(i,o,r)}function I(o,n,r){const s=t.getSymbolTotalCodewords(n),i=s-c.getTotalCodewordsCount(n,r),f=c.getBlocksCount(n,r),u=f-s%f,h=Math.floor(s/f),w=Math.floor(i/f),C=w+1,y=h-w,S=new l(y);let p=0;const v=new Array(f),B=new Array(f);let b=0;const M=new Uint8Array(o.buffer);for(let t=0;t<f;t++){const o=t<u?w:C;v[t]=M.slice(p,p+o),B[t]=S.encode(v[t]),p+=o,b=Math.max(b,o)}const I=new Uint8Array(s);let A,E,T=0;for(A=0;A<b;A++)for(E=0;E<f;E++)A<v[E].length&&(I[T++]=v[E][A]);for(A=0;A<y;A++)for(E=0;E<f;E++)I[T++]=B[E][A];return I}function A(o,n,s,i){let c;if(Array.isArray(o))c=C.fromArray(o);else{if('string'!=typeof o)throw new Error('Invalid data');{let t=n;if(!t){const n=C.rawSplit(o);t=u.getBestVersionForData(n,s)}c=C.fromString(o,t||40)}}const l=u.getBestVersionForData(c,s);if(!l)throw new Error('The amount of data is too big to be stored in a QR Code');if(n){if(n<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+'.\n')}else n=l;const h=M(n,s,c),w=t.getSymbolSize(n),I=new r(w);return y(I,n),S(I),p(I,n),B(I,s,0),n>=7&&v(I,n),b(I,h),isNaN(i)&&(i=f.getBestMask(I,B.bind(null,I,s))),f.applyMask(i,I),B(I,s,i),{modules:I,version:n,errorCorrectionLevel:s,maskPattern:i,segments:c}}e.create=function(n,r){if(void 0===n||''===n)throw new Error('No input text');let s,i,c=o.M;return void 0!==r&&(c=o.from(r.errorCorrectionLevel,o.M),s=u.from(r.version),i=f.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),A(n,s,c,i)}},1393,[1394,1395,1396,1397,1398,1399,1400,1401,1402,1405,1409,1406,1410]);
|
|
9
|
+
__d(function(g,r,i,a,m,e,d){let n;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return 4*n+17},e.getSymbolTotalCodewords=function(n){return o[n]},e.getBCHDigit=function(n){let o=0;for(;0!==n;)o++,n>>>=1;return o},e.setToSJISFunction=function(o){if('function'!=typeof o)throw new Error('"toSJISFunc" is not a valid function.');n=o},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(o){return n(o)}},1394,[]);
|
|
10
|
+
__d(function(g,r,i,a,m,_e,d){function t(t){if('string'!=typeof t)throw new Error('Param is not a string');switch(t.toLowerCase()){case'l':case'low':return _e.L;case'm':case'medium':return _e.M;case'q':case'quartile':return _e.Q;case'h':case'high':return _e.H;default:throw new Error('Unknown EC Level: '+t)}}_e.L={bit:1},_e.M={bit:0},_e.Q={bit:3},_e.H={bit:2},_e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},_e.from=function(e,n){if(_e.isValid(e))return e;try{return t(e)}catch(t){return n}}},1395,[]);
|
|
11
|
+
__d(function(g,r,_i,a,m,e,d){function t(){this.buffer=[],this.length=0}t.prototype={get:function(t){const n=Math.floor(t/8);return 1==(this.buffer[n]>>>7-t%8&1)},put:function(t,n){for(let h=0;h<n;h++)this.putBit(1==(t>>>n-h-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},m.exports=t},1396,[]);
|
|
12
|
+
__d(function(g,r,i,a,m,e,d){function t(t){if(!t||t<1)throw new Error('BitMatrix size must be defined and greater than 0');this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}t.prototype.set=function(t,s,n,o){const h=t*this.size+s;this.data[h]=n,o&&(this.reservedBit[h]=!0)},t.prototype.get=function(t,s){return this.data[t*this.size+s]},t.prototype.xor=function(t,s,n){this.data[t*this.size+s]^=n},t.prototype.isReserved=function(t,s){return this.reservedBit[t*this.size+s]},m.exports=t},1397,[]);
|
|
13
|
+
__d(function(g,r,_i,a,m,e,d){const o=r(d[0]).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,s=o(t),l=145===s?26:2*Math.ceil((s-13)/(2*n-2)),f=[s-7];for(let o=1;o<n-1;o++)f[o]=f[o-1]-l;return f.push(6),f.reverse()},e.getPositions=function(o){const t=[],n=e.getRowColCoords(o),s=n.length;for(let o=0;o<s;o++)for(let l=0;l<s;l++)0===o&&0===l||0===o&&l===s-1||o===s-1&&0===l||t.push([n[o],n[l]]);return t}},1398,[1394]);
|
|
14
|
+
__d(function(g,r,i,a,m,e,d){const n=r(d[0]).getSymbolSize;e.getPositions=function(t){const o=n(t);return[[0,0],[o-7,0],[0,o-7]]}},1399,[1394]);
|
|
15
|
+
__d(function(g,r,_i,a,m,e,d){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,n=3,s=40,l=10;function o(t,n,s){switch(t){case e.Patterns.PATTERN000:return(n+s)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return s%3==0;case e.Patterns.PATTERN011:return(n+s)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2==0;case e.Patterns.PATTERN101:return n*s%2+n*s%3==0;case e.Patterns.PATTERN110:return(n*s%2+n*s%3)%2==0;case e.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2==0;default:throw new Error('bad maskPattern:'+t)}}e.isValid=function(t){return null!=t&&''!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(n){const s=n.size;let l=0,o=0,P=0,T=null,c=null;for(let u=0;u<s;u++){o=P=0,T=c=null;for(let N=0;N<s;N++){let s=n.get(u,N);s===T?o++:(o>=5&&(l+=t+(o-5)),T=s,o=1),s=n.get(N,u),s===c?P++:(P>=5&&(l+=t+(P-5)),c=s,P=1)}o>=5&&(l+=t+(o-5)),P>=5&&(l+=t+(P-5))}return l},e.getPenaltyN2=function(t){const s=t.size;let l=0;for(let n=0;n<s-1;n++)for(let o=0;o<s-1;o++){const s=t.get(n,o)+t.get(n,o+1)+t.get(n+1,o)+t.get(n+1,o+1);4!==s&&0!==s||l++}return l*n},e.getPenaltyN3=function(t){const n=t.size;let l=0,o=0,P=0;for(let s=0;s<n;s++){o=P=0;for(let T=0;T<n;T++)o=o<<1&2047|t.get(s,T),T>=10&&(1488===o||93===o)&&l++,P=P<<1&2047|t.get(T,s),T>=10&&(1488===P||93===P)&&l++}return l*s},e.getPenaltyN4=function(t){let n=0;const s=t.data.length;for(let l=0;l<s;l++)n+=t.data[l];return Math.abs(Math.ceil(100*n/s/5)-10)*l},e.applyMask=function(t,n){const s=n.size;for(let l=0;l<s;l++)for(let P=0;P<s;P++)n.isReserved(P,l)||n.xor(P,l,o(t,P,l))},e.getBestMask=function(t,n){const s=Object.keys(e.Patterns).length;let l=0,o=1/0;for(let P=0;P<s;P++){n(P),e.applyMask(P,t);const s=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(P,t),s<o&&(o=s,l=P)}return l}},1400,[]);
|
|
16
|
+
__d(function(g,r,i,a,m,e,d){const t=r(d[0]),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(u,c){switch(c){case t.L:return n[4*(u-1)+0];case t.M:return n[4*(u-1)+1];case t.Q:return n[4*(u-1)+2];case t.H:return n[4*(u-1)+3];default:return}},e.getTotalCodewordsCount=function(n,c){switch(c){case t.L:return u[4*(n-1)+0];case t.M:return u[4*(n-1)+1];case t.Q:return u[4*(n-1)+2];case t.H:return u[4*(n-1)+3];default:return}}},1401,[1395]);
|
|
17
|
+
__d(function(g,r,i,a,m,e,d){const t=r(d[0]);function n(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(n){this.degree=n,this.genPoly=t.generateECPolynomial(this.degree)},n.prototype.encode=function(n){if(!this.genPoly)throw new Error('Encoder not initialized');const o=new Uint8Array(n.length+this.degree);o.set(n);const s=t.mod(o,this.genPoly),h=this.degree-s.length;if(h>0){const t=new Uint8Array(this.degree);return t.set(s,h),t}return s},m.exports=n},1402,[1403]);
|
|
18
|
+
__d(function(g,r,_i,a,m,e,d){const n=r(d[0]);e.mul=function(t,l){const o=new Uint8Array(t.length+l.length-1);for(let u=0;u<t.length;u++)for(let f=0;f<l.length;f++)o[u+f]^=n.mul(t[u],l[f]);return o},e.mod=function(t,l){let o=new Uint8Array(t);for(;o.length-l.length>=0;){const t=o[0];for(let u=0;u<l.length;u++)o[u]^=n.mul(l[u],t);let u=0;for(;u<o.length&&0===o[u];)u++;o=o.slice(u)}return o},e.generateECPolynomial=function(t){let l=new Uint8Array([1]);for(let o=0;o<t;o++)l=e.mul(l,new Uint8Array([1,n.exp(o)]));return l}},1403,[1404]);
|
|
19
|
+
__d(function(g,r,_i,a,m,e,d){const n=new Uint8Array(512),t=new Uint8Array(256);!(function(){let o=1;for(let u=0;u<255;u++)n[u]=o,t[o]=u,o<<=1,256&o&&(o^=285);for(let t=255;t<512;t++)n[t]=n[t-255]})(),e.log=function(n){if(n<1)throw new Error('log('+n+')');return t[n]},e.exp=function(t){return n[t]},e.mul=function(o,u){return 0===o||0===u?0:n[t[o]+t[u]]}},1404,[]);
|
|
20
|
+
__d(function(g,r,i,a,m,e,_d){const t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),f=r(_d[3]),u=r(_d[4]),c=t.getBCHDigit(7973);function s(t,n,o){for(let f=1;f<=40;f++)if(n<=e.getCapacity(f,o,t))return f}function l(t,n){return f.getCharCountIndicator(t,n)+4}function d(t,n){let o=0;return t.forEach(function(t){const f=l(t.mode,n);o+=f+t.getBitsLength()}),o}function C(t,n){for(let o=1;o<=40;o++){if(d(t,o)<=e.getCapacity(o,n,f.MIXED))return o}}e.from=function(t,n){return u.isValid(t)?parseInt(t,10):n},e.getCapacity=function(o,c,s){if(!u.isValid(o))throw new Error('Invalid QR Code version');void 0===s&&(s=f.BYTE);const d=8*(t.getSymbolTotalCodewords(o)-n.getTotalCodewordsCount(o,c));if(s===f.MIXED)return d;const C=d-l(s,o);switch(s){case f.NUMERIC:return Math.floor(C/10*3);case f.ALPHANUMERIC:return Math.floor(C/11*2);case f.KANJI:return Math.floor(C/13);case f.BYTE:default:return Math.floor(C/8)}},e.getBestVersionForData=function(t,n){let f;const u=o.from(n,o.M);if(Array.isArray(t)){if(t.length>1)return C(t,u);if(0===t.length)return 1;f=t[0]}else f=t;return s(f.mode,f.getLength(),u)},e.getEncodedBits=function(n){if(!u.isValid(n)||n<7)throw new Error('Invalid QR Code version');let o=n<<12;for(;t.getBCHDigit(o)-c>=0;)o^=7973<<t.getBCHDigit(o)-c;return n<<12|o}},1405,[1394,1401,1395,1406,1407]);
|
|
21
|
+
__d(function(g,r,i,a,m,_e,d){const t=r(d[0]),n=r(d[1]);function e(t){if('string'!=typeof t)throw new Error('Param is not a string');switch(t.toLowerCase()){case'numeric':return _e.NUMERIC;case'alphanumeric':return _e.ALPHANUMERIC;case'kanji':return _e.KANJI;case'byte':return _e.BYTE;default:throw new Error('Unknown mode: '+t)}}_e.NUMERIC={id:'Numeric',bit:1,ccBits:[10,12,14]},_e.ALPHANUMERIC={id:'Alphanumeric',bit:2,ccBits:[9,11,13]},_e.BYTE={id:'Byte',bit:4,ccBits:[8,16,16]},_e.KANJI={id:'Kanji',bit:8,ccBits:[8,10,12]},_e.MIXED={bit:-1},_e.getCharCountIndicator=function(n,e){if(!n.ccBits)throw new Error('Invalid mode: '+n);if(!t.isValid(e))throw new Error('Invalid version: '+e);return e>=1&&e<10?n.ccBits[0]:e<27?n.ccBits[1]:n.ccBits[2]},_e.getBestModeForData=function(t){return n.testNumeric(t)?_e.NUMERIC:n.testAlphanumeric(t)?_e.ALPHANUMERIC:n.testKanji(t)?_e.KANJI:_e.BYTE},_e.toString=function(t){if(t&&t.id)return t.id;throw new Error('Invalid mode')},_e.isValid=function(t){return t&&t.bit&&t.ccBits},_e.from=function(t,n){if(_e.isValid(t))return t;try{return e(t)}catch(t){return n}}},1406,[1407,1408]);
|
|
22
|
+
__d(function(g,r,i,a,m,e,d){e.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40}},1407,[]);
|
|
23
|
+
__d(function(g,r,i,a,m,e,d){let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,'\\u');const n='(?:(?![A-Z0-9 $%*+\\-./:]|'+u+')(?:.|[\r\n]))+';e.KANJI=new RegExp(u,'g'),e.BYTE_KANJI=new RegExp('[^A-Z0-9 $%*+\\-./:]+','g'),e.BYTE=new RegExp(n,'g'),e.NUMERIC=new RegExp('[0-9]+','g'),e.ALPHANUMERIC=new RegExp('[A-Z $%*+\\-./:]+','g');const t=new RegExp('^'+u+'$'),E=new RegExp("^[0-9]+$"),A=new RegExp('^[A-Z0-9 $%*+\\-./:]+$');e.testKanji=function(u){return t.test(u)},e.testNumeric=function(u){return E.test(u)},e.testAlphanumeric=function(u){return A.test(u)}},1408,[]);
|
|
24
|
+
__d(function(g,r,i,a,m,e,_d){const t=r(_d[0]),n=t.getBCHDigit(1335);e.getEncodedBits=function(o,c){const B=o.bit<<3|c;let d=B<<10;for(;t.getBCHDigit(d)-n>=0;)d^=1335<<t.getBCHDigit(d)-n;return 21522^(B<<10|d)}},1409,[1394]);
|
|
25
|
+
__d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),s=r(d[4]),l=r(d[5]),c=r(d[6]),h=r(d[7]);function i(t){return unescape(encodeURIComponent(t)).length}function f(t,n,o){const u=[];let s;for(;null!==(s=t.exec(o));)u.push({data:s[0],index:s.index,mode:n,length:s[0].length});return u}function E(n){const o=f(l.NUMERIC,t.NUMERIC,n),u=f(l.ALPHANUMERIC,t.ALPHANUMERIC,n);let s,h;c.isKanjiModeEnabled()?(s=f(l.BYTE,t.BYTE,n),h=f(l.KANJI,t.KANJI,n)):(s=f(l.BYTE_KANJI,t.BYTE,n),h=[]);return o.concat(u,s,h).sort(function(t,n){return t.index-n.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function A(l,c){switch(c){case t.NUMERIC:return n.getBitsLength(l);case t.ALPHANUMERIC:return o.getBitsLength(l);case t.KANJI:return s.getBitsLength(l);case t.BYTE:return u.getBitsLength(l)}}function I(t){return t.reduce(function(t,n){const o=t.length-1>=0?t[t.length-1]:null;return o&&o.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)},[])}function C(n){const o=[];for(let u=0;u<n.length;u++){const s=n[u];switch(s.mode){case t.NUMERIC:o.push([s,{data:s.data,mode:t.ALPHANUMERIC,length:s.length},{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.ALPHANUMERIC:o.push([s,{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.KANJI:o.push([s,{data:s.data,mode:t.BYTE,length:i(s.data)}]);break;case t.BYTE:o.push([{data:s.data,mode:t.BYTE,length:i(s.data)}])}}return o}function p(n,o){const u={},s={start:{}};let l=['start'];for(let c=0;c<n.length;c++){const h=n[c],i=[];for(let n=0;n<h.length;n++){const f=h[n],E=''+c+n;i.push(E),u[E]={node:f,lastCount:0},s[E]={};for(let n=0;n<l.length;n++){const c=l[n];u[c]&&u[c].node.mode===f.mode?(s[c][E]=A(u[c].lastCount+f.length,f.mode)-A(u[c].lastCount,f.mode),u[c].lastCount+=f.length):(u[c]&&(u[c].lastCount=f.length),s[c][E]=A(f.length,f.mode)+4+t.getCharCountIndicator(f.mode,o))}}l=i}for(let t=0;t<l.length;t++)s[l[t]].end=0;return{map:s,table:u}}function B(l,h){let i;const f=t.getBestModeForData(l);if(i=t.from(h,f),i!==t.BYTE&&i.bit<f.bit)throw new Error('"'+l+"\" cannot be encoded with mode "+t.toString(i)+'.\n Suggested mode is: '+t.toString(f));switch(i!==t.KANJI||c.isKanjiModeEnabled()||(i=t.BYTE),i){case t.NUMERIC:return new n(l);case t.ALPHANUMERIC:return new o(l);case t.KANJI:return new s(l);case t.BYTE:return new u(l)}}e.fromArray=function(t){return t.reduce(function(t,n){return'string'==typeof n?t.push(B(n,null)):n.data&&t.push(B(n.data,n.mode)),t},[])},e.fromString=function(t,n){const o=p(C(E(t,c.isKanjiModeEnabled())),n),u=h.find_path(o.map,'start','end'),s=[];for(let t=1;t<u.length-1;t++)s.push(o.table[u[t]].node);return e.fromArray(I(s))},e.rawSplit=function(t){return e.fromArray(E(t,c.isKanjiModeEnabled()))}},1410,[1406,1411,1412,1413,1414,1408,1394,1415]);
|
|
26
|
+
__d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function n(n){this.mode=t.NUMERIC,this.data=n.toString()}n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n,o,s;for(n=0;n+3<=this.data.length;n+=3)o=this.data.substr(n,3),s=parseInt(o,10),t.put(s,10);const i=this.data.length-n;i>0&&(o=this.data.substr(n),s=parseInt(o,10),t.put(s,3*i+1))},m.exports=n},1411,[1406]);
|
|
27
|
+
__d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',' ','$','%','*','+','-','.','/',':'];function i(n){this.mode=t.ALPHANUMERIC,this.data=n}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let h=45*n.indexOf(this.data[i]);h+=n.indexOf(this.data[i+1]),t.put(h,11)}this.data.length%2&&t.put(n.indexOf(this.data[i]),6)},m.exports=i},1412,[1406]);
|
|
28
|
+
__d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function n(n){this.mode=t.BYTE,this.data='string'==typeof n?(new TextEncoder).encode(n):new Uint8Array(n)}n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(let n=0,o=this.data.length;n<o;n++)t.put(this.data[n],8)},m.exports=n},1413,[1406]);
|
|
29
|
+
__d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=r(d[1]);function i(n){this.mode=t.KANJI,this.data=n}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let o=n.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else{if(!(o>=57408&&o<=60351))throw new Error('Invalid SJIS character: '+this.data[i]+"\nMake sure your charset is UTF-8");o-=49472}o=192*(o>>>8&255)+(255&o),t.put(o,13)}},m.exports=i},1414,[1406,1394]);
|
|
30
|
+
__d(function(g,r,i,_a,m,e,_d){'use strict';var t={single_source_shortest_paths:function(o,s,u){var n={},a={};a[s]=0;var h,f,p,_,c,v,d,l=t.PriorityQueue.make();for(l.push(s,0);!l.empty();)for(p in f=(h=l.pop()).value,_=h.cost,c=o[f]||{})c.hasOwnProperty(p)&&(v=_+c[p],d=a[p],(void 0===a[p]||d>v)&&(a[p]=v,l.push(p,v),n[p]=f));if(void 0!==u&&void 0===a[u]){var y=['Could not find a path from ',s,' to ',u,'.'].join('');throw new Error(y)}return n},extract_shortest_path_from_predecessor_list:function(t,o){for(var s=[],u=o;u;)s.push(u),t[u],u=t[u];return s.reverse(),s},find_path:function(o,s,u){var n=t.single_source_shortest_paths(o,s,u);return t.extract_shortest_path_from_predecessor_list(n,u)},PriorityQueue:{make:function(o){var s,u=t.PriorityQueue,n={};for(s in o=o||{},u)u.hasOwnProperty(s)&&(n[s]=u[s]);return n.queue=[],n.sorter=o.sorter||u.default_sorter,n},default_sorter:function(t,o){return t.cost-o.cost},push:function(t,o){var s={value:t,cost:o};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};void 0!==m&&(m.exports=t)},1415,[]);
|
|
31
|
+
__d(function(g,r,i,a,m,_e,d){const t=r(d[0]);function e(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+'px',e.style.width=n+'px'}function n(){try{return document.createElement('canvas')}catch(t){throw new Error('You need to specify a canvas element')}}_e.render=function(o,c,s){let u=s,h=c;void 0!==u||c&&c.getContext||(u=c,c=void 0),c||(h=n()),u=t.getOptions(u);const l=t.getImageWidth(o.modules.size,u),p=h.getContext('2d'),y=p.createImageData(l,l);return t.qrToImageData(y.data,o,u),e(p,h,l),p.putImageData(y,0,0),h},_e.renderToDataURL=function(t,e,n){let o=n;void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={});const c=_e.render(t,e,o),s=o.type||'image/png',u=o.rendererOpts||{};return c.toDataURL(s,u.quality)}},1416,[1417]);
|
|
32
|
+
__d(function(g,r,_i,a,m,e,d){function t(t){if('number'==typeof t&&(t=t.toString()),'string'!=typeof t)throw new Error('Color should be defined as hex string');let o=t.slice().replace('#','').split('');if(o.length<3||5===o.length||o.length>8)throw new Error('Invalid hex color: '+t);3!==o.length&&4!==o.length||(o=Array.prototype.concat.apply([],o.map(function(t){return[t,t]}))),6===o.length&&o.push('F','F');const n=parseInt(o.join(''),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:'#'+o.slice(0,6).join('')}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const n=void 0===o.margin||null===o.margin||o.margin<0?4:o.margin,i=o.width&&o.width>=21?o.width:void 0,l=o.scale||4;return{width:i,scale:i?4:l,margin:n,color:{dark:t(o.color.dark||'#000000ff'),light:t(o.color.light||'#ffffffff')},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(t,o){return o.width&&o.width>=t+2*o.margin?o.width/(t+2*o.margin):o.scale},e.getImageWidth=function(t,o){const n=e.getScale(t,o);return Math.floor((t+2*o.margin)*n)},e.qrToImageData=function(t,o,n){const i=o.modules.size,l=o.modules.data,c=e.getScale(i,n),f=Math.floor((i+2*n.margin)*c),h=n.margin*c,s=[n.color.light,n.color.dark];for(let o=0;o<f;o++)for(let u=0;u<f;u++){let p=4*(o*f+u),w=n.color.light;if(o>=h&&u>=h&&o<f-h&&u<f-h){w=s[l[Math.floor((o-h)/c)*i+Math.floor((u-h)/c)]?1:0]}t[p++]=w.r,t[p++]=w.g,t[p++]=w.b,t[p]=w.a}}},1417,[]);
|
|
33
|
+
__d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function o(t,o){const n=t.a/255,i=o+'="'+t.hex+'"';return n<1?i+' '+o+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function n(t,o,n){let i=t+o;return void 0!==n&&(i+=' '+n),i}function i(t,o,i){let l='',h=0,s=!1,c=0;for(let u=0;u<t.length;u++){const f=Math.floor(u%o),w=Math.floor(u/o);f||s||(s=!0),t[u]?(c++,u>0&&f>0&&t[u-1]||(l+=s?n('M',f+i,.5+w+i):n('m',h,0),h=0,s=!1),f+1<o&&t[u+1]||(l+=n('h',c),c=0)):h++}return l}e.render=function(n,l,h){const s=t.getOptions(l),c=n.modules.size,u=n.modules.data,f=c+2*s.margin,w=s.color.light.a?'<path '+o(s.color.light,'fill')+' d="M0 0h'+f+'v'+f+'H0z"/>':'',p='<path '+o(s.color.dark,'stroke')+' d="'+i(u,c,s.margin)+'"/>',v="viewBox=\"0 0 "+f+' '+f+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':'')+v+' shape-rendering="crispEdges">'+w+p+'</svg>\n';return'function'==typeof h&&h(null,x),x}},1418,[1417]);
|
|
34
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.PasskeysSection=function(){const e=(0,s.c)(26),{t:n}=(0,o.useTranslation)(),t=(0,v.useNotice)(),l=(0,k.usePasskeys)(),I=(0,k.usePasskeySecondFactor)(),b=(0,k.useSetPasskeySecondFactor)();let h;e[0]!==t||e[1]!==n?(h=e=>t({title:n("v2.signIn.passkeys.addFailed"),message:e}),e[0]=t,e[1]=n,e[2]=h):h=e[2];const S=(0,p.usePasskeyEnrolment)(h);let R;e[3]!==l.data?(R=l.data??[],e[3]=l.data,e[4]=R):R=e[4];const A=R,w=!0===I.data;let _,C,F,T,U;e[5]!==n?(_=n("v2.signIn.passkeys.title"),e[5]=n,e[6]=_):_=e[6];e[7]!==A||e[8]!==l.isPending||e[9]!==n?(C=l.isPending?(0,x.jsx)(y.Row,{icon:u.KeyRound,label:n("v2.signIn.loading")}):0===A.length?(0,x.jsx)(P.EmptyState,{fill:!1,icon:u.KeyRound,title:n("v2.signIn.passkeys.none")}):A.map(j),e[7]=A,e[8]=l.isPending,e[9]=n,e[10]=C):C=e[10];e[11]!==S||e[12]!==A.length||e[13]!==t||e[14]!==w||e[15]!==b||e[16]!==n?(F=A.length>0||w?(0,x.jsx)(f.ToggleRow,{icon:u.ShieldCheck,label:n("v2.signIn.passkeys.secondFactor"),description:n("v2.signIn.passkeys.secondFactorHint"),value:w,onValueChange:e=>{b.mutate(e,{onError:e=>t({title:n("v2.signIn.saveFailed"),message:e.message})})},last:null===S}):null,e[11]=S,e[12]=A.length,e[13]=t,e[14]=w,e[15]=b,e[16]=n,e[17]=F):F=e[17];e[18]!==S||e[19]!==n?(T=null!==S?(0,x.jsx)(y.Row,{icon:u.Plus,label:S.opening?n("v2.signIn.working"):n("v2.signIn.passkeys.add"),onPress:S.open,last:!0}):(0,x.jsx)(y.Row,{label:n("v2.signIn.passkeys.addElsewhere"),last:!0}),e[18]=S,e[19]=n,e[20]=T):T=e[20];e[21]!==_||e[22]!==C||e[23]!==F||e[24]!==T?(U=(0,x.jsxs)(c.Section,{title:_,children:[C,F,T]}),e[21]=_,e[22]=C,e[23]=F,e[24]=T,e[25]=U):U=e[25];return U};var s=r(d[0]);r(d[1]);var n=e(r(d[2])),t=e(r(d[3])),l=e(r(d[4])),o=r(d[5]),u=r(d[6]),c=r(d[7]),y=r(d[8]),f=r(d[9]),v=r(d[10]),I=r(d[11]),b=r(d[12]),h=r(d[13]),k=r(d[14]),p=r(d[15]),S=r(d[16]),P=r(d[17]),x=r(d[18]);function j(e){return(0,x.jsx)(R,{passkey:e},e.credentialId)}function R(e){const c=(0,s.c)(58),{passkey:y}=e,{t:f}=(0,o.useTranslation)(),{colors:p}=(0,b.useTheme)(),P=(0,v.useConfirm)(),j=(0,v.useNotice)(),R=(0,I.useDateLocale)(),A=(0,k.useRemovePasskey)(),w=(0,S.useReauth)();let _;c[0]!==R?(_=e=>new Date(e).toLocaleDateString(R),c[0]=R,c[1]=_):_=c[1];const C=_;let F;c[2]!==y.label||c[3]!==f?(F=y.label.length>0?y.label:f("v2.signIn.passkeys.unnamed"),c[2]=y.label,c[3]=f,c[4]=F):F=c[4];const T=F;let U,z,E;c[5]!==C||c[6]!==y.createdAt||c[7]!==f?(U=f("v2.signIn.passkeys.added",{date:C(y.createdAt)}),c[5]=C,c[6]=y.createdAt,c[7]=f,c[8]=U):U=c[8],c[9]!==C||c[10]!==y.lastUsedAt||c[11]!==f?(z=null!==y.lastUsedAt?f("v2.signIn.passkeys.lastUsed",{date:C(y.lastUsedAt)}):f("v2.signIn.passkeys.neverUsed"),c[9]=C,c[10]=y.lastUsedAt,c[11]=f,c[12]=z):z=c[12],c[13]!==U||c[14]!==z?(E=[U,z],c[13]=U,c[14]=z,c[15]=E):E=c[15];const L=E.join(" \xb7 ");let M;c[16]!==P||c[17]!==T||c[18]!==j||c[19]!==y.credentialId||c[20]!==w||c[21]!==A||c[22]!==f?(M=()=>{P({title:f("v2.signIn.passkeys.removeTitle",{label:T}),message:f("v2.signIn.passkeys.removeBody"),confirmLabel:f("v2.signIn.remove"),destructive:!0}).then(e=>e?w(f("v2.signIn.reauth.actionRemovePasskey")):null).then(e=>{null!==e&&A.mutate({credentialId:y.credentialId,reauthToken:e.reauthToken},{onError:e=>j({title:f("v2.signIn.passkeys.removeFailed"),message:e.message})})})},c[16]=P,c[17]=T,c[18]=j,c[19]=y.credentialId,c[20]=w,c[21]=A,c[22]=f,c[23]=M):M=c[23];const N=M;let D,B,G,K,O,W,H,V;c[24]!==p.borderSubtle?(D={flexDirection:"row",alignItems:"center",gap:h.SPACING.lg,paddingHorizontal:h.SPACING.xl,paddingVertical:h.SPACING.lg,borderBottomWidth:1,borderBottomColor:p.borderSubtle},c[24]=p.borderSubtle,c[25]=D):D=c[25],c[26]!==p.foregroundMuted?(B=(0,x.jsx)(u.KeyRound,{size:18,color:p.foregroundMuted}),c[26]=p.foregroundMuted,c[27]=B):B=c[27],c[28]===Symbol.for("react.memo_cache_sentinel")?(G={flex:1,gap:2},c[28]=G):G=c[28],c[29]!==p.foreground?(K={color:p.foreground,fontSize:15,fontWeight:"500"},c[29]=p.foreground,c[30]=K):K=c[30],c[31]!==T||c[32]!==K?(O=(0,x.jsx)(n.default,{style:K,numberOfLines:1,children:T}),c[31]=T,c[32]=K,c[33]=O):O=c[33],c[34]!==p.foregroundSubtle?(W={color:p.foregroundSubtle,fontSize:12},c[34]=p.foregroundSubtle,c[35]=W):W=c[35],c[36]!==L||c[37]!==W?(H=(0,x.jsx)(n.default,{style:W,numberOfLines:1,children:L}),c[36]=L,c[37]=W,c[38]=H):H=c[38],c[39]!==O||c[40]!==H?(V=(0,x.jsxs)(t.default,{style:G,children:[O,H]}),c[39]=O,c[40]=H,c[41]=V):V=c[41];const q=A.isPending;let J,Q,X,Y,Z;return c[42]!==p.danger?(J={color:p.danger,fontSize:14,fontWeight:"600"},c[42]=p.danger,c[43]=J):J=c[43],c[44]!==f?(Q=f("v2.signIn.remove"),c[44]=f,c[45]=Q):Q=c[45],c[46]!==J||c[47]!==Q?(X=(0,x.jsx)(n.default,{style:J,children:Q}),c[46]=J,c[47]=Q,c[48]=X):X=c[48],c[49]!==N||c[50]!==A.isPending||c[51]!==X?(Y=(0,x.jsx)(l.default,{accessibilityRole:"button",hitSlop:8,disabled:q,onPress:N,children:X}),c[49]=N,c[50]=A.isPending,c[51]=X,c[52]=Y):Y=c[52],c[53]!==V||c[54]!==Y||c[55]!==D||c[56]!==B?(Z=(0,x.jsxs)(t.default,{style:D,children:[B,V,Y]}),c[53]=V,c[54]=Y,c[55]=D,c[56]=B,c[57]=Z):Z=c[57],Z}},1419,[787,16,193,114,247,815,836,869,1033,870,976,861,789,834,1036,1420,1031,956,10]);
|
|
35
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PASSKEY_ENROLMENT_PATH",{enumerable:!0,get:function(){return l}}),_e.hubPageUrl=f,_e.usePasskeyEnrolment=function(e){const u=(0,t.c)(7),{server:d}=(0,s.useServer)(),y=(0,c.useBrowserHandoff)(),[_,p]=(0,n.useState)(!1);if(null===d)return null;const b=d.serverUrl;let v;u[0]!==y||u[1]!==e||u[2]!==b?(v=()=>{p(!0);(async()=>{await o.default.openURL(f(b,l))})().catch(t=>e(t instanceof Error?t.message:String(t))).finally(()=>p(!1))},u[0]=y,u[1]=e,u[2]=b,u[3]=v):v=u[3];const P=v;let O;u[4]!==P||u[5]!==_?(O={opening:_,open:P},u[4]=P,u[5]=_,u[6]=O):O=u[6];return O};var e,t=r(_d[0]),n=r(_d[1]),u=r(_d[2]),o=(e=u)&&e.__esModule?e:{default:e};r(_d[3]);!(function(e){if(e&&e.__esModule)return e;var t={};e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e})(r(_d[4]));var s=r(_d[5]),c=r(_d[6]);const l='/system/my-access';function f(e,t){return`${e.replace(/\/+$/,'')}${t}`}},1420,[787,16,225,109,1425,970,1036]);
|
|
36
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.LinkedAccountsSection=function(){const e=(0,n.c)(35),{t:l}=(0,s.useTranslation)(),t=(0,k.useNotice)(),o=(0,u.useQueryClient)(),{server:b,sessionToken:h}=(0,I.useServer)(),p=(0,j.useLinkedAccounts)(),A=(0,x.useLinkFlow)(),_=(0,L.useReauth)();let R,T,C;if(e[0]!==p.data||e[1]!==A||e[2]!==t||e[3]!==o||e[4]!==_||e[5]!==b?.serverUrl||e[6]!==h||e[7]!==l){let n;R=p.data?.linked??[],C=void 0!==p.data?(0,S.providersToLink)(p.data.linkable,R):[],e[11]!==t||e[12]!==o||e[13]!==b?.serverUrl||e[14]!==h||e[15]!==l?(n=e=>{o.invalidateQueries({queryKey:(0,j.authSelfKey)(b?.serverUrl??null,h,"linked")}),"linked"===e.kind&&t({title:l("v2.signIn.linked.done")}),"error"===e.kind&&t({title:l("v2.signIn.linked.failed"),message:l(`v2.signIn.linked.refused.${e.reason}`,{defaultValue:e.reason})})},e[11]=t,e[12]=o,e[13]=b?.serverUrl,e[14]=h,e[15]=l,e[16]=n):n=e[16];const s=n;let u;e[17]!==A||e[18]!==t||e[19]!==_||e[20]!==s||e[21]!==l?(u=e=>{null!==A&&_(l("v2.signIn.reauth.actionLink")).then(n=>null===n?null:A.start(e,n.reauthToken)).then(e=>{null!==e&&s(e)},e=>{t({title:l("v2.signIn.linked.failed"),message:e instanceof Error?e.message:String(e)})})},e[17]=A,e[18]=t,e[19]=_,e[20]=s,e[21]=l,e[22]=u):u=e[22];const v=u;T=[...R.map(w),...null!==A?C.map(e=>(0,P.jsx)(f.Row,{icon:c.Plus,label:A.pending===e.provider?l("v2.signIn.working"):l("v2.signIn.linked.link",{provider:e.label}),onPress:()=>v(e.provider)},`link:${e.provider}`)):[]],e[0]=p.data,e[1]=A,e[2]=t,e[3]=o,e[4]=_,e[5]=b?.serverUrl,e[6]=h,e[7]=l,e[8]=R,e[9]=T,e[10]=C}else R=e[8],T=e[9],C=e[10];const E=T;let U,z,M;e[23]!==l?(U=l("v2.signIn.linked.title"),e[23]=l,e[24]=U):U=e[24];e[25]!==p||e[26]!==A||e[27]!==R||e[28]!==E||e[29]!==l||e[30]!==C?(z=p.isPending?(0,P.jsx)(f.Row,{icon:c.Link2,label:l("v2.signIn.loading"),last:!0}):p.isError?(0,P.jsx)(y.ErrorState,{fill:!1,title:l("v2.signIn.loadFailed"),onRetry:()=>{p.refetch()}}):(0,P.jsxs)(P.Fragment,{children:[0===R.length?(0,P.jsx)(y.EmptyState,{fill:!1,icon:c.Link2,title:l("v2.signIn.linked.none")}):null,E,null===A&&C.length>0?(0,P.jsx)(f.Row,{label:l("v2.signIn.linked.linkElsewhere"),last:!0}):(0,P.jsx)(f.Row,{label:l("v2.signIn.linked.hint"),last:!0})]}),e[25]=p,e[26]=A,e[27]=R,e[28]=E,e[29]=l,e[30]=C,e[31]=z):z=e[31];e[32]!==U||e[33]!==z?(M=(0,P.jsx)(v.Section,{title:U,children:z}),e[32]=U,e[33]=z,e[34]=M):M=e[34];return M};var n=r(d[0]);r(d[1]);var l=e(r(d[2])),t=e(r(d[3])),o=e(r(d[4])),s=r(d[5]),u=r(d[6]),c=r(d[7]),v=r(d[8]),f=r(d[9]),k=r(d[10]),b=r(d[11]),h=r(d[12]),p=r(d[13]),I=r(d[14]),j=r(d[15]),S=r(d[16]),x=r(d[17]),L=r(d[18]),y=r(d[19]),P=r(d[20]);function w(e){return(0,P.jsx)(A,{account:e},`${e.provider}|${e.subject}`)}function A(e){const u=(0,n.c)(54),{account:v}=e,{t:f}=(0,s.useTranslation)(),{colors:I}=(0,h.useTheme)(),S=(0,k.useConfirm)(),x=(0,k.useNotice)(),L=(0,b.useDateLocale)(),y=(0,j.useUnlinkAccount)(),w=v.providerLabel??v.provider,A=v.accountLabel;let R,T,C;u[0]!==v.linkedAt||u[1]!==L||u[2]!==f?(R=f("v2.signIn.linked.since",{date:new Date(v.linkedAt).toLocaleDateString(L)}),u[0]=v.linkedAt,u[1]=L,u[2]=f,u[3]=R):R=u[3],u[4]!==v.available||u[5]!==f?(T=v.available?null:f("v2.signIn.linked.unavailable"),u[4]=v.available,u[5]=f,u[6]=T):T=u[6],u[7]!==v.accountLabel||u[8]!==R||u[9]!==T?(C=[A,R,T].filter(_),u[7]=v.accountLabel,u[8]=R,u[9]=T,u[10]=C):C=u[10];const E=C.join(" \xb7 ");let U;u[11]!==v.provider||u[12]!==v.subject||u[13]!==S||u[14]!==x||u[15]!==w||u[16]!==f||u[17]!==y?(U=()=>{S({title:f("v2.signIn.linked.unlinkTitle",{provider:w}),message:f("v2.signIn.linked.unlinkBody"),confirmLabel:f("v2.signIn.linked.unlink"),destructive:!0}).then(e=>{e&&y.mutate({provider:v.provider,subject:v.subject},{onError:e=>x({title:f("v2.signIn.linked.unlinkFailed"),message:e.message})})})},u[11]=v.provider,u[12]=v.subject,u[13]=S,u[14]=x,u[15]=w,u[16]=f,u[17]=y,u[18]=U):U=u[18];const z=U,M=v.available?1:.6;let N,D,F,$,B,G,O,W;u[19]!==I.borderSubtle||u[20]!==M?(N={flexDirection:"row",alignItems:"center",gap:p.SPACING.lg,paddingHorizontal:p.SPACING.xl,paddingVertical:p.SPACING.lg,borderBottomWidth:1,borderBottomColor:I.borderSubtle,opacity:M},u[19]=I.borderSubtle,u[20]=M,u[21]=N):N=u[21],u[22]!==I.foregroundMuted?(D=(0,P.jsx)(c.Link2,{size:18,color:I.foregroundMuted}),u[22]=I.foregroundMuted,u[23]=D):D=u[23],u[24]===Symbol.for("react.memo_cache_sentinel")?(F={flex:1,gap:2},u[24]=F):F=u[24],u[25]!==I.foreground?($={color:I.foreground,fontSize:15,fontWeight:"500"},u[25]=I.foreground,u[26]=$):$=u[26],u[27]!==w||u[28]!==$?(B=(0,P.jsx)(t.default,{style:$,numberOfLines:1,children:w}),u[27]=w,u[28]=$,u[29]=B):B=u[29],u[30]!==I.foregroundSubtle?(G={color:I.foregroundSubtle,fontSize:12},u[30]=I.foregroundSubtle,u[31]=G):G=u[31],u[32]!==E||u[33]!==G?(O=(0,P.jsx)(t.default,{style:G,numberOfLines:2,children:E}),u[32]=E,u[33]=G,u[34]=O):O=u[34],u[35]!==B||u[36]!==O?(W=(0,P.jsxs)(o.default,{style:F,children:[B,O]}),u[35]=B,u[36]=O,u[37]=W):W=u[37];const K=y.isPending;let Q,V,q,H,J;return u[38]!==I.danger?(Q={color:I.danger,fontSize:14,fontWeight:"600"},u[38]=I.danger,u[39]=Q):Q=u[39],u[40]!==f?(V=f("v2.signIn.linked.unlink"),u[40]=f,u[41]=V):V=u[41],u[42]!==Q||u[43]!==V?(q=(0,P.jsx)(t.default,{style:Q,children:V}),u[42]=Q,u[43]=V,u[44]=q):q=u[44],u[45]!==z||u[46]!==q||u[47]!==y.isPending?(H=(0,P.jsx)(l.default,{accessibilityRole:"button",hitSlop:8,disabled:K,onPress:z,children:q}),u[45]=z,u[46]=q,u[47]=y.isPending,u[48]=H):H=u[48],u[49]!==W||u[50]!==H||u[51]!==N||u[52]!==D?(J=(0,P.jsxs)(o.default,{style:N,children:[D,W,H]}),u[49]=W,u[50]=H,u[51]=N,u[52]=D,u[53]=J):J=u[53],J}function _(e){return null!==e}},1421,[787,16,247,193,114,815,852,836,869,1033,976,861,789,834,970,1036,1424,1422,1031,956,10]);
|
|
37
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useLinkFlow=function(){const{server:l}=(0,t.useServer)(),{controller:c}=(0,o.useConnection)(),v=(0,u.useBeginLink)(),[p,w]=((0,u.useClaimLink)(),(0,n.useState)(null));if(null===l)return null;const k=async(n,t)=>{const o=l.serverUrl,u=(0,s.openLinkPopup)();try{const l=await v.mutateAsync({provider:n,reauthToken:t});return null===u?(window.location.assign(new URL(l,o).toString()),{kind:'closed'}):await(0,s.runLinkPopup)(u,l,o)}catch(n){throw u?.close(),n}};return{pending:p,start:async(n,t)=>{w(n);try{return await k(n,t)}finally{w(null)}}}};var n=r(d[0]);r(d[1]),r(d[2]),r(d[3]);var t=r(d[4]),o=r(d[5]);r(d[6]);var u=r(d[7]);r(d[8]);var s=r(d[9])},1422,[16,109,478,1425,970,816,1426,1036,1424,1423]);
|
|
38
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SSO_POPUP_MESSAGE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SSO_POPUP_ACK",{enumerable:!0,get:function(){return t}}),e.withPopupFlag=l,e.linkOutcomeFromQuery=c,e.profileQueryOf=p,e.openLinkPopup=function(){try{return window.open('about:blank',o,s)??null}catch{return null}},e.runLinkPopup=function(n,o,s){const f=new URL(s).origin;return n.location.href=new URL(l(o),s).toString(),new Promise(o=>{let s=!1;const l=n=>{s||(s=!0,window.removeEventListener('message',w),window.clearInterval(y),o(n))},w=o=>{if(o.source!==n||o.origin!==f)return;const s=p(o.data);null!==s&&(n.postMessage({type:t},f),l(c(s)))};window.addEventListener('message',w);const y=window.setInterval(()=>{n.closed&&l({kind:'closed'})},u)})};const n='camstack:sso-return',t='camstack:sso-ack',o='camstack-sso',s='popup=yes,width=520,height=680,resizable=yes,scrollbars=yes',u=500;function l(n){const t=new URL(n,'http://placeholder.invalid');return t.searchParams.set('popup','1'),/^[a-z][a-z0-9+.-]*:/i.test(n)?t.toString():`${t.pathname}${t.search}${t.hash}`}function c(n){const t=new URLSearchParams(n),o=t.get('linkError');return null!==o?{kind:'error',reason:o}:t.has('linked')?{kind:'linked'}:{kind:'closed'}}function p(t){if('object'!=typeof t||null===t)return null;const o=t;if(o.type!==n)return null;const s=o.completion;return'object'!=typeof s||null===s?null:'profile'===s.target&&'string'==typeof s.query?s.query:null}},1423,[]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as Cd,o as h0,p as Ed,q as Ft,r as _t,j as Tt}from"./index-
|
|
1
|
+
import{n as Cd,o as h0,p as Ed,q as Ft,r as _t,j as Tt}from"./index-MQQHp0MZ.js";const bd=Math.PI/180;function xd(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const aa=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},J={_global:aa,version:"10.3.0",isBrowser:xd(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return J.angleDeg?o*bd:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_renderBackend:"web",legacyTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return J.DD.isDragging},isTransforming(){var o,e;return(e=(o=J.Transformer)===null||o===void 0?void 0:o.isTransforming())!==null&&e!==void 0?e:!1},isDragReady(){return!!J.DD.node},releaseCanvasOnDestroy:!0,document:aa.document,_injectGlobal(o){typeof aa.Konva<"u"&&console.error("Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment."),aa.Konva=o}},Lt=o=>{J[o.prototype.getClassName()]=o};J._injectGlobal(J);const Td=`Konva.js unsupported environment.
|
|
2
2
|
|
|
3
3
|
Looks like you are trying to use Konva.js in Node.js environment. because "document" object is undefined.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as J,a as Q,r as i,i as ee,b as te,j as s,W as re,T as E,G as se}from"./index-
|
|
1
|
+
import{u as J,a as Q,r as i,i as ee,b as te,j as s,W as re,T as E,G as se}from"./index-MQQHp0MZ.js";import{MaskShapeCanvas as ne}from"./MaskShapeCanvas-DI4BY7W2-D4utSYZf.js";var ie=110,oe="motion-zones",$=0,ae=[1,2,3],L=1,M="rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-medium text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors",O="rounded-md border border-primary/50 bg-primary/15 px-2.5 py-1 text-[11px] font-medium text-primary hover:bg-primary/25 disabled:opacity-40 transition-colors";function H(l,r,e){const h=r*e,c=Array.from({length:h});for(let g=0;g<h;g+=1)c[g]=l[g]===!0;return c}function le(l,r){if(l.length!==r.length)return!1;for(let e=0;e<l.length;e+=1)if(l[e]!==r[e])return!1;return!0}function b(l,r){return Math.ceil(l/r)}function R(l,r,e){return Math.min(e-1,Math.floor((l+.5)/r*e))}function w(l,r,e,h){const c=b(r,h),g=b(e,h),o=Array.from({length:c*g},()=>!1);for(let a=0;a<e;a+=1){const p=R(a,e,g);for(let u=0;u<r;u+=1)l[a*r+u]===!0&&(o[p*c+R(u,r,c)]=!0)}return o}function Z(l,r,e,h){const c=b(r,h),g=b(e,h),o=Array.from({length:r*e},()=>!1);for(let a=0;a<e;a+=1){const p=R(a,e,g);for(let u=0;u<r;u+=1)o[a*r+u]=l[p*c+R(u,r,c)]===!0}return o}function ue({deviceId:l}){const r=J(Q().trpcClient,l),[e,h]=i.useState(null),[c,g]=i.useState(!1),[o,a]=i.useState(null),[p,u]=i.useState(null),[d,T]=i.useState(L),[x,D]=i.useState(!1),[j,P]=i.useState(!1),I=i.useRef(!1);i.useEffect(()=>{if(!r)return;let t=!1;return I.current=!1,h(null),g(!1),a(null),u(null),T(L),P(!1),(async()=>{try{const n=await r.motionZones?.getOptions({});if(t)return;if(!n)throw new Error("device proxy not ready");if(h(n),I.current)return;const y=await r.motionZones?.getStatus({});if(t)return;if(!y)throw new Error("device proxy not ready");I.current=!0;const k=y.regions.find(_=>_.shape.kind==="grid"),S=H(k?k.shape.cells:[],n.grid.width,n.grid.height);u(S),a(w(S,n.grid.width,n.grid.height,L))}catch(n){if(t)return;ee(n)?g(!0):console.error("Motion Zones load failed",n)}})(),()=>{t=!0}},[r]);const f=e?e.grid.width:0,m=e?e.grid.height:0,v=b(f,d),C=b(m,d),N=i.useMemo(()=>o&&e?Z(o,f,m,d):null,[o,e,f,m,d]),U=i.useMemo(()=>N!==null&&p!==null&&!le(N,p),[N,p]),Y=i.useMemo(()=>N?N.reduce((t,n)=>n?t+1:t,0):0,[N]),q=f*m,A=v*C,z=i.useCallback(t=>{A>0&&a(Array.from({length:A},()=>t))},[A]),B=i.useCallback(()=>{a(t=>t&&t.map(n=>!n))},[]),F=i.useCallback(()=>{p&&e&&a(w(p,f,m,d))},[p,e,f,m,d]),V=i.useCallback(t=>{t===d||!e||a(n=>{if(!n)return T(t),n;const y=w(Z(n,f,m,d),f,m,t);return T(t),y})},[d,e,f,m]),G=i.useMemo(()=>e&&o?[{id:$,shape:{kind:"grid",gridWidth:v,gridHeight:C,cells:[...o]}}]:[],[e,o,v,C]),W=i.useCallback((t,n)=>{n.kind==="grid"&&a(n.cells)},[]),K=i.useCallback(async()=>{if(!(!r||!o||!e)){D(!0);try{const t=Z(o,e.grid.width,e.grid.height,d),n={kind:"grid",gridWidth:e.grid.width,gridHeight:e.grid.height,cells:t};await r.motionZones?.setZone({patch:{regions:[{id:$,enabled:!0,shape:n}]}});const y=await r.motionZones?.getStatus({});if(y){const k=y.regions.find(_=>_.shape.kind==="grid"),S=H(k?k.shape.cells:[],e.grid.width,e.grid.height);u(S),a(w(S,e.grid.width,e.grid.height,d))}}catch(t){console.error("Motion Zones save failed",t)}finally{D(!1)}}},[r,o,e,d]);te(i.useMemo(()=>j&&!c&&e&&o?{id:oe,order:ie,node:s.jsx(ne,{transparent:!0,items:G,supportedShapes:["grid"],grid:{width:v,height:C},selectedId:$,onSelect:()=>{},onShapeChange:W,onDrawComplete:()=>{},drawingKind:null})}:null,[j,c,e,o,G,W,v,C]));const X=!c&&e!==null&&o!==null;return r?s.jsx(re,{title:"Motion Zones",icon:s.jsx(se,{className:"h-3.5 w-3.5 text-foreground-subtle"}),children:s.jsx("div",{className:"flex flex-col gap-3",children:c?s.jsx("p",{className:`${E} leading-relaxed`,children:"This camera doesn't expose an on-board motion zones grid."}):X?s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:`${E} leading-relaxed`,children:["Toggle ",s.jsx("strong",{className:"text-foreground",children:"Edit grid"})," to paint the region directly on the live frame, then ",s.jsx("strong",{className:"text-foreground",children:"Save"})," to push the mask to the camera. Pick a bigger"," ",s.jsx("strong",{className:"text-foreground",children:"Cell size"})," for quicker, broad-stroke painting — it's resampled to the camera's native ",e.grid.width,"×",e.grid.height," grid on save (×1 is the finest)."]}),s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("button",{type:"button",onClick:()=>P(t=>!t),disabled:x,"aria-pressed":j,className:j?O:M,children:j?"Done editing":"Edit grid"}),s.jsx("button",{type:"button",onClick:()=>z(!0),disabled:x,className:M,children:"All on"}),s.jsx("button",{type:"button",onClick:()=>z(!1),disabled:x,className:M,children:"All off"}),s.jsx("button",{type:"button",onClick:B,disabled:x,className:M,children:"Invert"}),s.jsxs("div",{className:"flex items-center gap-1 ml-1",role:"group","aria-label":"Cell size",children:[s.jsx("span",{className:`${E} mr-0.5`,children:"Cell size"}),ae.map(t=>s.jsxs("button",{type:"button",onClick:()=>V(t),disabled:x,"aria-pressed":d===t,title:t===1?`Camera grid ${f}×${m} (finest)`:`${b(f,t)}×${b(m,t)} painting grid · cells ×${t} bigger`,className:d===t?O:M,children:["×",t]},t))]}),s.jsxs("span",{className:`${E} ml-1 tabular-nums`,children:[Y," / ",q," cells · ",e.grid.width,"×",e.grid.height,d!==1?` · paint ${v}×${C}`:""]}),s.jsx("span",{className:"flex-1"}),s.jsx("button",{type:"button",onClick:F,disabled:x||!U,className:"rounded-md border border-border bg-surface px-2 py-1 text-[11px] text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors",children:"Revert"}),s.jsx("button",{type:"button",onClick:()=>{K()},disabled:x||!U,className:O,children:x?"Saving…":"Save"})]})]}):s.jsx("p",{className:`${E} leading-relaxed`,children:"Loading the camera's grid…"})})}):null}export{ue as MotionZonesSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Z,u as de,a as ce,r as a,i as ue,b as pe,j as n,W as ge,T as M,S as fe,d as he,M as be,E as me}from"./index-
|
|
1
|
+
import{c as Z,u as de,a as ce,r as a,i as ue,b as pe,j as n,W as ge,T as M,S as fe,d as he,M as be,E as me}from"./index-MQQHp0MZ.js";import{MaskShapeCanvas as xe}from"./MaskShapeCanvas-DI4BY7W2-D4utSYZf.js";var ye=Z("hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);var ke=Z("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]),ve="Microphone",Me="The camera encodes no audio at all — live view, recordings, exports and the audio analyzer are all silent.";function Se(i){const r=i.supportsAudioMute===!0,s=r?i.audioEnabled:null,h=i.pendingOn??null;return{label:ve,supported:r,on:s===null?null:h??s,available:r&&s!==null,costWhenOff:Me}}function we(i){return!i.available||i.on===null?null:{enabled:!i.on}}var je=120,Ne="privacy-mask",S="rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-medium text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors",y="rounded-md border border-primary/50 bg-primary/15 px-2.5 py-1 text-[11px] font-medium text-primary hover:bg-primary/25 disabled:opacity-40 transition-colors";function J(i){return i.kind==="rect"||i.kind==="polygon"?i:null}function Ce(i){const r=new Set(i.map(h=>h.id));let s=0;for(;r.has(s);)s+=1;return s}function Ee(i,r){if(i.length!==r.length)return!1;for(let s=0;s<i.length;s+=1)if(JSON.stringify(i[s])!==JSON.stringify(r[s]))return!1;return!0}function Oe({deviceId:i}){const r=de(ce().trpcClient,i),[s,h]=a.useState(null),[w,z]=a.useState(!1),[D,_]=a.useState(!1),[l,p]=a.useState(null),[g,E]=a.useState(null),[u,$]=a.useState(!1),[k,j]=a.useState(!1),[A,f]=a.useState(null),[b,m]=a.useState(null),[X,N]=a.useState(null),[I,R]=a.useState(null),[W,O]=a.useState(null),T=a.useRef(!1);a.useEffect(()=>{if(!r)return;let e=!1;return T.current=!1,h(null),z(!1),_(!1),p(null),E(null),j(!1),f(null),m(null),N(null),R(null),O(null),(async()=>{try{const t=await r.privacyMask?.getOptions({});if(e)return;if(!t)throw new Error("device proxy not ready");if(h(t),T.current)return;const o=await r.privacyMask?.getStatus({});if(e)return;if(!o)throw new Error("device proxy not ready");if(o.regions===null){_(!0),N(o.audioEnabled);return}T.current=!0;const c={enabled:o.enabled,regions:o.regions};E(c),p(c),N(o.audioEnabled)}catch(t){if(e)return;ue(t)?z(!0):console.error("Privacy Mask load failed",t)}})(),()=>{e=!0}},[r]);const L=a.useMemo(()=>l!==null&&g!==null&&(l.enabled!==g.enabled||!Ee(l.regions,g.regions)),[l,g]),P=l?l.regions.length:0,v=s?s.maxRegions:0,V=a.useRef(0);a.useEffect(()=>{V.current=v},[v]);const C=v>0&&P>=v,G=a.useCallback(()=>{p(e=>e&&{...e,enabled:!e.enabled})},[]),F=a.useCallback(e=>{f(typeof e=="number"?e:null)},[]),H=a.useMemo(()=>l?l.regions.map(e=>({id:e.id,shape:e.shape,enabled:e.enabled,label:`Zone ${String(e.id)}`})):[],[l]),Y=a.useCallback((e,t)=>{const o=J(t);o&&p(c=>c&&{...c,regions:c.regions.map(x=>x.id===e?{...x,shape:o}:x)})},[]),q=a.useCallback(e=>{const t=J(e);t&&(m(null),p(o=>{if(!o)return o;const c=V.current;if(c>0&&o.regions.length>=c)return o;const x=Ce(o.regions),ie={id:x,enabled:!0,shape:t};return f(x),{...o,regions:[...o.regions,ie]}}))},[]),B=a.useCallback(e=>{j(!0),f(null),m(e)},[]),Q=a.useCallback(e=>{j(!0),m(null),f(e)},[]),ee=a.useCallback(e=>{f(t=>t===e?null:t),p(t=>t&&{...t,regions:t.regions.filter(o=>o.id!==e)})},[]),ne=a.useCallback(()=>{m(null),f(null),g&&p({enabled:g.enabled,regions:g.regions})},[g]),te=a.useCallback(async()=>{if(!(!r||!l)){$(!0);try{await r.privacyMask?.setMask({patch:{enabled:l.enabled,regions:[...l.regions]}});const e=await r.privacyMask?.getStatus({});if(e&&e.regions!==null){const t={enabled:e.enabled,regions:e.regions};E(t),p(t)}}catch(e){console.error("Privacy Mask save failed",e)}finally{$(!1)}}},[r,l]),d=Se({supportsAudioMute:s===null?null:s.supportsAudioMute,audioEnabled:X,pendingOn:I}),ae=a.useCallback(async()=>{const e=we(d);if(!(!r||e===null)){R(e.enabled),O(null);try{await r.privacyMask?.setAudioEnabled(e);const t=await r.privacyMask?.getStatus({});t&&N(t.audioEnabled)}catch(t){console.error("Privacy microphone write failed — reverting",t),O(t instanceof Error?t.message:String(t))}finally{R(null)}}},[r,d]),se=a.useCallback(()=>{j(e=>(e&&(m(null),f(null)),!e))},[]),K=s?.supportedShapes??[];pe(a.useMemo(()=>k&&!w&&s&&l?{id:Ne,order:je,node:n.jsx(xe,{transparent:!0,items:H,supportedShapes:K,polygonVertices:s.polygonVertices,selectedId:A,onSelect:F,onShapeChange:Y,onDrawComplete:q,drawingKind:b})}:null,[k,w,s,l,H,K,A,F,Y,q,b]));const re=s?.supportedShapes.includes("rect")??!1,oe=s?.supportedShapes.includes("polygon")??!1,U=s!==null&&(s.maxRegions<=0||s.supportedShapes.length===0),le=!w&&!U&&!D&&s!==null&&l!==null;return r?n.jsx(ge,{title:"Privacy Mask",icon:n.jsx(me,{className:"h-3.5 w-3.5 text-foreground-subtle"}),children:n.jsxs("div",{className:"flex flex-col gap-3",children:[w||U?n.jsx("p",{className:`${M} leading-relaxed`,children:"This camera doesn't support an on-board privacy mask."}):D?n.jsx("p",{className:`${M} leading-relaxed`,children:"This camera hasn't answered, so what it currently masks is unknown — the editor stays closed rather than showing an empty frame you could save over. A battery camera answers once it wakes; otherwise check that it is reachable."}):le?n.jsxs(n.Fragment,{children:[n.jsxs("p",{className:`${M} leading-relaxed`,children:["Toggle ",n.jsx("strong",{className:"text-foreground",children:"Edit mask"})," to draw blanked-out zones on the live frame, then ",n.jsx("strong",{className:"text-foreground",children:"Save"})," to push them to the camera. Drag a rectangle to move, its corner to resize; drag polygon vertices, click an edge midpoint to add one, or right-click a vertex to remove it."]}),n.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n.jsx("button",{type:"button",onClick:se,disabled:u,"aria-pressed":k,className:k?y:S,children:k?"Done editing":"Edit mask"}),n.jsx("button",{type:"button",onClick:G,disabled:u,"aria-pressed":l.enabled,className:l.enabled?y:S,children:l.enabled?"Mask on":"Mask off"}),re&&n.jsx("button",{type:"button",onClick:()=>B("rect"),disabled:u||C,"aria-pressed":b==="rect",className:b==="rect"?y:S,title:C?"Maximum zones reached":"Add a rectangle zone",children:"+ Rect"}),oe&&n.jsx("button",{type:"button",onClick:()=>B("polygon"),disabled:u||C,"aria-pressed":b==="polygon",className:b==="polygon"?y:S,title:C?"Maximum zones reached":"Add a polygon zone",children:"+ Polygon"}),n.jsxs("span",{className:`${M} ml-1 tabular-nums`,children:[P," / ",v," zones"]}),n.jsx("span",{className:"flex-1"}),n.jsx("button",{type:"button",onClick:ne,disabled:u||!L,className:"rounded-md border border-border bg-surface px-2 py-1 text-[11px] text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors",children:"Revert"}),n.jsx("button",{type:"button",onClick:()=>{te()},disabled:u||!L,className:y,children:u?"Saving…":"Save"})]}),P>0?n.jsx("div",{className:"flex flex-col gap-1",children:l.regions.map(e=>{const t=A===e.id,o=e.shape.kind==="polygon"?ye:fe;return n.jsxs("div",{className:`flex items-center gap-2 rounded-md border px-2 py-1 transition-colors ${t?"border-primary/50 bg-primary/10":"border-border bg-surface"}`,children:[n.jsxs("button",{type:"button",onClick:()=>Q(e.id),disabled:u,className:"flex flex-1 items-center gap-2 text-left text-[11px] font-medium text-foreground-subtle hover:text-foreground disabled:opacity-40 transition-colors",children:[n.jsx(o,{className:"h-3.5 w-3.5 shrink-0"}),n.jsxs("span",{children:["Zone ",e.id]}),n.jsx("span",{className:"text-foreground-faint capitalize",children:e.shape.kind})]}),n.jsx("button",{type:"button",onClick:()=>ee(e.id),disabled:u,"aria-label":`Delete zone ${String(e.id)}`,title:"Delete zone",className:"inline-flex h-6 w-6 items-center justify-center rounded border border-border bg-surface text-foreground-subtle hover:border-red-400/40 hover:bg-red-500/10 hover:text-red-400 disabled:opacity-40 transition-colors",children:n.jsx(he,{className:"h-3.5 w-3.5"})})]},e.id)})}):null]}):n.jsx("p",{className:`${M} leading-relaxed`,children:"Loading the camera's privacy mask…"}),d.supported&&n.jsxs("div",{className:"flex items-start gap-3 rounded-md border border-border bg-surface px-2 py-2",children:[n.jsx("button",{type:"button",role:"switch","aria-label":d.label,"aria-checked":d.on===!0,disabled:!d.available||I!==null,onClick:()=>{ae()},title:d.on===null?"Microphone — state unknown; the camera did not answer.":d.on?`The camera is capturing sound. Turning it off: ${d.costWhenOff}`:`The camera is silent. ${d.costWhenOff}`,className:d.on===!1||d.on===null?S:y,children:n.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.on===!1?n.jsx(ke,{className:"h-3.5 w-3.5"}):n.jsx(be,{className:"h-3.5 w-3.5"}),d.on===null?"Microphone unknown":d.on?"Microphone on":"Microphone off"]})}),n.jsx("p",{className:"text-[10px] text-foreground-subtle flex-1 leading-relaxed",children:W!==null?`Write failed: ${W}`:d.on===null?"The camera did not report its microphone, so this state is unknown.":d.costWhenOff})]})]})}):null}export{Oe as PrivacyMaskSettings};
|