PageSourceSearch

https://thestreamlinefactory.com/assets/ResourcesPage-CbRoCIKG.js

js thestreamlinefactory.com collected 2026-09-24 14:19:50 UTC 99,084 bytes, 4 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jspdf.es.min-BMXi3cja.js","assets/index-DiEum5Ju.js","assets/react-vendor-C-_weJGF.js","assets/query-DA-B5yju.js","assets/radix-CMA3xQgM.js","assets/icons-BZJMmL1V.js","assets/supabase-BppBjPB2.js","assets/motion-CfmjrLVm.js","assets/index-BH3lxn6K.css"])))=>i.map(i=>d[i]);
2import{i as Er,k as bt,r as E,j as o,L as Or}from"./react-vendor-C-_weJGF.js";import{B as Ue,s as Fe,t as se,_ as Ge,P as Rr}from"./index-DiEum5Ju.js";import{C as Cr,b as Ar,c as Tr,a as Nr}from"./card-D9fxEFKG.js";import{I as Fr}from"./input-TSEJWV9X.js";import{L as Kt}from"./label-Dam5lWpQ.js";import{C as zr}from"./checkbox-DfGG00FH.js";import{O as Ve,Q as xt,D as Br,V as $r,l as Ir,A as Xt,f as Dr,X as Lr,W as qr,d as _t,S as Mr,_ as Hr,$ as Wr,a0 as Gr,U as Vr}from"./icons-BZJMmL1V.js";import"./query-DA-B5yju.js";import"./radix-CMA3xQgM.js";import"./supabase-BppBjPB2.js";import"./motion-CfmjrLVm.js";function Ye(e){"@babel/helpers - typeof";return Ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(e)}function Kr(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yr(e,t,r){return t=Ee(t),Zr(e,st()?Reflect.construct(t,r||[],Ee(e).constructor):t.apply(e,r))}function Zr(e,t){if(t&&(Ye(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jr(e)}function Jr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pe(e,t)}function Ze(e){var t=typeof Map=="function"?new Map:void 0;return Ze=function(n){if(n===null||!tn(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return en(n,arguments,Ee(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Pe(i,n)},Ze(e)}function en(e,t,r){if(st())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&Pe(i,r.prototype),i}function st(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(st=function(){return!!e})()}function tn(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Pe(e,t){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pe(e,t)}function Ee(e){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ee(e)}var ze=function(e){function t(r){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(Xr(this,t),n=Yr(this,t,[r]),n.originalRequest=s,n.originalResponse=f,n.causingError=i,i!=null&&(r+=", caused by ".concat(i.toString())),s!=null){var h=s.getHeader("X-Request-ID")||"n/a",d=s.getMethod(),b=s.getURL(),S=f?f.getStatus():"n/a",v=f?f.getBody()||"":"n/a";r+=", originated from request (method: ".concat(d,", url: ").concat(b,", response code: ").concat(S,", response text: ").concat(v,", request id: ").concat(h,")")}return n.message=r,n}return Qr(t,e),Kr(t)}(Ze(Error));function Oe(e){"@babel/helpers - typeof";return Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(e)}function rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,an(n.key),n)}}function on(e,t,r){return t&&nn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function an(e){var t=sn(e,"string");return Oe(t)=="symbol"?t:t+""}function sn(e,t){if(Oe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ln=function(){function e(){rn(this,e)}return on(e,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,n){return Promise.resolve(null)}}])}();const Yt="3.7.8",un=Yt,je=typeof Buffer=="function",wt=typeof TextDecoder=="function"?new TextDecoder:void 0,jt=typeof TextEncoder=="function"?new TextEncoder:void 0,cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=",Se=Array.prototype.slice.call(cn),Be=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(Se),fn=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,L=String.fromCharCode.bind(String),St=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Zt=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Jt=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Qt=e=>{let t,r,n,i,s="";const f=e.length%3;for(let h=0;h<e.length;){if((r=e.charCodeAt(h++))>255||(n=e.charCodeAt(h++))>255||(i=e.charCodeAt(h++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,s+=Se[t>>18&63]+Se[t>>12&63]+Se[t>>6&63]+Se[t&63]}return f?s.slice(0,f-3)+"===".substring(f):s},lt=typeof btoa=="function"?e=>btoa(e):je?e=>Buffer.from(e,"binary").toString("base64"):Qt,Je=je?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(L.apply(null,e.subarray(n,n+4096)));return lt(r.join(""))},$e=(e,t=!1)=>t?Zt(Je(e)):Je(e),dn=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?L(192|t>>>6)+L(128|t&63):L(224|t>>>12&15)+L(128|t>>>6&63)+L(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return L(240|t>>>18&7)+L(128|t>>>12&63)+L(128|t>>>6&63)+L(128|t&63)}},pn=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,er=e=>e.replace(pn,dn),kt=je?e=>Buffer.from(e,"utf8").toString("base64"):jt?e=>Je(jt.encode(e)):e=>lt(er(e)),_e=(e,t=!1)=>t?Zt(kt(e)):kt(e),Ut=e=>_e(e,!0),hn=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,mn=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return L((r>>>10)+55296)+L((r&1023)+56320);case 3:return L((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return L((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},tr=e=>e.replace(hn,mn),rr=e=>{if(e=e.replace(/\s+/g,""),!fn.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r,n,i=[];for(let s=0;s<e.length;)t=Be[e.charAt(s++)]<<18|Be[e.charAt(s++)]<<12|(r=Be[e.charAt(s++)])<<6|(n=Be[e.charAt(s++)]),r===64?i.push(L(t>>16&255)):n===64?i.push(L(t>>16&255,t>>8&255)):i.push(L(t>>16&255,t>>8&255,t&255));return i.join("")},ut=typeof atob=="function"?e=>atob(Jt(e)):je?e=>Buffer.from(e,"base64").toString("binary"):rr,nr=je?e=>St(Buffer.from(e,"base64")):e=>St(ut(e).split("").map(t=>t.charCodeAt(0))),or=e=>nr(ir(e)),yn=je?e=>Buffer.from(e,"base64").toString("utf8"):wt?e=>wt.decode(nr(e)):e=>tr(ut(e)),ir=e=>Jt(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Qe=e=>yn(ir(e)),gn=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},ar=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),sr=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,ar(r));e("fromBase64",function(){return Qe(this)}),e("toBase64",function(t){return _e(this,t)}),e("toBase64URI",function(){return _e(this,!0)}),e("toBase64URL",function(){return _e(this,!0)}),e("toUint8Array",function(){return or(this)})},lr=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,ar(r));e("toBase64",function(t){return $e(this,t)}),e("toBase64URI",function(){return $e(this,!0)}),e("toBase64URL",function(){return $e(this,!0)})},vn=()=>{sr(),lr()},bn={version:Yt,VERSION:un,atob:ut,atobPolyfill:rr,btoa:lt,btoaPolyfill:Qt,fromBase64:Qe,toBase64:_e,encode:_e,encodeURI:Ut,encodeURL:Ut,utob:er,btou:tr,decode:Qe,isValid:gn,fromUint8Array:$e,toUint8Array:or,extendString:sr,extendUint8Array:lr,extendBuiltins:vn};var xn=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},ct={},_n=Object.prototype.hasOwnProperty,wn;function Pt(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Et(e){try{return encodeURIComponent(e)}catch{return null}}function jn(e){for(var t=/([^=?#&]+)=?([^&]*)/g,r={},n;n=t.exec(e);){var i=Pt(n[1]),s=Pt(n[2]);i===null||s===null||i in r||(r[i]=s)}return r}function Sn(e,t){t=t||"";var r=[],n,i;typeof t!="string"&&(t="?");for(i in e)if(_n.call(e,i)){if(n=e[i],!n&&(n===null||n===wn||isNaN(n))&&(n=""),i=Et(i),n=Et(n),i===null||n===null)continue;r.push(i+"="+n)}return r.length?t+r.join("&"):""}ct.stringify=Sn;ct.parse=jn;var ur=xn,We=ct,kn=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,cr=/[\n\r\t]/g,Un=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,fr=/:\d+$/,Pn=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,En=/^[a-zA-Z]:/;function ft(e){return(e||"").toString().replace(kn,"")}var et=[["#","hash"],["?","query"],function(t,r){return oe(r.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Ot={hash:1,query:1};function dr(e){var t;typeof window<"u"?t=window:typeof bt<"u"?t=bt:typeof self<"u"?t=self:t={};var r=t.location||{};e=e||r;var n={},i=typeof e,s;if(e.protocol==="blob:")n=new ie(unescape(e.pathname),{});else if(i==="string"){n=new ie(e,{});for(s in Ot)delete n[s]}else if(i==="object"){for(s in e)s in Ot||(n[s]=e[s]);n.slashes===void 0&&(n.slashes=Un.test(e.href))}return n}function oe(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function pr(e,t){e=ft(e),e=e.replace(cr,""),t=t||{};var r=Pn.exec(e),n=r[1]?r[1].toLowerCase():"",i=!!r[2],s=!!r[3],f=0,h;return i?s?(h=r[2]+r[3]+r[4],f=r[2].length+r[3].length):(h=r[2]+r[4],f=r[2].length):s?(h=r[3]+r[4],f=r[3].length):h=r[4],n==="file:"?f>=2&&(h=h.slice(2)):oe(n)?h=r[4]:n?i&&(h=h.slice(2)):f>=2&&oe(t.protocol)&&(h=r[4]),{protocol:n,slashes:i||oe(n),slashesCount:f,rest:h}}function On(e,t){if(e==="")return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,i=r[n-1],s=!1,f=0;n--;)r[n]==="."?r.splice(n,1):r[n]===".."?(r.splice(n,1),f++):f&&(n===0&&(s=!0),r.splice(n,1),f--);return s&&r.unshift(""),(i==="."||i==="..")&&r.push(""),r.join("/")}function ie(e,t,r){if(e=ft(e),e=e.replace(cr,""),!(this instanceof ie))return new ie(e,t,r);var n,i,s,f,h,d,b=et.slice(),S=typeof t,v=this,$=0;for(S!=="object"&&S!=="string"&&(r=t,t=null),r&&typeof r!="function"&&(r=We.parse),t=dr(t),i=pr(e||"",t),n=!i.protocol&&!i.slashes,v.slashes=i.slashes||n&&t.slashes,v.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||En.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!oe(v.protocol)))&&(b[3]=[/(.*)/,"pathname"]);$<b.length;$++){if(f=b[$],typeof f=="function"){e=f(e,v);continue}s=f[0],d=f[1],s!==s?v[d]=e:typeof s=="string"?(h=s==="@"?e.lastIndexOf(s):e.indexOf(s),~h&&(typeof f[2]=="number"?(v[d]=e.slice(0,h),e=e.slice(h+f[2])):(v[d]=e.slice(h),e=e.slice(0,h)))):(h=s.exec(e))&&(v[d]=h[1],e=e.slice(0,h.index)),v[d]=v[d]||n&&f[3]&&t[d]||"",f[4]&&(v[d]=v[d].toLowerCase())}r&&(v.query=r(v.query)),n&&t.slashes&&v.pathname.charAt(0)!=="/"&&(v.pathname!==""||t.pathname!=="")&&(v.pathname=On(v.pathname,t.pathname)),v.pathname.charAt(0)!=="/"&&oe(v.protocol)&&(v.pathname="/"+v.pathname),ur(v.port,v.protocol)||(v.host=v.hostname,v.port=""),v.username=v.password="",v.auth&&(h=v.auth.indexOf(":"),~h?(v.username=v.auth.slice(0,h),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=v.auth.slice(h+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(v.auth)),v.auth=v.password?v.username+":"+v.password:v.username),v.origin=v.protocol!=="file:"&&oe(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString()}function Rn(e,t,r){var n=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(r||We.parse)(t)),n[e]=t;break;case"port":n[e]=t,ur(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,fr.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var i=e==="pathname"?"/":"#";n[e]=t.charAt(0)!==i?i+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(n.username=t.slice(0,s),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(s+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var f=0;f<et.length;f++){var h=et[f];h[4]&&(n[h[1]]=n[h[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin=n.protocol!=="file:"&&oe(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n}function Cn(e){(!e||typeof e!="function")&&(e=We.stringify);var t,r=this,n=r.host,i=r.protocol;i&&i.charAt(i.length-1)!==":"&&(i+=":");var s=i+(r.protocol&&r.slashes||oe(r.protocol)?"//":"");return r.username?(s+=r.username,r.password&&(s+=":"+r.password),s+="@"):r.password?(s+=":"+r.password,s+="@"):r.protocol!=="file:"&&oe(r.protocol)&&!n&&r.pathname!=="/"&&(s+="@"),(n[n.length-1]===":"||fr.test(r.hostname)&&!r.port)&&(n+=":"),s+=n+r.pathname,t=typeof r.query=="object"?e(r.query):r.query,t&&(s+=t.charAt(0)!=="?"?"?"+t:t),r.hash&&(s+=r.hash),s}ie.prototype={set:Rn,toString:Cn};ie.extractProtocol=pr;ie.location=dr;ie.trimLeft=ft;ie.qs=We;var An=ie;const Tn=Er(An);function Nn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}function tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(u,a,l){u[a]=l.value},s=typeof Symbol=="function"?Symbol:{},f=s.iterator||"@@iterator",h=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function b(u,a,l){return Object.defineProperty(u,a,{value:l,enumerable:!0,configurable:!0,writable:!0}),u[a]}try{b({},"")}catch{b=function(l,y,g){return l[y]=g}}function S(u,a,l,y){var g=a&&a.prototype instanceof Z?a:Z,p=Object.create(g.prototype),j=new ee(y||[]);return i(p,"_invoke",{value:ce(u,l,j)}),p}function v(u,a,l){try{return{type:"normal",arg:u.call(a,l)}}catch(y){return{type:"throw",arg:y}}}t.wrap=S;var $="suspendedStart",ue="suspendedYield",Y="executing",K="completed",O={};function Z(){}function R(){}function F(){}var q={};b(q,f,function(){return this});var ae=Object.getPrototypeOf,V=ae&&ae(ae(re([])));V&&V!==r&&n.call(V,f)&&(q=V);var W=F.prototype=Z.prototype=Object.create(q);function X(u){["next","throw","return"].forEach(function(a){b(u,a,function(l){return this._invoke(a,l)})})}function G(u,a){function l(g,p,j,k){var U=v(u[g],u,p);if(U.type!=="throw"){var T=U.arg,N=T.value;return N&&pe(N)=="object"&&n.call(N,"__await")?a.resolve(N.__await).then(function(B){l("next",B,j,k)},function(B){l("throw",B,j,k)}):a.resolve(N).then(function(B){T.value=B,j(T)},function(B){return l("throw",B,j,k)})}k(U.arg)}var y;i(this,"_invoke",{value:function(p,j){function k(){return new a(function(U,T){l(p,j,U,T)})}return y=y?y.then(k,k):k()}})}function ce(u,a,l){var y=$;return function(g,p){if(y===Y)throw Error("Generator is already running");if(y===K){if(g==="throw")throw p;return{value:e,done:!0}}for(l.method=g,l.arg=p;;){var j=l.delegate;if(j){var k=fe(j,l);if(k){if(k===O)continue;return k}}if(l.method==="next")l.sent=l._sent=l.arg;else if(l.method==="throw"){if(y===$)throw y=K,l.arg;l.dispatchException(l.arg)}else l.method==="return"&&l.abrupt("return",l.arg);y=Y;var U=v(u,a,l);if(U.type==="normal"){if(y=l.done?K:ue,U.arg===O)continue;return{value:U.arg,done:l.done}}U.type==="throw"&&(y=K,l.method="throw",l.arg=U.arg)}}}function fe(u,a){var l=a.method,y=u.iterator[l];if(y===e)return a.delegate=null,l==="throw"&&u.iterator.return&&
vendor: 4,127 bytes, line 2
2(a.method="return",a.arg=e,fe(u,a),a.method==="throw")||l!=="return"&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+l+"' method")),O;var g=v(y,u.iterator,a.arg);if(g.type==="throw")return a.method="throw",a.arg=g.arg,a.delegate=null,O;var p=g.arg;return p?p.done?(a[u.resultName]=p.value,a.next=u.nextLoc,a.method!=="return"&&(a.method="next",a.arg=e),a.delegate=null,O):p:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,O)}function me(u){var a={tryLoc:u[0]};1 in u&&(a.catchLoc=u[1]),2 in u&&(a.finallyLoc=u[2],a.afterLoc=u[3]),this.tryEntries.push(a)}function Q(u){var a=u.completion||{};a.type="normal",delete a.arg,u.completion=a}function ee(u){this.tryEntries=[{tryLoc:"root"}],u.forEach(me,this),this.reset(!0)}function re(u){if(u||u===""){var a=u[f];if(a)return a.call(u);if(typeof u.next=="function")return u;if(!isNaN(u.length)){var l=-1,y=function g(){for(;++l<u.length;)if(n.call(u,l))return g.value=u[l],g.done=!1,g;return g.value=e,g.done=!0,g};return y.next=y}}throw new TypeError(pe(u)+" is not iterable")}return R.prototype=F,i(W,"constructor",{value:F,configurable:!0}),i(F,"constructor",{value:R,configurable:!0}),R.displayName=b(F,d,"GeneratorFunction"),t.isGeneratorFunction=function(u){var a=typeof u=="function"&&u.constructor;return!!a&&(a===R||(a.displayName||a.name)==="GeneratorFunction")},t.mark=function(u){return Object.setPrototypeOf?Object.setPrototypeOf(u,F):(u.__proto__=F,b(u,d,"GeneratorFunction")),u.prototype=Object.create(W),u},t.awrap=function(u){return{__await:u}},X(G.prototype),b(G.prototype,h,function(){return this}),t.AsyncIterator=G,t.async=function(u,a,l,y,g){g===void 0&&(g=Promise);var p=new G(S(u,a,l,y),g);return t.isGeneratorFunction(a)?p:p.next().then(function(j){return j.done?j.value:p.next()})},X(W),b(W,d,"Generator"),b(W,f,function(){return this}),b(W,"toString",function(){return"[object Generator]"}),t.keys=function(u){var a=Object(u),l=[];for(var y in a)l.push(y);return l.reverse(),function g(){for(;l.length;){var p=l.pop();if(p in a)return g.value=p,g.done=!1,g}return g.done=!0,g}},t.values=re,ee.prototype={constructor:ee,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Q),!a)for(var l in this)l.charAt(0)==="t"&&n.call(this,l)&&!isNaN(+l.slice(1))&&(this[l]=e)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if(a.type==="throw")throw a.arg;return this.rval},dispatchException:function(a){if(this.done)throw a;var l=this;function y(T,N){return j.type="throw",j.arg=a,l.next=T,N&&(l.method="next",l.arg=e),!!N}for(var g=this.tryEntries.length-1;g>=0;--g){var p=this.tryEntries[g],j=p.completion;if(p.tryLoc==="root")return y("end");if(p.tryLoc<=this.prev){var k=n.call(p,"catchLoc"),U=n.call(p,"finallyLoc");if(k&&U){if(this.prev<p.catchLoc)return y(p.catchLoc,!0);if(this.prev<p.finallyLoc)return y(p.finallyLoc)}else if(k){if(this.prev<p.catchLoc)return y(p.catchLoc,!0)}else{if(!U)throw Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return y(p.finallyLoc)}}}},abrupt:function(a,l){for(var y=this.tryEntries.length-1;y>=0;--y){var g=this.tryEntries[y];if(g.tryLoc<=this.prev&&n.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var p=g;break}}p&&(a==="break"||a==="continue")&&p.tryLoc<=l&&l<=p.finallyLoc&&(p=null);var j=p?p.completion:{};return j.type=a,j.arg=l,p?(this.method="next",this.next=p.finallyLoc,O):this.complete(j)},complete:function(a,l){if(a.type==="throw")throw a.arg;return a.type==="break"||a.type==="continue"?this.next=a.arg:a.type==="return"?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):a.type==="normal"&&l&&(this.next=l),O},finish:function(a){for(var l=this.tryEntries.length-1;l>=0;--l){var y=this.tryEntries[l];if(y.finallyLoc===a)return this.complete(y.completion,y.afterLoc),Q(y),O}},catch:function(a){for(var l=this.tryEntries.length-1;l>=0;--l){var y=this.tryEntries[l];if(y.tryLoc===a){var g=y.completion;if(g.type==="throw"){var p=g.arg;Q(y)}return p}}throw Error("illegal catch attempt")}
2,delegateYield:function(a,l,y){return this.delegate={iterator:re(a),resultName:l,nextLoc:y},this.method==="next"&&(this.arg=e),O}},t}function Rt(e,t,r,n,i,s,f){try{var h=e[s](f),d=h.value}catch(b){r(b);return}h.done?t(d):Promise.resolve(d).then(n,i)}function Fn(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function f(d){Rt(s,n,i,f,h,"next",d)}function h(d){Rt(s,n,i,f,h,"throw",d)}f(void 0)})}}function hr(e,t){return $n(e)||Bn(e,t)||mr(e,t)||zn()}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bn(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,f,h=[],d=!0,b=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(d=(n=s.call(r)).done)&&(h.push(n.value),h.length!==t);d=!0);}catch(S){b=!0,i=S}finally{try{if(!d&&r.return!=null&&(f=r.return(),Object(f)!==f))return}finally{if(b)throw i}}return h}}function $n(e){if(Array.isArray(e))return e}function pe(e){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(e)}function In(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=mr(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(b){throw b},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,f=!1,h;return{s:function(){r=r.call(e)},n:function(){var b=r.next();return s=b.done,b},e:function(b){f=!0,h=b},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function mr(e,t){if(e){if(typeof e=="string")return Ct(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ct(e,t)}}function Ct(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function At(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?At(Object(r),!0).forEach(function(n){Dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dn(e,t,r){return t=yr(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yr(n.key),n)}}function qn(e,t,r){return t&&Tt(e.prototype,t),r&&Tt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yr(e){var t=Mn(e,"string");return pe(t)=="symbol"?t:t+""}function Mn(e,t){if(pe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ie="tus-v1",De="ietf-draft-03",ke="ietf-draft-05",Hn={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:gr,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,
4storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null,protocol:Ie},Le=function(){function e(t,r){Ln(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return qn(e,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,n=this.file;if(!n){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(![Ie,De,ke].includes(this.options.protocol)){this._emitError(new Error("tus: unsupported protocol ".concat(this.options.protocol)));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var i=this.options.retryDelays;if(i!=null&&Object.prototype.toString.call(i)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var s=0,f=["uploadUrl","uploadSize","uploadLengthDeferred"];s<f.length;s++){var h=f[s];if(this.options[h]){this._emitError(new Error("tus: cannot use the ".concat(h," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(n,this.options).then(function(d){return r._fingerprint=d,r._source?r._source:r.options.fileReader.openFile(n,r.options.chunkSize)}).then(function(d){if(r._source=d,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload()}).catch(function(d){r._emitError(d)})}},{key:"_startParallelUpload",value:function(){var r,n=this,i=this._size,s=0;this._parallelUploads=[];var f=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,h=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:Gn(this._source.size,f);this._parallelUploadUrls&&h.forEach(function(S,v){S.uploadUrl=n._parallelUploadUrls[v]||null}),this._parallelUploadUrls=new Array(h.length);var d=h.map(function(S,v){var $=0;return n._source.slice(S.start,S.end).then(function(ue){var Y=ue.value;return new Promise(function(K,O){var Z=ye(ye({},n.options),{},{uploadUrl:S.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:n.options.metadataForPartialUploads,headers:ye(ye({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:K,onError:O,onProgress:function(q){s=s-$+q,$=q,n._emitProgress(s,i)},onUploadUrlAvailable:function(){n._parallelUploadUrls[v]=R.url,n._parallelUploadUrls.filter(function(q){return!!q}
4).length===h.length&&n._saveUploadInUrlStorage()}}),R=new e(Y,Z);R.start(),n._parallelUploads.push(R)})})}),b;Promise.all(d).then(function(){b=n._openRequest("POST",n.options.endpoint),b.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var S=Nt(n.options.metadata);return S!==""&&b.setHeader("Upload-Metadata",S),n._sendRequest(b,null)}).then(function(S){if(!be(S.getStatus(),200)){n._emitHttpError(b,S,"tus: unexpected response while creating upload");return}var v=S.getHeader("Location");if(v==null){n._emitHttpError(b,S,"tus: invalid or missing Location header");return}n.url=$t(n.options.endpoint,v),"Created upload at ".concat(n.url),n._emitSuccess(S)}).catch(function(S){n._emitError(S)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(r){var n=this;if(this._parallelUploads!=null){var i=In(this._parallelUploads),s;try{for(i.s();!(s=i.n()).done;){var f=s.value;f.abort(r)}}catch(h){i.e(h)}finally{i.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,n,i,s){this._emitError(new ze(i,s,r,n))}},{key:"_emitError",value:function(r){var n=this;if(!this._aborted){if(this.options.retryDelays!=null){var i=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(i&&(this._retryAttempt=0),Bt(r,this._retryAttempt,this.options)){var s=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){n.start()},s);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(r){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:r})}},{key:"_emitProgress",value:function(r,n){typeof this.options.onProgress=="function"&&this.options.onProgress(r,n)}},{key:"_emitChunkComplete",value:function(r,n,i){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,n,i)}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var n=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?n.setHeader("Upload-Defer-Length","1"):n.setHeader("Upload-Length","".concat(this._size));var i=Nt(this.options.metadata);i!==""&&n.setHeader("Upload-Metadata",i);var s;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,s=this._addChunkToRequest(n)):((this.options.protocol===De||this.options.protocol===ke)&&n.setHeader("Upload-Complete","?0"),s=this._sendRequest(n,null)),s.then(function(f){if(!be(f.getStatus(),200)){r._emitHttpError(n,f,"tus: unexpected response while creating upload");return}var h=f.getHeader("Location");if(h==null){r._emitHttpError(n,f,"tus: invalid or missing Location header");return}if(r.url=$t(r.options.endpoint,h),"Created upload at ".concat(r.url),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(f),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(n,f):(r._offset=0,r._performUpload())})}).catch(function(f){r._emitHttpError(n,null,"tus: failed to create upload",f)})}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),i=this._sendRequest(n,null);i.then(function(s){var f=s.getStatus();if(!be(f,200)){if(f===423){r._emitHttpError(n,s,"tus: upload is currently locked; retry later");return}if(be(f,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(n,s,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var h=Number.parseInt(s.getHeader("Upload-Offset"),10);
4if(Number.isNaN(h)){r._emitHttpError(n,s,"tus: invalid or missing offset value");return}var d=Number.parseInt(s.getHeader("Upload-Length"),10);if(Number.isNaN(d)&&!r.options.uploadLengthDeferred&&r.options.protocol===Ie){r._emitHttpError(n,s,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(h===d){r._emitProgress(d,d),r._emitSuccess(s);return}r._offset=h,r._performUpload()})}).catch(function(s){r._emitHttpError(n,null,"tus: failed to resume upload",s)})}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var n;this.options.overridePatchMethod?(n=this._openRequest("POST",this.url),n.setHeader("X-HTTP-Method-Override","PATCH")):n=this._openRequest("PATCH",this.url),n.setHeader("Upload-Offset","".concat(this._offset));var i=this._addChunkToRequest(n);i.then(function(s){if(!be(s.getStatus(),200)){r._emitHttpError(n,s,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(n,s)}).catch(function(s){r._aborted||r._emitHttpError(n,null,"tus: failed to upload chunk at offset ".concat(r._offset),s)})}}},{key:"_addChunkToRequest",value:function(r){var n=this,i=this._offset,s=this._offset+this.options.chunkSize;return r.setProgressHandler(function(f){n._emitProgress(i+f,n._size)}),this.options.protocol===Ie?r.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===ke&&r.setHeader("Content-Type","application/partial-upload"),(s===Number.POSITIVE_INFINITY||s>this._size)&&!this.options.uploadLengthDeferred&&(s=this._size),this._source.slice(i,s).then(function(f){var h=f.value,d=f.done,b=h!=null&&h.size?h.size:0;n.options.uploadLengthDeferred&&d&&(n._size=n._offset+b,r.setHeader("Upload-Length","".concat(n._size)));var S=n._offset+b;return!n.options.uploadLengthDeferred&&d&&S!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(S," bytes"))):h===null?n._sendRequest(r):((n.options.protocol===De||n.options.protocol===ke)&&r.setHeader("Upload-Complete",d?"?1":"?0"),n._emitProgress(n._offset,n._size),n._sendRequest(r,h))})}},{key:"_handleUploadResponse",value:function(r,n){var i=Number.parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(i)){this._emitHttpError(r,n,"tus: invalid or missing offset value");return}if(this._emitProgress(i,this._size),this._emitChunkComplete(i-this._offset,i,this._size),this._offset=i,i===this._size){this._emitSuccess(n),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(r,n){var i=Ft(r,n,this.options);return this._req=i,i}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(n){r._emitError(n)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var n={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?n.parallelUploadUrls=this._parallelUploadUrls:n.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,n).then(function(i){r._urlStorageKey=i})}},{key:"_sendRequest",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return zt(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=Ft("DELETE",r,n);return zt(i,null,n).then(function(s){if(s.getStatus()!==204)throw new ze("tus: unexpected response while terminating upload",null,i,s)}).catch(function(s){if(s instanceof ze||(s=new ze("tus: failed to terminate upload",s,i,null)),!Bt(s,0,n))throw s;var f=n.retryDelays[0],h=n.retryDelays.slice(1),d=ye(ye({},n),{},{retryDelays:h});return new Promise(function(b){return setTimeout(b,f)}).then(function(){return e.terminate(r,d)})})}}])}();function Nt(e){return Object.entries(e).map(function(t){var r=hr(t,2),n=r[0],i=r[1];return"".concat(n," ").concat(bn.encode(String(i)))}).join(",")}function be(e,t){return e>=t&&e<t+100}function Ft(e,t,r){var n=r.httpStack.createRequest(e,t);r.protocol===De?n.setHeader("Upload-Draft-Interop-Version","5"):r.protocol===ke?n.setHeader("Upload-Draft-Interop-Version","6"):n.setHeader("Tus-Resumable","1.0.0");for(var i=r.headers||{},s=0,f=Object.entries(i);s<f.length;
4s++){var h=hr(f[s],2),d=h[0],b=h[1];n.setHeader(d,b)}if(r.addRequestId){var S=Nn();n.setHeader("X-Request-ID",S)}return n}function zt(e,t,r){return rt.apply(this,arguments)}function rt(){return rt=Fn(tt().mark(function e(t,r,n){var i;return tt().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(typeof n.onBeforeRequest!="function"){f.next=3;break}return f.next=3,n.onBeforeRequest(t);case 3:return f.next=5,t.send(r);case 5:if(i=f.sent,typeof n.onAfterResponse!="function"){f.next=9;break}return f.next=9,n.onAfterResponse(t,i);case 9:return f.abrupt("return",i);case 10:case"end":return f.stop()}},e)})),rt.apply(this,arguments)}function Wn(){var e=!0;return typeof navigator<"u"&&navigator.onLine===!1&&(e=!1),e}function Bt(e,t,r){return r.retryDelays==null||t>=r.retryDelays.length||e.originalRequest==null?!1:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(e,t,r):gr(e)}function gr(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!be(t,400)||t===409||t===423)&&Wn()}function $t(e,t){return new Tn(t,e).toString()}function Gn(e,t){for(var r=Math.floor(e/t),n=[],i=0;i<t;i++)n.push({start:r*i,end:r*(i+1)});return n[t-1].end=e,n}Le.defaultOptions=Hn;var vr=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function Vn(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var i=n.response;t(i)},n.onerror=function(i){r(i)},n.open("GET",e),n.send()})}var Kn=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function Xn(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){var i=new Uint8Array(n.result);t({value:i})},n.onerror=function(i){r(i)},n.readAsArrayBuffer(e)})}function Re(e){"@babel/helpers - typeof";return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(e)}function Yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qn(n.key),n)}}function Jn(e,t,r){return t&&Zn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qn(e){var t=eo(e,"string");return Re(t)=="symbol"?t:t+""}function eo(e,t){if(Re(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Re(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var It=function(){function e(t){Yn(this,e),this._file=t,this.size=t.size}return Jn(e,[{key:"slice",value:function(r,n){if(Kn())return Xn(this._file.slice(r,n));var i=this._file.slice(r,n),s=n>=this.size;return Promise.resolve({value:i,done:s})}},{key:"close",value:function(){}}])}();function Ce(e){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(e)}function to(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ro(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oo(n.key),n)}}function no(e,t,r){return t&&ro(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oo(e){var t=io(e,"string");return Ce(t)=="symbol"?t:t+""}function io(e,t){if(Ce(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ce(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Dt(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function ao(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}var so=function(){function e(t){to(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return no(e,[{key:"slice",value:function(r,n){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,n)}},{key:"_readUntilEnoughDataOrDone",value:function(r,n){var i=this,s=n<=this._bufferOffset+Dt(this._buffer);if(this._done||s){var f=this._getDataFromBuffer(r,n),h=f==null?this._done:!1;return Promise.resolve({value:f,done:h})}return this._reader.read().then(function(d){var b=d.value,S=d.done;return S?i._done=!0:i._buffer===void 0?i._buffer=b:i._buffer=ao(i._buffer,b),i._readUntilEnoughDataOrDone(r,n)})}},{key:"_getDataFromBuffer",value:function(r,n){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var i=Dt(this._buffer)===0;return this._done&&i?null:this._buffer.slice(0,n-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])}();function he(e){"@babel/helpers - typeof";return he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(e)}function nt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */nt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(u,a,l){u[a]=l.value},s=typeof Symbol=="function"?Symbol:{},f=s.iterator||"@@iterator",h=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function b(u,a,l){return Object.defineProperty(u,a,{value:l,enumerable:!0,configurable:!0,writable:!0}),u[a]}try{b({},"")}catch{b=function(l,y,g){return l[y]=g}}function S(u,a,l,y){var g=a&&a.prototype instanceof Z?a:Z,p=Object.create(g.prototype),j=new ee(y||[]);return i(p,"_invoke",{value:ce(u,l,j)}),p}function v(u,a,l){try{return{type:"normal",arg:u.call(a,l)}}catch(y){return{type:"throw",arg:y}}}t.wrap=S;var $="suspendedStart",ue="suspendedYield",Y="executing",K="completed",O={};function Z(){}function R(){}function F(){}var q={};b(q,f,function(){return this});var ae=Object.getPrototypeOf,V=ae&&ae(ae(re([])));V&&V!==r&&n.call(V,f)&&(q=V);var W=F.prototype=Z.prototype=Object.create(q);function X(u){["next","throw","return"].forEach(function(a){b(u,a,function(l){return this._invoke(a,l)})})}function G(u,a){function l(g,p,j,k){var U=v(u[g],u,p);if(U.type!=="throw"){var T=U.arg,N=T.value;return N&&he(N)=="object"&&n.call(N,"__await")?a.resolve(N.__await).then(function(B){l("next",B,j,k)},function(B){l("throw",B,j,k)}):a.resolve(N).then(function(B){T.value=B,j(T)},function(B){return l("throw",B,j,k)})}k(U.arg)}var y;i(this,"_invoke",{value:function(p,j){function k(){return new a(function(U,T){l(p,j,U,T)})}return y=y?y.then(k,k):k()}})}function ce(u,a,l){var y=$;return function(g,p){if(y===Y)throw Error("Generator is already running");if(y===K){if(g==="throw")throw p;return{value:e,done:!0}}for(l.method=g,l.arg=p;;){var j=l.delegate;if(j){var k=fe(j,l);if(k){if(k===O)continue;return k}}if(l.method==="next")l.sent=l._sent=l.arg;else if(l.method==="throw"){if(y===$)throw y=K,l.arg;l.dispatchException(l.arg)}else l.method==="return"&&l.abrupt("return",l.arg);y=Y;var U=v(u,a,l);if(U.type==="normal"){if(y=l.done?K:ue,U.arg===O)continue;return{value:U.arg,done:l.done}}U.type==="throw"&&(y=K,l.method="throw",l.arg=U.arg)}}}function fe(u,a){var l=a.method,y=u.iterator[l];if(y===e)return a.delegate=null,l==="throw"&&u.iterator.return&&
vendor: 4,127 bytes, line 4
4(a.method="return",a.arg=e,fe(u,a),a.method==="throw")||l!=="return"&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+l+"' method")),O;var g=v(y,u.iterator,a.arg);if(g.type==="throw")return a.method="throw",a.arg=g.arg,a.delegate=null,O;var p=g.arg;return p?p.done?(a[u.resultName]=p.value,a.next=u.nextLoc,a.method!=="return"&&(a.method="next",a.arg=e),a.delegate=null,O):p:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,O)}function me(u){var a={tryLoc:u[0]};1 in u&&(a.catchLoc=u[1]),2 in u&&(a.finallyLoc=u[2],a.afterLoc=u[3]),this.tryEntries.push(a)}function Q(u){var a=u.completion||{};a.type="normal",delete a.arg,u.completion=a}function ee(u){this.tryEntries=[{tryLoc:"root"}],u.forEach(me,this),this.reset(!0)}function re(u){if(u||u===""){var a=u[f];if(a)return a.call(u);if(typeof u.next=="function")return u;if(!isNaN(u.length)){var l=-1,y=function g(){for(;++l<u.length;)if(n.call(u,l))return g.value=u[l],g.done=!1,g;return g.value=e,g.done=!0,g};return y.next=y}}throw new TypeError(he(u)+" is not iterable")}return R.prototype=F,i(W,"constructor",{value:F,configurable:!0}),i(F,"constructor",{value:R,configurable:!0}),R.displayName=b(F,d,"GeneratorFunction"),t.isGeneratorFunction=function(u){var a=typeof u=="function"&&u.constructor;return!!a&&(a===R||(a.displayName||a.name)==="GeneratorFunction")},t.mark=function(u){return Object.setPrototypeOf?Object.setPrototypeOf(u,F):(u.__proto__=F,b(u,d,"GeneratorFunction")),u.prototype=Object.create(W),u},t.awrap=function(u){return{__await:u}},X(G.prototype),b(G.prototype,h,function(){return this}),t.AsyncIterator=G,t.async=function(u,a,l,y,g){g===void 0&&(g=Promise);var p=new G(S(u,a,l,y),g);return t.isGeneratorFunction(a)?p:p.next().then(function(j){return j.done?j.value:p.next()})},X(W),b(W,d,"Generator"),b(W,f,function(){return this}),b(W,"toString",function(){return"[object Generator]"}),t.keys=function(u){var a=Object(u),l=[];for(var y in a)l.push(y);return l.reverse(),function g(){for(;l.length;){var p=l.pop();if(p in a)return g.value=p,g.done=!1,g}return g.done=!0,g}},t.values=re,ee.prototype={constructor:ee,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Q),!a)for(var l in this)l.charAt(0)==="t"&&n.call(this,l)&&!isNaN(+l.slice(1))&&(this[l]=e)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if(a.type==="throw")throw a.arg;return this.rval},dispatchException:function(a){if(this.done)throw a;var l=this;function y(T,N){return j.type="throw",j.arg=a,l.next=T,N&&(l.method="next",l.arg=e),!!N}for(var g=this.tryEntries.length-1;g>=0;--g){var p=this.tryEntries[g],j=p.completion;if(p.tryLoc==="root")return y("end");if(p.tryLoc<=this.prev){var k=n.call(p,"catchLoc"),U=n.call(p,"finallyLoc");if(k&&U){if(this.prev<p.catchLoc)return y(p.catchLoc,!0);if(this.prev<p.finallyLoc)return y(p.finallyLoc)}else if(k){if(this.prev<p.catchLoc)return y(p.catchLoc,!0)}else{if(!U)throw Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return y(p.finallyLoc)}}}},abrupt:function(a,l){for(var y=this.tryEntries.length-1;y>=0;--y){var g=this.tryEntries[y];if(g.tryLoc<=this.prev&&n.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var p=g;break}}p&&(a==="break"||a==="continue")&&p.tryLoc<=l&&l<=p.finallyLoc&&(p=null);var j=p?p.completion:{};return j.type=a,j.arg=l,p?(this.method="next",this.next=p.finallyLoc,O):this.complete(j)},complete:function(a,l){if(a.type==="throw")throw a.arg;return a.type==="break"||a.type==="continue"?this.next=a.arg:a.type==="return"?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):a.type==="normal"&&l&&(this.next=l),O},finish:function(a){for(var l=this.tryEntries.length-1;l>=0;--l){var y=this.tryEntries[l];if(y.finallyLoc===a)return this.complete(y.completion,y.afterLoc),Q(y),O}},catch:function(a){for(var l=this.tryEntries.length-1;l>=0;--l){var y=this.tryEntries[l];if(y.tryLoc===a){var g=y.completion;if(g.type==="throw"){var p=g.arg;Q(y)}return p}}throw Error("illegal catch attempt")}
4,delegateYield:function(a,l,y){return this.delegate={iterator:re(a),resultName:l,nextLoc:y},this.method==="next"&&(this.arg=e),O}},t}function Lt(e,t,r,n,i,s,f){try{var h=e[s](f),d=h.value}catch(b){r(b);return}h.done?t(d):Promise.resolve(d).then(n,i)}function lo(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function f(d){Lt(s,n,i,f,h,"next",d)}function h(d){Lt(s,n,i,f,h,"throw",d)}f(void 0)})}}function uo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function co(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,po(n.key),n)}}function fo(e,t,r){return t&&co(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function po(e){var t=ho(e,"string");return he(t)=="symbol"?t:t+""}function ho(e,t){if(he(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(he(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mo=function(){function e(){uo(this,e)}
4return fo(e,[{key:"openFile",value:function(){var t=lo(nt().mark(function n(i,s){var f;return nt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!(vr()&&i&&typeof i.uri<"u")){d.next=11;break}return d.prev=1,d.next=4,Vn(i.uri);case 4:return f=d.sent,d.abrupt("return",new It(f));case 8:throw d.prev=8,d.t0=d.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(d.t0));case 11:if(!(typeof i.slice=="function"&&typeof i.size<"u")){d.next=13;break}return d.abrupt("return",Promise.resolve(new It(i)));case 13:if(typeof i.read!="function"){d.next=18;break}if(s=Number(s),Number.isFinite(s)){d.next=17;break}return d.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return d.abrupt("return",Promise.resolve(new so(i,s)));case 18:return d.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return d.stop()}},n,null,[[1,8]])}));function r(n,i){return t.apply(this,arguments)}return r}()}])}();function yo(e,t){return vr()?Promise.resolve(go(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function go(e,t){var r=e.exif?vo(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}function vo(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t}return t}function Ae(e){"@babel/helpers - typeof";return Ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(e)}function dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xo(n.key),n)}}function pt(e,t,r){return t&&bo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xo(e){var t=_o(e,"string");return Ae(t)=="symbol"?t:t+""}function _o(e,t){if(Ae(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ae(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wo=function(){function e(){dt(this,e)}return pt(e,[{key:"createRequest",value:function(r,n){return new jo(r,n)}},{key:"getName",value:function(){return"XHRHttpStack"}}])}(),jo=function(){function e(t,r){dt(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return pt(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,n){this._xhr.setRequestHeader(r,n),this._headers[r]=n}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(n){n.lengthComputable&&r(n.loaded)})}},{key:"send",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(i,s){r._xhr.onload=function(){i(new So(r._xhr))},r._xhr.onerror=function(f){s(f)},r._xhr.send(n)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}(),So=function(){function e(t){dt(this,e),this._xhr=t}return pt(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}();function Te(e){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Te(e)}function ko(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Eo(n.key),n)}}function Po(e,t,r){return t&&Uo(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eo(e){var t=Oo(e,"string");return Te(t)=="symbol"?t:t+""}function Oo(e,t){if(Te(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Te(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ot=!1;try{ot="localStorage"in window;var Ke="tusSupport",qt=localStorage.getItem(Ke);localStorage.setItem(Ke,qt),qt===null&&localStorage.removeItem(Ke)}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)ot=!1;else throw e}var Ro=ot,Co=function(){function e(){ko(this,e)}return Po(e,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var n=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(n)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,n){var i=Math.round(Math.random()*1e12),s="tus::".concat(r,"::").concat(i);return localStorage.setItem(s,JSON.stringify(n)),Promise.resolve(s)}},{key:"_findEntries",value:function(r){for(var n=[],i=0;i<localStorage.length;i++){var s=localStorage.key(i);if(s.indexOf(r)===0)try{var f=JSON.parse(localStorage.getItem(s));f.urlStorageKey=s,n.push(f)}catch{}}return n}}])}();function we(e){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(e)}function Ao(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function To(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xr(n.key),n)}}function No(e,t,r){return r&&To(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fo(e,t,r){return t=qe(t),zo(e,br()?Reflect.construct(t,r||[],qe(e).constructor):t.apply(e,r))}function zo(e,t){if(t&&(we(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bo(e)}function Bo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function br(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(br=function(){return!!e})()}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qe(e)}function $o(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&it(e,t)}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},it(e,t)}function Mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
4t%2?Mt(Object(r),!0).forEach(function(n){Io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Io(e,t,r){return t=xr(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xr(e){var t=Do(e,"string");return we(t)=="symbol"?t:t+""}function Do(e,t){if(we(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(we(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ht=xe(xe({},Le.defaultOptions),{},{httpStack:new wo,fileReader:new mo,urlStorage:Ro?new Co:new ln,fingerprint:yo}),Lo=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ao(this,t),n=xe(xe({},Ht),n),Fo(this,t,[r,n])}return $o(t,e),No(t,null,[{key:"terminate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=xe(xe({},Ht),i),Le.terminate(n,i)}}])}(Le);const c={pageBg:"#080B10",panel:"#0E131B",panel2:"#0C1016",border:"rgba(255,255,255,0.07)",A:"#4FA0F5",B:"#F6B23C",pos:"#34D8A0",neg:"#FF6470",gap:"#FF9F45",sup:"#9C8CFA",text:"#E6EAF2",muted:"#8A93A6"},te="'IBM Plex Sans', system-ui, sans-serif",J="'IBM Plex Mono', ui-monospace, monospace",qo=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Mo=8*1024*1024,at={match:"Match",price_variance:"Price gap",qty_variance:"Qty gap",missing_adjuster:"Only in B",missing_contractor:"Only in A"};function Ho(e){switch(e){case"match":return c.pos;case"price_variance":return c.gap;case"qty_variance":return c.gap;case"missing_adjuster":return c.B;case"missing_contractor":return c.A}}function D(e){if(e==null||Number.isNaN(e))return"$0";const t=Math.round(e),r=Math.abs(t).toLocaleString("en-US");return t<0?`-$${r}`:`$${r}`}function le(e){if(e===0)return"$0";const t=Math.abs(Math.round(e)).toLocaleString("en-US");return e>0?`+$${t}`:`-$${t}`}function Me(e){return e==null||Number.isNaN(e)?"—":e.toLocaleString("en-US",{maximumFractionDigits:2})}function Wo(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(2)} MB`}async function Go(e,t="Something went wrong."){const r=e==null?void 0:e.context;if(r&&typeof r.json=="function")try{const n=await r.json();if(n!=null&&n.error)return String(n.error);if(n!=null&&n.message)return String(n.message)}catch{}return(e==null?void 0:e.message)||t}function Wt({label:e,file:t,onFile:r,disabled:n}){const i=E.useRef(null),[s,f]=E.useState(!1),h=d=>{if(!d||d.length===0)return;const b=d[0];if(b.type!=="application/pdf"&&!b.name.toLowerCase().endsWith(".pdf")){se({title:"PDF only",description:"Please upload a PDF file.",variant:"destructive"});return}if(b.size>Mo){se({title:"File too large",description:"Max 8MB per file.",variant:"destructive"});return}r(b)};return o.jsxs("div",{className:"space-y-2",children:[o.jsx(Kt,{className:"text-sm font-medium",children:e}),t?o.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-border bg-card/50 p-3",children:[o.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[o.jsx(Dr,{className:"size-5 text-primary shrink-0"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("div",{className:"text-sm font-medium truncate",children:t.name}),o.jsx("div",{className:"text-xs text-muted-foreground",children:Wo(t.size)})]})]}),o.jsx(Ue,{type:"button",variant:"ghost",size:"icon",onClick:()=>r(null),"aria-label":"Remove file",children:o.jsx(Lr,{className:"size-4"})})]}):o.jsxs("button",{type:"button",disabled:n,onClick:()=>{var d;return(d=i.current)==null?void 0:d.click()},onDragOver:d=>{n||(d.preventDefault(),f(!0))},onDragLeave:()=>f(!1),onDrop:d=>{n||(d.preventDefault(),f(!1),h(d.dataTransfer.files))},className:`w-full rounded-lg border-2 border-dashed p-6 text-center transition-colors ${n?"border-border/50 bg-muted/20 cursor-not-allowed opacity-60":s?"border-primary bg-primary/5":"border-border hover:border-primary/50 hover:bg-accent/30"}
4`,children:[o.jsx(qr,{className:"mx-auto size-6 text-muted-foreground mb-2"}),o.jsx("div",{className:"text-sm font-medium",children:"Drop PDF here or click to upload"}),o.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"PDF only, max 8MB"})]}),o.jsx("input",{ref:i,type:"file",accept:"application/pdf,.pdf",className:"hidden",onChange:d=>h(d.target.files)})]})}function ge({children:e,color:t,filled:r=!1,onClick:n,active:i}){const s=!!n,f=r||i?t+"22":"transparent",h=r||i?t:c.border,d=r||i?t:c.muted;return o.jsx("button",{type:s?"button":void 0,onClick:n,disabled:!s,style:{background:f,border:`1px solid ${h}`,color:d,fontFamily:te,padding:"4px 10px",borderRadius:999,fontSize:11,fontWeight:600,letterSpacing:.3,textTransform:"uppercase",cursor:s?"pointer":"default",transition:"all .15s",whiteSpace:"nowrap"},children:e})}function He({children:e,color:t,weight:r=500,size:n=13}){return o.jsx("span",{style:{fontFamily:J,color:t||c.text,fontWeight:r,fontSize:n},children:e})}function Vo({decision:e,onChoose:t}){const r={fontFamily:te,padding:"4px 10px",borderRadius:6,fontSize:11,fontWeight:700,letterSpacing:.4,cursor:"pointer",transition:"all .15s"};return o.jsxs("div",{style:{display:"inline-flex",gap:4},children:[o.jsx("button",{type:"button",onClick:()=>t("A"),style:{...r,background:e==="A"?c.A+"22":"transparent",color:e==="A"?c.A:c.muted,border:`1px solid ${e==="A"?c.A:c.border}`},children:"USE A"}),o.jsx("button",{type:"button",onClick:()=>t("B"),style:{...r,background:e==="B"?c.B+"22":"transparent",color:e==="B"?c.B:c.muted,border:`1px solid ${e==="B"?c.B:c.border}`},children:"USE B"})]})}function Ko({decision:e}){return e==="A"?o.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4,fontFamily:te,fontSize:10,fontWeight:700,letterSpacing:.5,color:c.A,background:c.A+"1F",padding:"3px 8px",borderRadius:4,border:`1px solid ${c.A}55`},children:[o.jsx(_t,{size:10})," USING A"]}):e==="B"?o.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4,fontFamily:te,fontSize:10,fontWeight:700,letterSpacing:.5,color:c.B,background:c.B+"1F",padding:"3px 8px",borderRadius:4,border:`1px solid ${c.B}55`},children:[o.jsx(_t,{size:10})," USING B"]}):o.jsx("span",{style:{fontFamily:te,fontSize:10,fontWeight:700,letterSpacing:.5,color:c.sup,background:c.sup+"1F",padding:"3px 8px",borderRadius:4,border:`1px solid ${c.sup}55`},children:"NEEDS DECISION"})}function Xo(){const[e,t]=E.useState(""),[r,n]=E.useState(!0),[i,s]=E.useState(!1),[f,h]=E.useState(!1),[d,b]=E.useState(!1),[S,v]=E.useState(!1),[$,ue]=E.useState(null),[Y,K]=E.useState(null),[O,Z]=E.useState(!1),[R,F]=E.useState(null),[q,ae]=E.useState("stacked"),[V,W]=E.useState("room"),[X,G]=E.useState("all"),[ce,fe]=E.useState(""),[me,Q]=E.useState({});E.useEffect(()=>{if(!R)return;const m={};R.comparison.items.forEach((_,w)=>{_.status==="match"&&(m[w]="A")}),Q(m)},[R]);const ee=qo.test(e.trim()),re=f&&r&&$&&Y&&!O,u=async()=>{if(!(!ee||!r)){b(!0);try{const{data:m,error:_}=await Fe.functions.invoke("public-demo-send-code",{body:{email:e.trim()}});if(_)throw new Error((m==null?void 0:m.error)||_.message);if(m!=null&&m.error)throw new Error(m.error);s(!0),se({title:"Verification email sent",description:"Open your inbox and click the verify button. This page will update automatically."})}catch(m){se({title:"Couldn't send email",description:m.message,variant:"destructive"})}finally{b(!1)}}},a=async m=>{if(!ee)return!1;m!=null&&m.silent||v(!0);try{const{data:_,error:w}=await Fe.functions.invoke("public-demo-verify-code",{body:{email:e.trim()}});if(w)throw new Error((_==null?void 0:_.error)||w.message);if(_!=null&&_.error)throw new Error(_.error);const x=!!(_!=null&&_.verified);return x&&!f?(h(!0),se({title:"Email verified",description:"You can now upload your estimates."})):!x&&!(m!=null&&m.silent)&&se({title:"Not verified yet",description:"Open the email we sent and click the verify button, then try again.",variant:"destructive"}),x}catch(_){return m!=null&&m.silent||se({title:"Status check failed",description:_.message,variant:"destructive"}),!1}finally{m!=null&&m.silent||v(!1)}},l=()=>{h(!1),s(!1)};E.useEffect(()=>{if(!i||f)return;const m=setInterval(()=>{a({silent:!0})},3e3);return()=>clearInterval(m)},[i,f,e]);const y=async()=>
4{if(re){Z(!0),F(null);try{const m=e.trim(),_=async(M,P)=>{const H=M.name.toLowerCase().replace(/[^a-z0-9._-]+/g,"-").slice(0,80)||"estimate.pdf",ne=`${crypto.randomUUID()}/${P}-${H}`,Ne="https://jbahxuzdamcfihnpasfe.supabase.co/storage/v1/upload/resumable",vt="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImpiYWh4dXpkYW1jZmlobnBhc2ZlIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQzOTIwODEsImV4cCI6MjA4OTk2ODA4MX0.u-yvwuD6GFXOwrXZ6nMHGabMDTva9JefPlLuQqh1Ibk";return await new Promise((kr,Ur)=>{new Lo(M,{endpoint:Ne,chunkSize:6291456,retryDelays:[0,1e3,3e3,5e3],removeFingerprintOnSuccess:!0,headers:{authorization:`Bearer ${vt}`,apikey:vt},metadata:{bucketName:"demo-estimates",objectName:ne,contentType:"application/pdf",cacheControl:"3600"},onError:Pr=>Ur(Pr),onSuccess:()=>kr()}).start()}),ne},w=await _($,"adjuster"),x=await _(Y,"contractor"),{data:C,error:A}=await Fe.functions.invoke("public-demo-compare",{body:{email:m,adjusterPath:w,contractorPath:x,adjusterFilename:$.name,contractorFilename:Y.name}});if(A){const M=(C==null?void 0:C.error)||await Go(A);throw new Error(M)}if(C!=null&&C.error)throw new Error(C.error);const z=C==null?void 0:C.jobId;if(!z)throw new Error("No job id returned.");const de=Date.now(),I=4*60*1e3;for(;;){if(Date.now()-de>I)throw new Error("Comparison is taking longer than expected. Please try again.");await new Promise(ne=>setTimeout(ne,3e3));const{data:M,error:P}=await Fe.functions.invoke("public-demo-compare-status",{body:{jobId:z}});if(P)continue;const H=M==null?void 0:M.status;if(H==="completed"){const ne=M.result;F({comparison:ne.comparison,meta:ne.meta}),setTimeout(()=>{var Ne;(Ne=document.getElementById("ect-results"))==null||Ne.scrollIntoView({behavior:"smooth",block:"start"})},100);break}if(H==="failed")throw new Error((M==null?void 0:M.error)||"Comparison failed.")}}catch(m){se({title:"Comparison failed",description:m.message,variant:"destructive"})}finally{Z(!1)}}},g=(R==null?void 0:R.comparison.items)||[],p=E.useMemo(()=>g.map((m,_)=>{const w=m.adjuster_total??(m.adjuster_quantity??0)*(m.adjuster_unit_price??0),x=m.contractor_total??(m.contractor_quantity??0)*(m.contractor_unit_price??0),C=w-x,A=me[_],z=A==="A"?w:A==="B"?x:0,de=A?z-w:0;return{idx:_,item:m,aTotal:w,bTotal:x,delta:C,decision:A,chosen:z,supDelta:de}}),[g,me]),j=E.useMemo(()=>p.reduce((m,_)=>m+_.aTotal,0),[p]),k=E.useMemo(()=>p.reduce((m,_)=>m+_.bTotal,0),[p]),U=E.useMemo(()=>p.reduce((m,_)=>m+(_.decision?_.chosen:_.aTotal),0),[p]),T=U-j,N=p.filter(m=>!!m.decision).length,B=p.filter(m=>m.decision==="B").length,ht=E.useMemo(()=>{const m=ce.trim().toLowerCase();return p.filter(_=>{const w=_.item;if(m&&!`${w.description} ${w.room||w.category||""} ${w.unit||""}`.toLowerCase().includes(m))return!1;switch(X){case"gaps":return w.status!=="match";case"onlyB":return w.status==="missing_adjuster";case"matches":return w.status==="match";case"pending":return!_.decision;default:return!0}})},[p,X,ce]),mt=E.useMemo(()=>{const m=new Map;return ht.forEach(_=>{let w="Other";if(V==="room")w=_.item.room||_.item.category||"Unassigned";else if(V==="status")w=at[_.item.status];else{const C=Math.abs(_.delta);C>=500?w="High impact ($500+)":C>=100?w="Medium impact ($100–500)":C>0?w="Low impact (<$100)":w="No impact"}const x=m.get(w)||[];x.push(_),m.set(w,x)}),Array.from(m.entries())},[ht,V]),yt=E.useMemo(()=>[...p].filter(m=>m.delta!==0).sort((m,_)=>Math.abs(_.delta)-Math.abs(m.delta)).slice(0,6),[p]),_r=E.useMemo(()=>Math.max(1,...p.map(m=>Math.abs(m.delta))),[p]),wr=(m,_)=>Q(w=>({...w,[m]:_})),gt=m=>{const _={};p.forEach(w=>{_[w.idx]=m}),Q(_)},jr=async()=>{if(!R)return;const m=await Ge(()=>import("./xlsx-B6sNpj_1.js"),[]),_=["Room","Description","Unit","A Qty","A Price","A Total","B Qty","B Price","B Total","Status","Decision","Chosen Total","Supplement Δ"],w=p.map(P=>{const H=P.item;return[H.room||H.category||"",H.description,H.unit||"",H.adjuster_quantity??"",H.adjuster_unit_price??"",P.aTotal||0,H.contractor_quantity??"",H.contractor_unit_price??"",P.bTotal||0,at[H.status],P.decision||"Pending",P.decision?P.chosen:"",P.decision?P.supDelta:""]}),x=w.length+2;w.push(["TOTALS","","","","",{f:`SUM(F2:F${x-1})`},"","",{f:`SUM(I2:I${x-1})`},"","",{f:`SUM(L2:L${x-1})`},{f:`SUM(M2:M${x-1})`}]),w.push(["Total A","","","","",j,"","","","","","",""]),w.push(["Total B","","","","","","","",k,"","","",""]),w.push(["Reconciled Total","","","","","","","","","","",U,""]),w.push(["Supplement Total","","","","","","","","","","","",T]);const C=m.utils.aoa_to_sheet([_,...w]);C["!cols"]=[{wch:16},{wch:42},{wch:8},{wch:8},{wch:12},{wch:12},{wch:8},{wch:12},{wch:12},{wch:14},{wch:12},{wch:14},{wch:14}];const A=["E","F","H","I","L","M"],z=w.length+1;for(let P=2;P<=z;P++)for(const H of A){const ne=C[`${H}${P}`];ne&&(ne.z='"$"#,##0.00;("$"#,##0.00);-')}const de=p.filter(P=>P.decision&&P.supDelta>0).map(P=>[P.item.room||P.item.category||"",P.item.description,P.aTotal,P.bTotal,P.chosen,P.supDelta]),I=m.utils.aoa_to_sheet([["Room","Description","A Total","B Total","Chosen","Supplement Δ"],...de]);I["!cols"]=[{wch:16},{wch:42},{wch:12},{wch:12},{wch:12},{wch:14}];const M=m.utils.book_new();m.utils.book_append_sheet(M,C,"Reconciliation"),m.utils.book_append_sheet(M,I,"Supplement Only"),m.writeFile(M,`estimate-reconciliation-${Date.now()}.xlsx`)},Sr=async()=>
4{if(!R)return;const[{jsPDF:m},_]=await Promise.all([Ge(()=>import("./jspdf.es.min-BMXi3cja.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),Ge(()=>import("./jspdf.plugin.autotable-CHGJwQue.js"),[])]),w=_.default||_,x=new m({unit:"pt",format:"letter"}),C=x.internal.pageSize.getWidth(),A=40;x.setFillColor(15,23,42),x.rect(0,0,C,70,"F"),x.setTextColor(255,255,255),x.setFontSize(18),x.setFont("helvetica","bold"),x.text("Streamline Factory",A,32),x.setFontSize(11),x.setFont("helvetica","normal"),x.text("Estimate Reconciliation Report",A,52),x.setTextColor(60,60,60),x.setFontSize(9),x.text(`Generated: ${new Date(R.meta.generated_at).toLocaleString()}`,A,90),x.text(`Prepared for: ${e}`,A,104),x.text(`Adjuster (A): ${R.meta.adjuster_filename}`,A,118),x.text(`Contractor (B): ${R.meta.contractor_filename}`,A,132);let z=160;x.setTextColor(15,23,42),x.setFontSize(12),x.setFont("helvetica","bold"),x.text("Summary",A,z),z+=18,x.setFont("helvetica","normal"),x.setFontSize(10),x.text(`Total A (Adjuster): ${D(j)}`,A,z),z+=14,x.text(`Total B (Contractor): ${D(k)}`,A,z),z+=14,x.text(`Reconciled Total: ${D(U)}`,A,z),z+=14,x.setFont("helvetica","bold"),x.setTextColor(T>0?120:30,30,T>0?30:120),x.text(`Supplement Total: ${le(T)}`,A,z),x.setTextColor(60,60,60),x.setFont("helvetica","normal"),z+=14,x.text(`Lines decided: ${N} of ${p.length}   ·   Lines using B: ${B}`,A,z),w(x,{startY:z+20,head:[["Room","Description","A Qty","A $","A Total","B Qty","B $","B Total","Decision","Supp Δ"]],body:p.map(I=>[I.item.room||I.item.category||"",I.item.description,Me(I.item.adjuster_quantity),D(I.item.adjuster_unit_price),D(I.aTotal),Me(I.item.contractor_quantity),D(I.item.contractor_unit_price),D(I.bTotal),I.decision||"Pending",I.decision?le(I.supDelta):"—"]),styles:{fontSize:8,cellPadding:4},headStyles:{fillColor:[15,23,42],textColor:255},margin:{left:A,right:A}});const de=x.internal.pageSize.getHeight();x.setFontSize(9),x.setTextColor(80,80,80),x.text("Streamline Factory: thestreamlinefactory.com/contact",A,de-24),x.save(`estimate-reconciliation-${Date.now()}.pdf`)};return o.jsxs("div",{className:"space-y-8",style:{fontFamily:te},children:[o.jsxs(Cr,{children:[o.jsxs(Ar,{children:[o.jsx(Tr,{className:"text-2xl",children:"Run a free reconciliation"}),o.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"For adjusters and contractors alike. No signup. No credit card. Your files are processed securely and never shared."})]}),o.jsxs(Nr,{className:"space-y-6",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(Kt,{htmlFor:"ect-email",children:"Your email"}),o.jsx(Fr,{id:"ect-email",type:"email",value:e,onChange:m=>{t(m.target.value),(f||i)&&l()},placeholder:"[email protected]",autoComplete:"email",disabled:f}),o.jsxs("div",{className:"flex items-start gap-2 pt-1",children:[o.jsx(zr,{id:"ect-optin",checked:r,onCheckedChange:m=>n(m===!0),disabled:f}),o.jsx("label",{htmlFor:"ect-optin",className:"text-xs text-muted-foreground leading-relaxed cursor-pointer",children:"I agree to receive occasional product updates from Streamline Factory. No spam, unsubscribe anytime."})]}),!f&&o.jsx("div",{className:"pt-3 space-y-3 border-t border-border mt-3",children:i?o.jsxs("div",{className:"space-y-3 rounded-lg border border-primary/30 bg-primary/5 p-4",children:[o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx(xt,{className:"size-5 text-primary shrink-0 mt-0.5"}),o.jsxs("div",{className:"space-y-1",children:[o.jsx("div",{className:"text-sm font-medium",children:"Check your inbox"}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:["We sent a verification link to ",o.jsx("strong",{className:"text-foreground",children:e}),". Click the button in that email, this page will continue automatically."]})]})]}),o.jsxs("div",{className:"flex flex-wrap items-center gap-3 pt-1",children:[o.jsx(Ue,{type:"button",onClick:()=>a(),disabled:S,variant:"hero",size:"sm",children:S?o.jsxs(o.Fragment,{children:[o.jsx(Ve,{className:"size-4 animate-spin"})," Checking…"]}):"I've clicked the link"}),o.jsx("button",{type:"button",onClick:u,disabled:d,className:"text-xs text-primary hover:underline disabled:opacity-50",children:d?"Sending…":"Didn't get it? Resend email"})]})]}):o.jsxs("div",{children:[o.jsx(Ue,{type:"button",onClick:u,disabled:!ee||!r||d,variant:"hero-outline",size:"sm",children:d?o.jsxs(o.Fragment,{children:[o.jsx(Ve,{className:"size-4 animate-spin"})," Sending email…"]}):o.jsxs(o.Fragment,{children:[o.jsx(xt,{className:"size-4"})," Verify Email"]})}),o.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"We'll email a verification link to confirm this address. Required to prevent abuse."})]})}),f&&o.jsxs("div",{className:"pt-3 border-t border-border mt-3 flex items-center justify-between",children:[o.jsx("p",{className:"text-sm text-primary font-medium",children:"✓ Email verified"}),o.jsx("button",{type:"button",onClick:()=>{t(""),l()},className:"text-xs text-muted-foreground hover:underline",children:"Use a different email"})]})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[o.jsx(Wt,{label:"Adjuster / Insurance estimate (A)",file:$,onFile:ue,disabled:!f}),o.jsx(Wt,{label:"Contractor estimate (B)",file:Y,onFile:K,disabled:!f})]}),o.jsx(Ue,{onClick:y,disabled:!re,size:"lg",variant:"hero",className:"w-full sm:w-auto",children:O?o.jsxs(o.Fragment,{children:[o.jsx(Ve,{className:"size-4 animate-spin"})," Analyzing estimates… ~30-60s"]}):"Reconcile Estimates"})]})]}),R&&o.jsxs("div",{id:"ect-results",style:{background:c.pageBg,color:c.text,border:`1px solid ${c.border}`,borderRadius:16,padding:24,fontFamily:te},children:[o.jsx("div",{style:{background:c.panel,border:`1px solid ${c.border}`,borderRadius:12,padding:20,marginBottom:20},children:o.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:20},children:[o.jsx(ve,{label:"Total A",value:D(j),color:c.A}),o.jsx(ve,{label:"Total B",value:D(k),color:c.B}),o.jsx(ve,{label:"Reconciled",value:D(U),color:c.sup}),o.jsx(ve,{label:"Supplement",value:le(T),color:T>0?c.sup:c.muted}),o.jsx(ve,{label:"Decided",value:`${N} / ${p.length}`,color:c.text}),o.jsx(ve,{label:"Using B",value:String(B),color:c.B})]})}),o.jsx("div",{style:{background:`linear-gradient(135deg, ${c.sup}14, ${c.panel})`,border:`1px solid ${c.sup}55`,borderRadius:12,padding:20,marginBottom:20},children:o.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:16},children:[o.jsxs("div",{children:[o.jsx("div",{style:{fontSize:11,fontWeight:700,letterSpacing:1,color:c.sup,textTransform:"uppercase"},children:"Supplement Builder"}),o.jsx("div",{style:{marginTop:6,fontSize:14,color:c.muted},children:"Pick A or B per line. The chosen values form the reconciled estimate. Anything above the adjuster baseline becomes your supplement."}),o.jsxs("div",{style:{marginTop:10,display:"flex",flexWrap:"wrap",gap:16,alignItems:"center"},children:[o.jsxs("span",{style:{fontFamily:J,fontSize:13},children:[o.jsx("span",{style:{color:c.muted},children:"Decided "}),o.jsxs("span",{style:{color:c.text},children:[N," / ",p.length]})]}),o.jsxs("span",{style:{fontFamily:J,fontSize:13},children:[o.jsx("span",{style:{color:c.muted},children:"Using B "}),o.jsx("span",{style:{color:c.B},children:B})]}),o.jsxs("span",{style:{fontFamily:J,fontSize:13},children:[o.jsx("span",{style:{color:c.muted},children:"Reconciled "}),o.jsx("span",{style:{color:c.sup},children:D(U)})]}),o.jsxs("span",{style:{fontFamily:J,fontSize:13},children:[o.jsx("span",{style:{color:c.muted},children:"Supplement "}),o.jsx("span",{style:{color:T>0?c.sup:c.muted},children:le(T)})]})]})]}),o.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:[o.jsx("button",{onClick:()=>gt("A"),style:Xe(c.A),children:"Accept all A"}),o.jsx("button",{onClick:()=>gt("B"),style:Xe(c.B),children:"Accept all B"}),o.jsxs("button",{onClick:Sr,style:Yo(c.sup),children:[o.jsx(Br,{size:14,style:{marginRight:6}})," Download PDF"]}),o.jsxs("button",{onClick:jr,style:Xe(c.sup),children:[o.jsx($r,{size:14,style:{marginRight:6}})," Download Excel"]})]})]})}),yt.length>0&&o.jsxs("div",{style:{background:c.panel,border:`1px solid ${c.border}`,borderRadius:12,padding:20,marginBottom:20},children:[o.jsx("div",{style:{fontSize:13,fontWeight:700,color:c.text,marginBottom:12},children:"What's driving the gap"}),o.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:yt.map(m=>{const _=Math.abs(m.delta)/_r*100,w=m.delta>0;return o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[o.jsx("div",{style:{flex:"0 0 38%",fontSize:12,color:c.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.item.description}),o.jsx("div",{style:{flex:1,height:8,background:c.panel2,borderRadius:4,position:"relative",overflow:"hidden"},children:o.jsx("div",{style:{position:"absolute",left:0,top:0,height:"100%",width:`${_}%`,background:w?c.pos:c.neg}})}),o.jsx("div",{style:{flex:"0 0 90px",textAlign:"right"},children:o.jsx(He,{color:w?c.pos:c.neg,weight:600,children:le(m.delta)})})]},m.idx)})})]}),o.jsxs("div",{style:{background:c.panel,border:`1px solid ${c.border}`,borderRadius:12,padding:16,marginBottom:20,display:"flex",flexWrap:"wrap",gap:12,alignItems:"center",justifyContent:"space-between"},children:[o.jsx("div",{style:{display:"flex",gap:4,background:c.panel2,padding:4,borderRadius:8,border:`1px solid ${c.border}`},children:["stacked","bars","ledger"].map(m=>o.jsx("button",{onClick:()=>ae(m),style:{fontFamily:te,fontSize:12,fontWeight:600,letterSpacing:.5,textTransform:"uppercase",padding:"6px 14px",borderRadius:6,background:q===m?c.A+"22":"transparent",color:q===m?c.A:c.muted,border:"none",cursor:"pointer"},children:m},m))}),o.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[o.jsx("span",{style:{color:c.muted,fontSize:11,alignSelf:"center",marginRight:4},children:"GROUP"}),["room","status","impact"].map(m=>o.jsx(ge,{color:c.A,active:V===m,onClick:()=>W(m),children:m==="impact"?"$ Impact":m},m))]}),o.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[o.jsx(ge,{color:c.A,active:X==="all",onClick:()=>G("all"),children:"All"}),o.jsx(ge,{color:c.gap,active:X==="gaps",onClick:()=>G("gaps"),children:"Discrepancies"}),o.jsx(ge,{color:c.B,active:X==="onlyB",onClick:()=>G("onlyB"),children:"Only in B"}),o.jsx(ge,{color:c.pos,active:X==="matches",onClick:()=>G("matches"),children:"Matches"}),o.jsx(ge,{color:c.sup,active:X==="pending",onClick:()=>G("pending"),children:"Pending"})]}),o.jsxs("div",{style:{position:"relative",flex:"1 1 220px",minWidth:200},children:[o.jsx(Ir,{size:14,style:{position:"absolute",left:10,top:"50%",transform:"translateY(-50%)",color:c.muted}}),o.jsx("input",{placeholder:"Search lines…",value:ce,onChange:m=>fe(m.target.value),style:{width:"100%",background:c.panel2,border:`1px solid ${c.border}`,color:c.text,padding:"8px 10px 8px 32px",borderRadius:8,fontSize:13,fontFamily:te,outline:"none"}})]})]}),o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[mt.length===0&&o.jsx("div",{style:{textAlign:"center",padding:40,color:c.muted,fontSize:14},children:"No lines match the current filters."}),mt.map(([m,_])=>{const w=_.reduce((x,C)=>x+C.delta,0);return o.jsxs("div",{style:{background:c.panel,border:`1px solid ${c.border}`,borderRadius:12,overflow:"hidden"},children:[o.jsxs("div",{style:{padding:"12px 16px",display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:`1px solid ${c.border}`,background:c.panel2},children:[o.jsxs("div",{style:{fontSize:12,fontWeight:700,letterSpacing:.8,textTransform:"uppercase",color:c.text},children:[m," ",o.jsxs("span",{style:{color:c.muted,marginLeft:6},children:["· ",_.length]})]}),o.jsx(He,{color:w>0?c.pos:w<0?c.neg:c.muted,weight:600,size:12,children:le(w)})]}),o.jsx("div",{style:{padding:8},children:_.map(x=>o.jsx(Zo,{view:q,row:x,onDecide:C=>wr(x.idx,C)},x.idx))})]},m)})]}),o.jsxs("div",{style:{marginTop:24,padding:20,background:`linear-gradient(135deg, ${c.A}1A, transparent)`,border:`1px solid ${c.A}44`,borderRadius:12,display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignItems:"center",gap:12},children:[o.jsxs("div",{children:[o.jsx("div",{style:{fontWeight:600,color:c.text},children:"Want this on every claim automatically?"}),o.jsx("div",{style:{fontSize:13,color:c.muted,marginTop:2},children:"See how ClaimOps 360 reconciles supplements for your team."})]}),o.jsxs(Or,{to:"/products/claimops-360",style:{background:c.A,color:"#06121F",padding:"10px 16px",borderRadius:8,fontWeight:600,fontSize:13,display:"inline-flex",alignItems:"center",gap:6,textDecoration:"none"},children:["Learn about ClaimOps 360 ",o.jsx(Xt,{size:14})]})]})]})]})}function ve({label:e,value:t,color:r}){return o.jsxs("div",{children:[o.jsx("div",{style:{fontSize:10,fontWeight:700,letterSpacing:1,textTransform:"uppercase",color:c.muted},children:e}),o.jsx("div",{style:{marginTop:6,fontFamily:J,fontSize:22,fontWeight:600,color:r},children:t})]})}function Yo(e){return{fontFamily:te,fontSize:12,fontWeight:600,background:e,color:"#0B0E14",padding:"8px 14px",borderRadius:8,border:"none",cursor:"pointer",display:"inline-flex",alignItems:"center"}}function Xe(e){return{fontFamily:te,fontSize:12,fontWeight:600,background:"transparent",color:e,padding:"8px 14px",borderRadius:8,border:`1px solid ${e}66`,cursor:"pointer",display:"inline-flex",alignItems:"center"}}function Zo({row:e,view:t,onDecide:r}){const{item:n,aTotal:i,bTotal:s,delta:f,decision:h}=e,d=Ho(n.status),b=h==="A"?c.A:h==="B"?c.B:c.sup;return o.jsxs("div",{style:{borderLeft:`3px solid ${b}`,background:c.panel2,borderRadius:6,padding:12,marginBottom:6,opacity:h?1:.92},children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",ga
4p:12,marginBottom:10},children:[o.jsxs("div",{style:{flex:1,minWidth:0},children:[o.jsx("div",{style:{fontSize:13,color:c.text,fontWeight:500},children:n.description}),o.jsxs("div",{style:{marginTop:4,display:"flex",flexWrap:"wrap",gap:6,alignItems:"center"},children:[o.jsx("span",{style:{fontSize:10,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:d,background:d+"1A",padding:"2px 6px",borderRadius:4,border:`1px solid ${d}44`},children:at[n.status]}),n.confidence!=null&&o.jsxs("span",{style:{fontSize:10,fontWeight:600,color:c.muted,background:c.panel,padding:"2px 6px",borderRadius:4,border:`1px solid ${c.border}`},children:[Math.round((n.confidence||0)*100),"% conf"]}),o.jsx(Ko,{decision:h})]})]}),o.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:6},children:[o.jsx(Vo,{decision:h,onChoose:r}),o.jsx(He,{color:f>0?c.pos:f<0?c.neg:c.muted,weight:600,children:le(f)})]})]}),t==="stacked"&&o.jsx(Jo,{item:n,aTotal:i,bTotal:s}),t==="bars"&&o.jsx(Qo,{delta:f,aTotal:i,bTotal:s}),t==="ledger"&&o.jsx(ei,{item:n,aTotal:i,bTotal:s,delta:f})]})}function Jo({item:e,aTotal:t,bTotal:r}){const n=(e.adjuster_quantity??0)!==(e.contractor_quantity??0),i=(e.adjuster_unit_price??0)!==(e.contractor_unit_price??0);return o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[o.jsx(Gt,{label:"A",color:c.A,qty:e.adjuster_quantity,price:e.adjuster_unit_price,unit:e.unit,total:t,qtyHl:n,priceHl:i}),o.jsx(Gt,{label:"B",color:c.B,qty:e.contractor_quantity,price:e.contractor_unit_price,unit:e.unit,total:r,qtyHl:n,priceHl:i})]})}function Gt({label:e,color:t,qty:r,price:n,unit:i,total:s,qtyHl:f,priceHl:h}){const d=(b,S)=>o.jsx("span",{style:{fontFamily:J,fontSize:12,padding:"3px 8px",borderRadius:4,background:S?c.gap+"1A":c.panel,color:S?c.gap:c.text,border:`1px solid ${S?c.gap+"55":c.border}`},children:b});return o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[o.jsx("span",{style:{fontSize:10,fontWeight:700,letterSpacing:.5,color:t,background:t+"1A",padding:"3px 7px",borderRadius:4,border:`1px solid ${t}55`},children:e}),d(`${Me(r)} ${i||""}`.trim(),f),o.jsx("span",{style:{color:c.muted,fontFamily:J},children:"×"}),d(D(n),h),o.jsx("span",{style:{color:c.muted,fontFamily:J},children:"="}),o.jsx("span",{style:{fontFamily:J,fontSize:13,fontWeight:600,color:t},children:D(s)})]})}function Qo({delta:e,aTotal:t,bTotal:r}){const n=Math.max(1,Math.abs(t),Math.abs(r),Math.abs(e)),i=Math.abs(e)/n*50,s=e>0;return o.jsxs("div",{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:11,color:c.muted,marginBottom:4},children:[o.jsxs("span",{children:[o.jsx("span",{style:{color:c.A},children:"A"})," ",D(t)]}),o.jsxs("span",{children:[D(r)," ",o.jsx("span",{style:{color:c.B},children:"B"})]})]}),o.jsxs("div",{style:{position:"relative",height:12,background:c.panel,borderRadius:6,overflow:"hidden"},children:[o.jsx("div",{style:{position:"absolute",left:"50%",top:0,bottom:0,width:1,background:c.border}}),o.jsx("div",{style:{position:"absolute",top:0,bottom:0,[s?"right":"left"]:"50%",width:`${i}%`,background:s?c.pos:c.neg}})]})]})}function ei({item:e,aTotal:t,bTotal:r,delta:n}){const i=n>0;return o.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:8,alignItems:"stretch"},children:[o.jsx(Vt,{color:c.A,label:"A",qty:e.adjuster_quantity,price:e.adjuster_unit_price,total:t,unit:e.unit,align:"right"}),o.jsxs("div",{style:{background:i?c.pos+"12":n<0?c.neg+"12":c.panel,border:`1px solid ${i?c.pos+"44":n<0?c.neg+"44":c.border}`,borderRadius:6,padding:"8px 12px",textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",minWidth:100},children:[o.jsx("div",{style:{fontSize:9,color:c.muted,fontWeight:700,letterSpacing:.5,textTransform:"uppercase"},children:"Δ"}),o.jsx(He,{color:i?c.pos:n<0?c.neg:c.muted,weight:700,size:14,children:le(n)})]}),o.jsx(Vt,{color:c.B,label:"B",qty:e.contractor_quantity,price:e.contractor_unit_price,total:r,unit:e.unit,align:"left"})]})}function Vt({color:e,label:t,qty:r,price:n,total:i,unit:s,align:f}){return o.jsxs("div",{style:{background:c.panel,border:`1px solid ${c.border}`,borderRadius:6,padding:8,textAlign:f},children:[o.jsx("div",{style:{fontSize:10,fontWeight:700,color:e,letterSpacing:.5},children:t}),o.jsxs("div",{style:{marginTop:2,fontFamily:J,fontSize:11,color:c.muted},children:[Me(r)," ",s||""," × ",D(n)]}),o.jsx("div",{style:{marginTop:2,fontFamily:J,fontSize:14,fontWeight:600,color:c.text},children:D(i)})]})}const ti=1,ri="045f0d2a-087e-4848-ba23-4785984452b6",ni="2c56995b-e94e-4a31-8e1d-dac703a4029b",oi="/__l5e/assets-v1/045f0d2a-087e-4848-ba23-4785984452b6/estimate-comparison-example.png",ii="a/v1/2c56995b-e94e-4a31-8e1d-dac703a4029b/045f0d2a-087e-4848-ba23-4785984452b6/estimate-comparison-example.png",ai="estimate-comparison-example.png",si=282616,li="image/png",ui="2026-06-16T02:25:45Z",ci={version:ti,asset_id:ri,project_id:ni,url:oi,r2_key:ii,original_filename:ai,size:si,content_type:li,created_at:ui};function ji(){return o.jsx(Rr,{title:"Free Resources & Tools | Streamline Factory",description:"Free tools for insurance adjusters and contractors. Upload two estimates and get an AI-powered, line-by-line comparison in 30 seconds.",slug:"resources",breadcrumbLabel:"Resources",children:o.jsxs("section",{className:"container mx-auto px-4 py-16 max-w-5xl",children:[o.jsxs("div",{className:"text-center mb-12",children:[o.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/10 px-3 py-1 text-xs font-medium text-primary mb-4",children:[o.jsx(Mr,{className:"size-3.5"})," Free tool, preview of ClaimOps 360"]}),o.jsx("h1",{className:"text-4xl sm:text-5xl font-bold tracking-tight mb-4",children:"Compare Any Two Insurance Estimates, Free"}),o.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Built for adju
4sters and contractors. Upload two estimates as PDFs and our AI reads every line, matches items room by room, and shows you exactly where the two scopes disagree, missing items, price gaps, quantity gaps, and the dollar impact of each one."})]}),o.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-14",children:[o.jsxs("div",{className:"rounded-2xl border border-border bg-card/40 p-6",children:[o.jsx("h2",{className:"text-xl font-semibold mb-3",children:"What this tool does"}),o.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[o.jsx("li",{children:"• Extracts every line item from both estimates, even on scanned PDFs."}),o.jsx("li",{children:"• Aligns matching items by room and description so you can compare them side by side."}),o.jsx("li",{children:"• Flags every price gap, quantity gap, and one-sided item with a clear status pill."}),o.jsx("li",{children:"• Calculates the total dollar gap and surfaces the biggest discrepancies as key findings."}),o.jsx("li",{children:"• Lets you filter to Gaps Only, Matches, or Supplements with one click."})]})]}),o.jsxs("div",{className:"rounded-2xl border border-border bg-card/40 p-6",children:[o.jsx("h2",{className:"text-xl font-semibold mb-3",children:"How to use it"}),o.jsxs("ol",{className:"space-y-3 text-sm",children:[o.jsxs("li",{className:"flex gap-3",children:[o.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-primary/15 text-primary text-xs font-semibold",children:"1"}),o.jsxs("span",{children:[o.jsx("strong",{className:"text-foreground",children:"Verify your email"})," so we can tie the comparison to you. Takes about 10 seconds."]})]}),o.jsxs("li",{className:"flex gap-3",children:[o.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-primary/15 text-primary text-xs font-semibold",children:"2"}),o.jsxs("span",{children:[o.jsx("strong",{className:"text-foreground",children:"Upload both PDFs"}),", the adjuster / insurance estimate and the contractor estimate (8MB max each)."]})]}),o.jsxs("li",{className:"flex gap-3",children:[o.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-primary/15 text-primary text-xs font-semibold",children:"3"}),o.jsxs("span",{children:[o.jsx("strong",{className:"text-foreground",children:"Click Compare Estimates"}),". The AI takes roughly 30 to 60 seconds to read both files and align every line."]})]}),o.jsxs("li",{className:"flex gap-3",children:[o.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-primary/15 text-primary text-xs font-semibold",children:"4"}),o.jsxs("span",{children:[o.jsx("strong",{className:"text-foreground",children:"Review the side-by-side table"}),", then download the full ",o.jsx(Hr,{className:"inline size-3.5 mb-0.5"})," PDF report or an Excel / CSV export to share with your team or attach to a supplement."]})]})]})]})]}),o.jsxs("div",{className:"mb-14",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx(Wr,{className:"size-4 text-primary"}),o.jsx("h2",{className:"text-xl font-semibold",children:"What the comparison looks like"})]}),o.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Here is a real comparison the tool produced. Scroll inside the frame to see the full report, key findings, totals, and the line-by-line table with status pills for every price gap, quantity gap, and one-sided item."}),o.jsx("div",{className:"rounded-2xl border border-border bg-card/40 p-2 shadow-lg",children:o.jsx("div",{className:"max-h-[640px] overflow-y-auto rounded-xl bg-background",children:o.jsx("img",{src:ci.url,alt:"Example output of the AI estimate comparison: key findings, totals, gap, discrepancies count, and a line-by-line table grouped by room with status pills for each item.",className:"w-full h-auto block",loading:"lazy"})})})]}),o.jsx("div",{className:"mb-14 rounded-2xl border border-primary/30 bg-gradient-to-br from-primary/10 via-card/40 to-card/40 p-6 sm:p-8",children:o.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-6 justify-between",children:[o.jsxs("div",{className:"max-w-2xl",children:[o.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/10 px-3 py-1 text-xs font-medium text-primary mb-3",children:[o.jsx(Gr,{className:"size-3.5"})," Now live in ClaimOps 360"]}),o.jsx("h2",{className:"text-2xl font-bold mb-2",children:"A preview of what ClaimOps 360 does"}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["This free comparison is a small slice of ",o.jsx("strong",{className:"text-foreground",children:"ClaimOps 360"}),", our claims operations platform. ClaimOps 360 turns this into a full workflow: continuously match adjuster and contractor scopes, auto-draft supplements from the gaps, track every revision, and keep your whole team on the same page from first inspection to final payment."]})]}),o.jsx(Ue,{asChild:!0,variant:"hero",size:"lg",className:"shrink-0",children:o.jsxs("a",{href:"https://www.claimo
4ps360.com/",target:"_blank",rel:"noopener noreferrer",children:["Download ClaimOps 360 ",o.jsx(Xt,{className:"size-4"})]})})]})}),o.jsxs("div",{className:"mb-6 flex items-center gap-2",children:[o.jsx(Vr,{className:"size-4 text-primary"}),o.jsx("h2",{className:"text-xl font-semibold",children:"Try it now"})]}),o.jsx(Xo,{})]})})}export{ji as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.