bakalarska_praca/database/vendor/spatie/ignition/resources/compiled/ignition.js

7 lines
727 KiB
JavaScript
Raw Normal View History

2023-05-11 19:57:12 +00:00
function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var l=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=i(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(s[u]=n[u]);if(r){l=r(n);for(var f=0;f<l.length;f++)o.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s};n(function(e,t){var n=60103,r=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,o=60110,i=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var u=Symbol.for;n=u("react.element"),r=u("react.portal"),t.Fragment=u("react.fragment"),t.StrictMode=u("react.strict_mode"),t.Profiler=u("react.profiler"),a=u("react.provider"),o=u("react.context"),i=u("react.forward_ref"),t.Suspense=u("react.suspense"),s=u("react.memo"),c=u("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function h(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=h.prototype;var y=v.prototype=new g;y.constructor=v,l(y,h.prototype),y.isPureReactComponent=!0;var E={current:null},b=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,r){var a,o={},i=null,l=null;if(null!=t)for(a in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)b.call(t,a)&&!T.hasOwnProperty(a)&&(o[a]=t[a]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===o[a]&&(o[a]=s[a]);return{$$typeof:n,type:e,key:i,ref:l,props:o,_owner:E.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var S=/\/+/g;function w(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function O(e,t,a,o,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===o?"."+w(s,0):o,Array.isArray(i)?(a="",null!=e&&(a=e.replace(S,"$&/")+"/"),O(i,t,a,"",function(e){return e})):null!=i&&(R(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:
return c.createElement(s,Ui({key:i},u),h)}}var Gi=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(n),!0).forEach(function(t){Di(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Xi=/\n/g;function Ki(e){var t=e.codeString,n=e.containerStyle,r=e.numberStyle,a=void 0===r?{}:r,o=e.startingLineNumber;/*#__PURE__*/
return c.createElement("code",{style:Object.assign({},e.codeStyle,void 0===n?{float:"left",paddingRight:"10px"}:n)},function(e){var t=e.startingLineNumber,n=e.style;return e.lines.map(function(e,r){var a=r+t;/*#__PURE__*/
return c.createElement("span",{key:"line-".concat(r),className:"react-syntax-highlighter-line-number",style:"function"==typeof n?n(a):n},"".concat(a,"\n"))})}({lines:t.replace(/\n$/,"").split("\n"),style:a,startingLineNumber:o}))}function qi(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Ji(e,t,n){var r,a={display:"inline-block",minWidth:(r=n,"".concat(r.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"==typeof e?e(t):e;return $i($i({},a),o)}function Qi(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,l=void 0===i?{}:i,s=e.className,c=void 0===s?[]:s,u=e.showLineNumbers,f=e.wrapLongLines,d="function"==typeof l?l(n):l;if(d.className=c,n&&o){var p=Ji(r,n,a);t.unshift(qi(n,p))}return f&u&&(d.style=$i($i({},d.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:d,children:t}}function Zi(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r<e.length;r++){var a=e[r];if("text"===a.type)n.push(Qi({children:[a],className:Mi(new Set(t))}));else if(a.children){var o=t.concat(a.properties.className);Zi(a.children,o).forEach(function(e){return n.push(e)})}}return n}function el(e,t,n,r,a,o,i,l,s){var c,u=Zi(e.value),f=[],d=-1,p=0;function m(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Qi({children:e,lineNumber:t,lineNumberStyle:l,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:o,showLineNumbers:r,wrapLongLines:s})}function h(e,t){if(r&&t&&a){var n=Ji(l,t,i);e.unshift(qi(t,n))}return e}function g(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||r.length>0?m(e,n,r):h(e,n)}for(var v=function(){var e=u[p],t=e.children[0].value;if(t.match(Xi)){var n=t.split("\n");n.forEach(function(t,a){var i=r&&f.length+o,l={type:"text",value:"".concat(t,"\n")};if(0===a){var s=g(u.slice(d+1,p).concat(Qi({children:[l],className:e.properties.className})),i);f.push(s)}else if(a===n.length-1){var c=u[p+1]&&u[p+1].children&&u[p+1].children[0],m={type:"text",value:"".concat(t)};if(c){var h=Qi({children:[m],className:e.properties.className});u.splice(p+1,0,h)}else{var v=g([m],i,e.properties.className);f.push(v)}}else{var y=g([l],i,e.properties.className);f.push(y)}}),d=p}p++};p<u.length;)v();if(d!==u.length-1){var y=u.slice(d+1,u.length);if(y&&y.length){var E=g(y,r&&f.length+o);f.push(E)}}return t?f:(c=[]).concat.apply(c,f)}function tl(e){var t=e.stylesheet,n=e.useInlineStyles;return e.rows.map(function(e,r){return Wi({node:e,stylesheet:t,useInlineStyles:n,key:"code-segement".concat(r)})})}function nl(e){return e&&void 0!==e.highlightAuto}function rl(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||rl(n)}),e}var al=rl;al.default=rl;class ol{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function il(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function ll(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach(function(e){for(const t in e)n[t]=e[t]}),n}const sl=e=>!!e.kind;class cl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=il(e)}openNode(e){if(!sl(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){sl(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class ul{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){ret
return c.createElement(A,j,M,/*#__PURE__*/c.createElement(k,s,_));(void 0===T&&O||R)&&(T=!0),O=O||tl;var F=[{type:"text",value:_}],z=function(e){var t=e.astGenerator,n=e.language,r=e.code,a=e.defaultCodeValue;if(nl(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:a,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:a}}catch(e){return{value:a}}}({astGenerator:L,language:t,code:_,defaultCodeValue:F});null===z.language&&(z.value=F);var H=el(z,T,w,p,h,v,z.value.length+v,b,R);/*#__PURE__*/
return c.createElement(A,j,/*#__PURE__*/c.createElement(k,s,!h&&M,O({rows:H,stylesheet:a,useInlineStyles:f})))});Ns.registerLanguage=es.registerLanguage;var Rs=Ns;function Ss(){Ss=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,a){var o=new RegExp(e,r);return t.set(o,a||t.get(e)),Cs(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){return t[n]=e[r[n]],t},Object.create(null))}return Os(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,a){if("string"==typeof a){var o=t.get(this);return e[Symbol.replace].call(this,n,a.replace(/\$<([^>]+)>/g,function(e,t){return"$"+o[t]}))}if("function"==typeof a){var i=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,i)),a.apply(this,e)})}return e[Symbol.replace].call(this,n,a)},Ss.apply(this,arguments)}function ws(){return(ws=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Os(e,t){if("function"!=typeof t&&null!==t)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&&Cs(e,t)}function Cs(e,t){return(Cs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function As(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}const Is=["children","className"];function ks(e){let{children:t,className:n=""}=e,r=As(e,Is);return c.createElement("button",ws({type:r.type||"button",className:`w-6 h-6 rounded-full flex items-center justify-center\n text-xs ~bg-white text-indigo-500 hover:~text-indigo-600 \n transform transition-animation shadow-md hover:shadow-lg\n active:shadow-sm active:translate-y-px"\n ${n}\n `},r),t)}function xs({highlight:e,row:t,frame:n,lineNumber:r}){const a=Fn({file:n.file,lineNumber:r});return c.createElement("span",{className:`\n flex group leading-loose hover:~bg-red-500/10\n ${e?" ~bg-red-500/20":""}\n `},a&&c.createElement("span",{className:"z-30 opacity-0 group-hover:opacity-100 sticky left-10 w-0 h-full"},c.createElement("a",{href:a,className:"-ml-3 block"},c.createElement(ks,null,c.createElement(oi,{className:"text-xs",icon:Ti})))),c.createElement("span",{className:"pl-6"},Wi({node:t,useInlineStyles:!1,key:`code-segement-${r}`})))}function _s({frame:e}){const t=Object.values(e.code_snippet).join("\n"),n=Object.keys(e.code_snippet).map(e=>Number(e)),r=n.indexOf(e.line_number),a=c.useMemo(()=>({rows:t})=>t.map((t,a)=>c.createElement(xs,{key:n[a],frame:e,highlight:a===r,row:t,lineNumber:n[a]})),[e]);return c.createElement("main",{className:"flex items-stretch flex-grow overflow-x-auto overflow-y-hidden scrollbar-hidden-x mask-fade-r text-sm"},c.createElement("nav",{className:"sticky left-0 flex flex-none z-20 ~bg-white"},c.createElement("div",{className:"select-none text-right"},n.map(t=>c.createElement("p",{key:t,className:`\n px-2 font-mono leading-loose select-none\n ${Number(t)===e.line_number?" text-opacity-75 ~text-red-700 ~bg-red-500/30":""}\n `},c.createElement("span",{className:"~text-gray-500"},t))))),c.createElement("div",{className:"flex-grow pr-10"},c.createElement(Rs,{language:(o=e.relative_file,o.endsWith(".blade.php")?"blade":o.match(/^resources\/views\//)?"php-template":"php"),renderer:a,customStyle:{background:"transparent"}},t)));var o}function Ls(e,t){c.useEffect(()=>{function n(n){document.activeElement&&"INPUT"===document.activeElement.tagName||n.key===e&&t(n)}return window.addEventListener("keyup",n),()=>{window.removeEventLi