mirror of
https://github.com/inventree/inventree-website.git
synced 2026-11-29 01:14:30 +00:00
deploy: dd7d563e79
This commit is contained in:
1 parent
aabce70759
commit
ad253b0234
363 files changed
+306698
-62278
No files matched your search
+10
@@ -0,0 +1,10 @@
|
||||
"use strict";(()=>{var rl=Object.create;var qn=Object.defineProperty,nl=Object.defineProperties,ol=Object.getOwnPropertyDescriptor,il=Object.getOwnPropertyDescriptors,al=Object.getOwnPropertyNames,Xr=Object.getOwnPropertySymbols,sl=Object.getPrototypeOf,Kn=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable;var ii=(e,t,r)=>t in e?qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))Kn.call(t,r)&&ii(e,r,t[r]);if(Xr)for(var r of Xr(t))ai.call(t,r)&&ii(e,r,t[r]);return e},Ce=(e,t)=>nl(e,il(t));var wr=(e,t)=>{var r={};for(var n in e)Kn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xr)for(var n of Xr(e))t.indexOf(n)<0&&ai.call(e,n)&&(r[n]=e[n]);return r};var Bn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var cl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of al(t))!Kn.call(e,o)&&o!==r&&qn(e,o,{get:()=>t[o],enumerable:!(n=ol(t,o))||n.enumerable});return e};var Er=(e,t,r)=>(r=e!=null?rl(sl(e)):{},cl(t||!e||!e.__esModule?qn(r,"default",{value:e,enumerable:!0}):r,e));var Xe=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});var ci=Bn((Gn,si)=>{(function(e,t){typeof Gn=="object"&&typeof si!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Gn,(function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(y){return!!(y&&y!==document&&y.nodeName!=="HTML"&&y.nodeName!=="BODY"&&"classList"in y&&"contains"in y.classList)}function l(y){var ye=y.type,de=y.tagName;return!!(de==="INPUT"&&a[ye]&&!y.readOnly||de==="TEXTAREA"&&!y.readOnly||y.isContentEditable)}function c(y){y.classList.contains("focus-visible")||(y.classList.add("focus-visible"),y.setAttribute("data-focus-visible-added",""))}function u(y){y.hasAttribute("data-focus-visible-added")&&(y.classList.remove("focus-visible"),y.removeAttribute("data-focus-visible-added"))}function f(y){y.metaKey||y.altKey||y.ctrlKey||(s(r.activeElement)&&c(r.activeElement),n=!0)}function p(y){n=!1}function d(y){s(y.target)&&(n||l(y.target))&&c(y.target)}function h(y){s(y.target)&&(y.target.classList.contains("focus-visible")||y.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(y.target))}function v(y){document.visibilityState==="hidden"&&(o&&(n=!0),_())}function _(){document.addEventListener("mousemove",w),document.addEventListener("mousedown",w),document.addEventListener("mouseup",w),document.addEventListener("pointermove",w),document.addEventListener("pointerdown",w),document.addEventListener("pointerup",w),document.addEventListener("touchmove",w),document.addEventListener("touchstart",w),document.addEventListener("touchend",w)}function S(){document.removeEventListener("mousemove",w),document.removeEventListener("mousedown",w),document.removeEventListener("mouseup",w),document.removeEventListener("pointermove",w),document.removeEventListener("pointerdown",w),document.removeEventListener("pointerup",w),document.removeEventListener("touchmove",w),document.removeEventListener("touchstart",w),document.removeEventListener("touchend",w)}function w(y){y.target.nodeName&&y.target.nodeName.toLowerCase()==="html"||(n=!1,S())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",p,!0),document.addEventListener("pointerdown",p,!0),document.addEventListener("touchstart",p,!0),document.addEventListener("visibilitychange",v,!0),_(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)}))});var Wo=Bn((WE,Vs)=>{"use strict";var Hp=/["'&<>]/;Vs.exports=$p;function $p(e){var t=""+e,r=Hp.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=n}return a!==i?o+t.substring(a,i):o}});var qo=Bn((Br,zo)=>{(function(t,r){typeof Br=="object"&&typeof zo=="object"?zo.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Br=="object"?Br.ClipboardJS=r():t.ClipboardJLine truncated
|
||||
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
||||
`):"",this.name="UnsubscriptionError",this.errors=r}});function mt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var at=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Fe(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.remove(this)}}catch(v){t={error:v}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(U(u))try{u()}catch(v){i=v instanceof Qr?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=Fe(f),d=p.next();!d.done;d=p.next()){var h=d.value;try{fi(h)}catch(v){i=i!=null?i:[],v instanceof Qr?i=ae(ae([],re(i)),re(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new Qr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)fi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&mt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&mt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Jn=at.EMPTY;function en(e){return e instanceof at||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function fi(e){U(e)?e():e.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var er={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=er.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,ae([e,t],re(r))):setTimeout.apply(void 0,ae([e,t],re(r)))},clearTimeout:function(e){var t=er.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tn(e){er.setTimeout(function(){var t=rt.onUnhandledError;if(t)t(e);else throw e})}function Ue(){}var mi=(function(){return Xn("C",void 0,void 0)})();function di(e){return Xn("E",void 0,e)}function hi(e){return Xn("N",e,void 0)}function Xn(e,t,r){return{kind:e,value:t,error:r}}var Ut=null;function tr(e){if(rt.useDeprecatedSynchronousErrorHandling){var t=!Ut;if(t&&(Ut={errorThrown:!1,error:null}),e(),t){var r=Ut,n=r.errorThrown,o=r.error;if(Ut=null,n)throw o}}else e()}function vi(e){rt.useDeprecatedSynchronousErrorHandling&&Ut&&(Ut.errorThrown=!0,Ut.error=e)}var Tr=(function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,en(r)&&r.add(n)):n.destination=fl,n}return t.create=function(r,n,o){return new dt(r,n,o)},t.prototype.next=function(r){this.isStopped?Qn(hi(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Qn(di(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Qn(mi,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(at);var ll=Function.prototype.bind;function Zn(e,t){return ll.call(e,t)}var ul=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){rn(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){rn(n)}else rn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){rn(r)}},e})(),dt=(function(e){pe(t,e);function t(r,n,o){var i=e.call(this)||this,a;if(U(r)||!r)a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:o!=null?o:void 0};else{var s;i&&rt.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Zn(r.next,s),error:r.error&&Zn(r.error,s),complete:r.complete&&Zn(r.complete,s)}):a=r}return i.destination=new ul(a),i}return t})(Tr);function rn(e){rt.useDeprecatedSynchronousErrorHandling?vi(e):tn(e)}function pl(e){throw e}function Qn(e,t){var r=rt.onStoppedNotification;r&&er.setTimeout(function(){return r(e,t)})}var fl={closed:!0,next:Ue,error:pl,complete:Ue};var rr=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Me(e){return e}function bi(){
Line truncated
|
||||
`)}
|
||||
`)}});try{let i=yield e.runPythonAsync(t.getValue(),{globals:Kp(n,e)});typeof i!="undefined"&&i!==null&&(o.push(String(i)),Gr(r,`${o.join(`
|
||||
`)}
|
||||
`))}catch(i){o.push(String(i)),Gr(r,`${o.join(`
|
||||
`)}
|
||||
`)}})}function Yp(){return Bo||(Bo=nc("https://unpkg.com/pyodide@314.0.2/pyodide.js",()=>typeof loadPyodide=="undefined"||loadPyodide instanceof Element).pipe(m(()=>Xe(null,null,function*(){try{let e=yield loadPyodide({indexURL:"https://cdn.jsdelivr.net/pyodide/v314.0.2/full/"});return yield e.loadPackage("micropip"),e}catch(e){return null}})),ee(1))),Bo}function Jp(){rc||(ace.define("ace/theme/zensical",["require","exports","module","ace/lib/dom"],(e,t)=>{t.isDark=!1,t.cssClass="ace-zensical",t.cssText=""}),rc=!0)}function oc(e){return Ko||(Ko=nc("https://unpkg.com/ace-builds@1.44.0/src-noconflict/ace.js",()=>typeof ace=="undefined"||ace instanceof Element).pipe(ee(1))),new j(t=>{let r=!0,n,o,i=qp(e);i.root.setAttribute("data-md-exec-state","ready");let a=()=>Yo(i.output),s=()=>Xe(null,null,function*(){return o||(o=Xe(null,null,function*(){if(i.root.setAttribute("data-md-exec-state","loading"),Gr(i.output,"Initializing..."),yield Bp(),!r)return null;let u=yield vn(Yp()).then(f=>f);if(!r||!u)return null;if(i.install.length>0)try{let f=u.pyimport("micropip");for(let p of i.install)yield f.install(p)}catch(f){return Yo(i.output),Gr(i.output,`Could not install one or more packages: ${i.install.join(", ")}
|
||||
${String(f)}`),i.root.setAttribute("data-md-exec-state","error"),null}return r?(Yo(i.output),i.root.setAttribute("data-md-exec-state","ready"),u):null})),o}),l=()=>{Xe(null,null,function*(){let u=yield s();!r||!u||!n||Gp(u,n,i.output,i.session)})},c=u=>{u.ctrlKey&&u.key.toLowerCase()==="enter"&&(u.preventDefault(),i.run.click())};return i.run.addEventListener("click",l),i.clear.addEventListener("click",a),i.root.addEventListener("keydown",c),Xe(null,null,function*(){yield vn(Ko),r&&(Jp(),i.editor.textContent="",n=ace.edit(i.editor),n.setTheme("ace/theme/zensical"),n.session.setMode("ace/mode/python"),n.setOption("fontFamily","var(--md-code-font)"),n.setOption("minLines",i.minLines),n.setOption("maxLines",i.maxLines),n.session.setValue(i.source),n.gotoLine(1,0,!1),n.clearSelection(),n.resize(),n.renderer.updateFull())}),t.next({ref:i.root}),()=>{r=!1,i.run.removeEventListener("click",l),i.clear.removeEventListener("click",a),i.root.removeEventListener("keydown",c),n==null||n.destroy(),i.root.removeAttribute("data-md-exec-state")}})}var Jo,Xo;function Xp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?lt("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(le(()=>x),m(()=>{})):F(void 0)}function Zp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?I(()=>Ji("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css")).pipe(le(()=>x),m(()=>{})):F(void 0)}function ic(e){return Jo||(Jo=Xp().pipe(m(()=>new GLightbox(A({selector:".glightbox:not([data-md-glightbox-disabled])",touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),ee(1))),Xo||(Xo=Zp()),Xo.pipe(g(()=>Jo),g(t=>b(e,"click",{capture:!0}).pipe(z(void 0),M(()=>{for(let r of e){let n=r.querySelector("img");r.toggleAttribute("data-md-glightbox-disabled",n!==null&&getComputedStyle(n).display==="none")}t.reload()}),g(()=>e.map(r=>({ref:r}))))))}var ac=0,sc=new Map;function Qp(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function ef(e,t){for(let r of L("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of L("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${ac}`)}return ac++,F(e)}function tf(e){let t=sc.get(e.toString());return t?F(t):Fn(e).pipe(g(r=>ef(r,e)),m(r=>(sc.set(e.toString(),r),r)))}function cc(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return x;if(!(J("navigation.instant.preview")||e.hasAttribute("data-preview")))return x;e.removeAttribute("title");let n=te([cr(e),zt(e).pipe(_e(1))]).pipe(m(([i,a])=>i||a),se(),T(i=>i));return Dt([r,n]).pipe(g(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?F(a):x}),g(i=>tf(i)),g(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=Se(a,i);return typeof s=="undefined"?x:F(Qp(s))})).pipe(g(i=>{let a=new j(s=>{let l=Dn(...i);return s.next(l),document.body.append(l),()=>l.remove()});return Kr(e,A({content$:a},t))}))}var lc="[filter*=drop-shadow],[style*=drop-shadow]{filter:none!important}.node circle,.node ellipse,.node path,.node polygon,.node rect,.node[data-look=neo] .neo-line path,.node[data-look=neo] circle,.node[data-look=neo] ellipse,.node[data-look=neo] path,.node[data-look=neo] polygon,.node[data-look=neo] rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.node path[fill=none],.node[data-look=neo] path[fill=none]{fill:none}.node [stroke=none],.node[data-look=neo] [stroke=none]{stroke:none}.marker,.marker path,.marker polygon{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.marker circle{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-edge-color)}.marker path[fill=none],.marker.cross path{fill:none}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{overflow:visible;line-height:normal}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.classLabel .box,.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{color:var(--md-mermaid-edge-color);fill:var(--md-mermaid-label-bg-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect,.cluster[data-look=neo] rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-la
Line truncated
|
||||
Reference in new issue
Block a user